-
Notifications
You must be signed in to change notification settings - Fork 4
/
install.yaml
49 lines (49 loc) · 1.06 KB
/
install.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
42
43
44
45
46
47
48
49
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: active-standby-controller
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: active-standby-controller
namespace: kube-system
rules:
- apiGroups: ['']
resources: [services, pods]
verbs: [watch, patch]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: active-standby-controller
subjects:
- kind: ServiceAccount
name: active-standby-controller
namespace: kube-system
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: active-standby-controller
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: active-standby-controller
namespace: kube-system
spec:
replicas: 1
selector:
matchLabels:
app: active-standby-controller
template:
metadata:
labels:
app: active-standby-controller
spec:
serviceAccountName: active-standby-controller
containers:
- name: active-standby-controller
image: quay.io/qoqodev/active-standby-controller:slim