Refering to https://docs.gitlab.com/ee/user/clusters/agent/ci_cd_workflow.html
I installed Gitlab Agent by using helm,and the kubernetes clusters is connected,but
there is only one context when I execute
kubectl config get-contexts
* 270285107419715523-c34f80xxxxx647c08c49f1e550887388 kubernetes 27xxxx419715523
besides the Gitlab CI/CD failed
Related
Since for kubectl to access gke, now gke-gcloud-auth-plugin also needs to be installed.
I am using jenkins to deploy the changes to gke using the kubectl plugin but now after this change, not able to use the same plugin.
Can anyone suggest any jenkins plugin that can help to access gke after this change is rolled out in kubectl.
https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke
You could use google/cloud-sdk image, which has gke-gcloud-auth-plugin already pre-installed. But now before gcloud container clusters get-credentials you should run:
export USE_GKE_GCLOUD_AUTH_PLUGIN=True
We have to integrate our OpenTest automation with AWS CodeBuild. How can we run server, actor and template session in one terminal in linux ?
You can trigger a new test session by using the OpenTest CLI:
opentest session create --template <TEMPLATE_NAME> --wait --server <SERVER_IP>:<PORT>
For example:
opentest session create --template "My session template" --wait --server 1.2.3.4:3000
Of course, you have to make sure that:
OpenTest is installed on the machine where AWS CodeBuild agent is running from and the opentest command in the system path - basically make sure the opentest command is available for your pipeline.
The AWS CodeBuild agent machine has network access to the IP and port that the OpenTest server is running on.
I'm having question about spinnaker-Halyard installation, Can spinnaker manage AWS cloud provider without being installed on EC2 instance?. meaning that can I install spinnaker locally and add aws account and manage pipelines
Can spinnaker manage AWS cloud provider without being installed on EC2 instance?
Spinnaker can be installed on any Ubuntu server - for example, you could run a Spinnaker instance from Google's Click to Deploy image and have it manage your EC2 account.
Spinnaker is comprised of a bunch of microservices, so running it on a local workstation may be cumbersome. I suggest dedicating a specific machine to it. Alternatively, if you're set on running it locally, you could install Halyard locally and point it to a Minikube installation on your machine.
You can setup the these many providers under your spinnaker setup
https://www.spinnaker.io/setup/install/providers/
App Engine
Amazon Web Services
Azure
Cloud Foundry
DC/OS Google
Compute Engine
Kubernetes (legacy)
Kubernetes V2 (manifest based)
Openstack Oracle
You just need to integrate your service accounts into spinnaker to authorize resource creation.
Yes It will work just you need to create service account and Need to pass kubeconfig file to spinnaker, then spinnaker handle Deployment part automatically, you need to configure spinnaker for that.
Some useful link
https://www.spinnaker.io/setup/security/authorization/service-accounts/
https://www.spinnaker.io/setup/
I have deployed the individual spinnaker components to kubernetes and when I am trying to access spinnaker through http://localhost:9000 I get an empty response from the server. I verified the configuration for clouddriver-local.yml, spinnaker-local.yml and everything seems good. Am i missing anything here? when I am trying to curl localhost:9000, I get an empty response from the server
here is the kubernetes setup info
Hi Spinnaker has evolved by this time and it should be easier to set up by now. If you want to do PoC only or deploy to small enterprise projects then i suggest you use Armory's Minnaker
Now if you want to deploy large projects to a robust and fully enhanced kubernetes cluster then that is a different story and the steps are as it follows:
Minimum 4 CPUs and 12 GB of memory
Access to an existing object storage bucket
Access to an IAM role or user with access to the bucket. (AWS IAM for AWS S3)
An existing Kubernetes Ingress controller or the permissions to install the NGINX Ingress Controller (ForDeck UI access)
Installation
Create a Kubernetes namespace for Spinnaker and Halyard
Grant the default ServiceAccount in the namespace access to the cluster-admin ClusterRole in the namespace.
Run Halyard (Spinnaker installer) as a Pod in the created namespace (with a StatefulSet).
Create a storage bucket for Spinnaker to store persistent configuration in.
Create an user (AWS IAM in case of AWS deployment) that Spinnaker will use to access the bucket (or alternately, granting access to the bucket via roles).
Rung hal client interactively in the Kubernetes Pod:
Build out the hal config YAML file (.hal/config)
Configure Spinnaker with the IAM credentials and bucket information
Turn on other recommended settings (artifacts and http artifact providers: github, bitbucket, etc)
Install Spinnaker hal deploy
Expose Spinnaker (Deck through ingress)
For more details refer to
Armory's doc
Spinnaker Distributed installation in Kubernetes
Hope the guideline helps
Please forgive me, I just started using spinnaker.
I have a war file that is currently deployed on tomcat using elastic beanstalk.
Is there a way to specify a deployment using a war file to elastic beanstalk using tomcat with spinnaker?
You can deploy to Beanstalk by using the Jenkins stage and then deploy a Cloudformation template with the CF stage.
Basically you just have to set up the AWS Provider in halyard and then enable the Cloud Formation Stage