Last active
April 28, 2020 16:43
-
-
Save darinpope/23ef0c6c616a7ac0e9277f524d3a9d17 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcloud container clusters create dpope-gke --region us-east1 --machine-type n1-standard-2 --enable-autoscaling --num-nodes 1 --max-nodes 3 --min-nodes 1 | |
kubectl create namespace cloudbees-core | |
kubectl create namespace ingress-nginx | |
kubectl config set-context $(kubectl config current-context) --namespace=cloudbees-core | |
helm repo add cloudbees https://charts.cloudbees.com/public/cloudbees | |
helm repo add stable https://kubernetes-charts.storage.googleapis.com/ | |
helm repo update | |
echo "apiVersion: storage.k8s.io/v1 | |
kind: StorageClass | |
metadata: | |
name: ssd | |
provisioner: kubernetes.io/gce-pd | |
# Allows volumes to be expanded after their creation. | |
allowVolumeExpansion: true | |
# Uncomment the following for multi zone clusters | |
# volumeBindingMode: WaitForFirstConsumer | |
parameters: | |
type: pd-ssd" | kubectl create -f - | |
kubectl annotate storageclass standard storageclass.kubernetes.io/is-default-class- | |
kubectl annotate storageclass ssd storageclass.kubernetes.io/is-default-class=true | |
kubectl get sc | |
helm install nginx-ingress stable/nginx-ingress --namespace ingress-nginx --values values.yaml --version 1.31.0 | |
kubectl get all -n ingress-nginx | |
<create DNS record from EXTERNAL-IP> | |
cloudbees check kubernetes --host-name <domain name> | |
helm install cloudbees-core cloudbees/cloudbees-core --namespace cloudbees-core --version 3.9.0 --set OperationsCenter.HostName='<domain name>' | |
kubectl rollout status sts cjoc | |
kubectl exec cjoc-0 cat /var/jenkins_home/secrets/initialAdminPassword | |
helm upgrade cloudbees-core cloudbees/cloudbees-core --namespace cloudbees-core --version 3.12.0 --set OperationsCenter.HostName='<domain name>' | |
gcloud container clusters delete dpope-gke --region us-east1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment