README.md
from https://docs.microsoft.com/en-us/azure/container-service/kubernetes/container-service-kubernetes-walkthrough#create-kubernetes-cluster
azure-vote.yml
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: azure-vote-back
spec:
replicas: 1
template:
metadata:
labels:
app: azure-vote-back
spec:
containers:
- name: azure-vote-back
image: redis
ports:
- containerPort: 6379
name: redis
---
apiVersion: v1
kind: Service
metadata:
name: azure-vote-back
spec:
ports:
- port: 6379
selector:
app: azure-vote-back
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: azure-vote-front
spec:
replicas: 1
template:
metadata:
labels:
app: azure-vote-front
spec:
containers:
- name: azure-vote-front
image: microsoft/azure-vote-front:redis-v1
ports:
- containerPort: 80
env:
- name: REDIS
value: "azure-vote-back"
---
apiVersion: v1
kind: Service
metadata:
name: azure-vote-front
spec:
type: LoadBalancer
ports:
- port: 80
selector:
app: azure-vote-front
destroy.sh
az group delete --name myResourceGroup --yes --no-wai
setupq.sh
ac group create -g shawnacs
az acs create -n myClusterName -d spc -g shawnacs --orchestrator-type kubernetes
az acs create -n myClusterName -d spc -g shawnacs --orchestrator-type kubernetes
az acs kubernetes get-credentials -g shawnacs -n myClusterName
kubectl get nodes
watch.sh
kubectl get service azure-vote-front --watch