-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkube-watcher.deploy.yml
74 lines (73 loc) · 1.47 KB
/
kube-watcher.deploy.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kube-watcher-2
spec:
replicas: 1
revisionHistoryLimit: 1
selector:
strategy:
type: Recreate
template:
metadata:
labels:
run: kube-watcher-2
spec:
serviceAccountName: kube-watcher-kubectl-proxy
containers:
- name: kube-watcher
image: 410240865662.dkr.ecr.us-west-2.amazonaws.com/kube-watcher:v2.0.2
imagePullPolicy: Always
ports:
- containerPort: 7788
- name: kubectl-proxy
image: 410240865662.dkr.ecr.us-west-2.amazonaws.com/kubectl:1.4.6
imagePullPolicy: Always
args: [proxy, --port, "8001", --logtostderr]
---
apiVersion: v1
kind: Service
metadata:
name: kube-watcher-2
labels:
run: kube-watcher-2
spec:
ports:
- port: 80
targetPort: 7788
protocol: TCP
selector:
run: kube-watcher-2
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
name: kube-watcher
labels:
run: kube-watcher
spec:
ports:
- port: 80
targetPort: 7788
protocol: TCP
selector:
run: kube-watcher
type: ClusterIP
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: kube-watcher
spec:
rules:
- host: staging-kube-watcher.lunchbadger.com
http:
paths:
- backend:
serviceName: kube-watcher-2
servicePort: 80
path: /v2
- backend:
serviceName: kube-watcher
servicePort: 80