Skip to content

Instantly share code, notes, and snippets.

@ansulev
Created July 24, 2018 14:15
Show Gist options
  • Save ansulev/a89955c454e1a80f9fd8ca224d72edf3 to your computer and use it in GitHub Desktop.
Save ansulev/a89955c454e1a80f9fd8ca224d72edf3 to your computer and use it in GitHub Desktop.
Kubernetes demo app from GCloud
#
# 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