Skip to content

Instantly share code, notes, and snippets.

@chidakiyo
Created June 12, 2018 12:34
Show Gist options
  • Save chidakiyo/2bac16bfff8e7692b724cbdf74bf1d2b to your computer and use it in GitHub Desktop.
Save chidakiyo/2bac16bfff8e7692b724cbdf74bf1d2b to your computer and use it in GitHub Desktop.
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: azure-vote-back
spec:
replicas: 2
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: 2
template:
metadata:
labels:
app: azure-vote-front
spec:
containers:
- name: azure-vote-front
image: microsoft/azure-vote-front: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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment