How to install kots in Azure cloud shell - azure-aks

I'm a newcomer to Azure.I need to install kots to execute some commands(I want to install gitpods(AKS)). But I don't have root permission (Azure doesn't seem to provide this permission).
I tried this method in Azure Cloud shell, but I didn't know how to set the value of PATH, so it failed. Is there any other way to help me solve this problem?
the Azure cloud shell

Related

Unable to download the Jenkins plugins running on Google Cloud Platform

I'm running the Jenkins as a Docker container on a Virtual Machine on Google Cloud Platform. On the very first screen of setup, I can see that a lot of plugins did not install in my Jenkins server?
Please let me know how to resolve this issue? Is it something due to with the security on the cloud by default which restricts downloading of plugins?
Refer following link for screenshot:-
https://storage.googleapis.com/mydockerissues/Jenkins%20Plugins%20Issue.PNG
Cheers
Something similar happened to me when running Jenkins on Docker on my local machine. To get everything to install I had to keep retrying. It took several retries but eventually I got everything installed.
I'm not sure why this is the case. Maybe it fails downloads whose dependencies aren't installed yet?

Does Google Cloud Composer support connecting to AWS resource like S3 and Redshift?

I am planning to use Google Cloud Composer to schedule a workflow which is loading data from S3 to Redshift. As S3 and Redshift are all based on AWS, I want to know whether Google Cloud Composer allows me to do it.
From my understanding after reading the document, I am able to install AWS SDK from PYPI and install local Python dependencies, which means that I can build my own library for S3Connection and RedshiftConnection to make the workflow work. Anyone with experience on it can help confirm it? Thanks
Cloud Composer is built to support hybrid and multi-cloud as mentioned here.
Cloud Composer can make use of existing Airflow operators which includes a S3toRedshift operator that uses the S3 hook and the postgres hook for Redshift
Cloud Composer can also use custom plugins. The way to install custom plugins in Cloud Composer is described in this link.

Bigquery CLI commands with Jenkins

I can run a BigQuery script interactively just fine:
But when i try with Jenkins on the same windows machine it fails:
Do i need to install BigQuery SDK on the Jenkins Localhost, or tinker with some PATH varibles? :)
Make sure the directory the bq executable is installed has been added to your PATH variable (that would be the PATH_TO/google-cloud-sdk/bin directory). But this is most definitely already true given that you're able to run commands from the C drive. Different users get different permissions, so also make sure the bq command is available for the users Jenkins is operating under .
I've had the same issue where I couldn't run bq commands using systemctl on linux. To go around this error, instead of running the command with bq, use the full path to the executable PATH_TO/google-cloud-sdk/bin/bq.

Can I use gcloud SDK on linux instance hosted with another cloud provider?

I get:
Your "GCE" credentials are invalid. Please run
$ gcloud auth login
Failure: GCE credentials requested outside a GCE instance.
keep doing it over again with same results. Migrated from GCE to cheaper provider, but still would like my linux instances be able to transfer files to Google Cloud Storage.
I ended up removing entire /root folder and upgrading python to 2.7 on CentOS. None of that helped. Turns out I had to install:
pip install -U crcmod
That finally solved the issue. Thanks guys for all your time and help. Hope this will save some time for next guy with similar problem.
Yes, you can install and use Google Cloud SDKs on any machine inside or outside of the Google Cloud. You can download and install SDK on your desired platform from this link: https://cloud.google.com/sdk/
After installation, use "gcloud auth login" command, enter the output link to your browser and login using your Google Cloud account, get the verification key and enter it to the field where command asks for.

Setup and Use ClamAV (anti-virus) with Azure

I want to scan the files that are uploaded to my Azure blob. It looks like ClamAV (www.clamav.net) is probably the way to go. I see instructions on how to install on a Windows server, but what would my procedure be for a site hosted on Azure? I am using ASP.NET MVC.
Disclaimer: I haven't used ClamAV. Having said that...
You should be able to install it during a startup task (with elevated privileges). I looked at the ClamAV wiki, and it appears that the msi has a silent-install:
msiexec /i clamAV.msi /qr
You'll need to change that last parameter to /qn to force "no user interface."
The challenge will be scanning blobs. You'll need to copy files from their blobs to a local directory in your VM instance, and then run clamdscan on that file (basing off the wiki).
I haven't tried this, but the basic premise should hold up: Install anything requiring an MSI as a startup task (probably needs elevated mode).

Resources