Created
July 24, 2018 14:15
-
-
Save ansulev/a89955c454e1a80f9fd8ca224d72edf3 to your computer and use it in GitHub Desktop.
Kubernetes demo app from GCloud
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
# | |
# Kubernetes demo cloud shell scripts ... | |
# | |
TUTORIALDIR=src/gke_guestbook-2018-07-24-16-37 | |
git clone https://github.com/GoogleCloudPlatform/kubernetes-engine-samples.git $TUTORIALDIR | |
cd $TUTORIALDIR | |
cat redis-master-controller.yaml | |
cat redis-master-service.yaml | |
gcloud container clusters get-credentials demo-cluster-1 --zone us-central1-a | |
kubectl create -f redis-master-service.yaml | |
kubectl create -f redis-master-controller.yaml | |
kubectl create -f all-in-one/redis-slave.yaml | |
kubectl create -f all-in-one/frontend.yaml | |
kubectl get pods | |
kubectl get services | |
kubectl get rc | |
kubectl get service --watch | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment