forked from derekoneil/twitter-feed-oke
-
Notifications
You must be signed in to change notification settings - Fork 0
/
twitter-feed.kubernetes.yml
56 lines (56 loc) · 1.21 KB
/
twitter-feed.kubernetes.yml
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: 9a8fa77277c4a8c3c96d96d4b804e83c26ac6cc0
spec:
replicas: 2
selector:
matchLabels:
app: twitter-feed
template:
metadata:
labels:
app: twitter-feed
commit: 9a8fa77277c4a8c3c96d96d4b804e83c26ac6cc0
color: green
spec:
containers:
- name: twitter-feed
image: wcr.io/derekoneil/twitter-feed:master-9a8fa77277c4a8c3c96d96d4b804e83c26ac6cc0
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: 9a8fa77277c4a8c3c96d96d4b804e83c26ac6cc0
spec:
ports:
- port: 30000
targetPort: 8080
selector:
app: twitter-feed
color: green
type: ClusterIP
---