List compute disks:
- gcloud compute disks list
Delete the disks:
- gcloud compute disks delete --quiet --zone us-central1-a
Note: Disk name should include following string as part of its name: gke-lfs268-lab. Default zone is us-central1-a.
List compute disks:
Delete the disks:
Note: Disk name should include following string as part of its name: gke-lfs268-lab. Default zone is us-central1-a.
controller: | |
tag: "alpine" | |
componentName: "jenkins-controller" | |
image: "jenkins/jenkins" | |
imagePullPolicy: "Always" | |
serviceType: ClusterIP | |
installPlugins: | |
- durable-task:latest | |
- workflow-durable-task-step:latest | |
- blueocean:latest |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: jenkins | |
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: |
#!/bin/bash | |
###################### | |
# Create The Cluster # | |
###################### | |
# helm 3 is being used for deploying Helm based Jenkins package | |
gcloud auth login | |
CLUSTER_NAME=jenkins |
After you have imported projects into Jenkins X, few dependencies get added to the cluster config inside environment--dev repository. Please follow the following steps to remove all such references:
cd environment-<cluster-name>-dev
git pull origin master
rm -rf dependency-matrix
rm repositories/templates/<$yourGHUserID>-<$imported-repo-name>-sr.yaml
After executing the last command, you should only see one file inside repositories/templates/ dir.
Staging env dependencies are stored inside: environment-cluster-name-staging repository. You can make changes by accessing this repository on GitHub UI.
The file we want to edit is called requirements.yaml and is located inside env directory. The contents of this should be similar to this:
dependencies:
- alias: expose
name: exposecontroller
repository: http://chartmuseum.jenkins-x.io
buildPack: nop | |
pipelineConfig: | |
agent: | |
label: gcr.io/jenkinsxio/builder-go | |
env: | |
- name: JENKINS_X | |
value: jx | |
- name: MY_VAR | |
value: foo | |
pipelines: |
buildPack: nop | |
pipelineConfig: | |
agent: | |
label: gcr.io/jenkinsxio/builder-go | |
env: | |
- name: JENKINS_X | |
value: jx | |
- name: MY_VAR | |
value: foo | |
pipelines: |
buildPack: nop | |
pipelineConfig: | |
agent: | |
label: gcr.io/jenkinsxio/builder-go | |
env: | |
- name: JENKINS_X | |
value: jx | |
- name: MY_VAR | |
value: foo | |
pipelines: |
jx create cluster gke --skip-installation --skip-login -n jxboot
gcloud compute zones list