-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathvote.yaml
41 lines (41 loc) · 796 Bytes
/
vote.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: vote-deployment
spec:
replicas: 5
template:
metadata:
labels:
name: vote
app: voting-app
spec:
containers:
- name: worker
image: jpoon/vote:latest
env:
- name: AZURE_STORAGE_ACCOUNT
valueFrom:
secretKeyRef:
name: azure-storage
key: account-name
- name: AZURE_STORAGE_ACCESS_KEY
valueFrom:
secretKeyRef:
name: azure-storage
key: access-key
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: vote-service
labels:
app: voting-app
spec:
type: LoadBalancer
ports:
- port: 80
selector:
name: vote