forked from derekoneil/twitter-feed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubernetes.yml.template.final
56 lines (56 loc) · 1.14 KB
/
kubernetes.yml.template.final
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: twitter-feed-v2
labels:
commit: ${WERCKER_GIT_COMMIT}
spec:
replicas: 2
selector:
matchLabels:
app: twitter-feed
template:
metadata:
labels:
app: twitter-feed
commit: ${WERCKER_GIT_COMMIT}
color: green
spec:
containers:
- name: twitter-feed
image: ${DOCKER_REPO}:${WERCKER_GIT_BRANCH}-${WERCKER_GIT_COMMIT}
imagePullPolicy: Always
ports:
- name: twitter-feed
containerPort: 8080
protocol: TCP
volumeMounts:
- name: podinfo
mountPath: /tmp
readOnly: false
volumes:
- name: podinfo
downwardAPI:
items:
- path: "labels"
fieldRef:
fieldPath: metadata.labels
imagePullSecrets:
- name: wercker
---
apiVersion: v1
kind: Service
metadata:
name: twitter-feed
labels:
app: twitter-feed
commit: ${WERCKER_GIT_COMMIT}
spec:
ports:
- port: 30000
targetPort: 8080
selector:
app: twitter-feed
color: green
type: ClusterIP
---