Last active
November 20, 2019 21:23
-
-
Save jmcdice/d4b04994bddf00b4dc8e50813d9d7184 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Deploy Concourse to PKS | |
$ helm init --wait | |
$ kubectl create serviceaccount --namespace kube-system tiller | |
$ kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller | |
$ kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}' | |
$ helm install --name concourse stable/concourse | |
# View Concourse via your browser | |
$ export POD_NAME=$(kubectl get pods --namespace default|perl -lane 'print @F[0] if /web/') | |
$ kubectl port-forward --namespace default $POD_NAME 8080:8080 | |
# Browse to: http://127.0.0.1:8080 (user: test/pass: test) | |
# Get the IP for Concourse Web Server running inside your cluster | |
$ kubectl get pods -o wide |grep web|awk '{print $6}' | |
# Deploy cloud-shell to talk to concourse inside PKS | |
$ kubectl run --generator=run-pod/v1 --image=jmcdice/cloud-shell:latest cloud-shell --command sleep infinity | |
# Connect to the cloud-shell running inside PKS | |
$ kubectl exec -it cloud-shell -- /bin/bash | |
# Connect to concourse via fly | |
$ fly -t concourse login -c http://<internal IP from above>:8080 --username test --password test | |
$ fly -t concourse sync |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment