2019-04-16 02:05:13 +03:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: azure-vote-back
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: azure-vote-back
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: azure-vote-back
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: azure-vote-back
|
|
|
|
image: redis
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 128Mi
|
|
|
|
limits:
|
|
|
|
cpu: 250m
|
|
|
|
memory: 256Mi
|
|
|
|
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/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: azure-vote-front
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: azure-vote-front
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: azure-vote-front
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: azure-vote-front
|
|
|
|
image: microsoft/azure-vote-front:v1
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 128Mi
|
|
|
|
limits:
|
|
|
|
cpu: 250m
|
|
|
|
memory: 256Mi
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
env:
|
|
|
|
- name: REDIS
|
|
|
|
value: "azure-vote-back"
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: azure-vote-front
|
2019-04-30 19:59:36 +03:00
|
|
|
annotations:
|
|
|
|
service.beta.kubernetes.io/azure-load-balancer-resource-group: gtestk8s-xv2phv-central-rg
|
2019-04-16 02:05:13 +03:00
|
|
|
spec:
|
2019-04-30 19:59:36 +03:00
|
|
|
loadBalancerIP: 40.113.235.85
|
2019-04-16 02:05:13 +03:00
|
|
|
type: LoadBalancer
|
|
|
|
ports:
|
|
|
|
- port: 80
|
|
|
|
selector:
|
|
|
|
app: azure-vote-front
|