-
Notifications
You must be signed in to change notification settings - Fork 5
/
operator.yaml
61 lines (58 loc) · 1.42 KB
/
operator.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
50
51
52
53
54
55
56
57
58
59
60
61
apiVersion: v1
kind: ServiceAccount
metadata:
name: egress-cilium-node-operator-acc
namespace: egress-cilium-node-operator
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: egress-cilium-node-operator
rules:
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "watch", "list", "patch"]
- apiGroups: ["cilium.io"]
resources: ["ciliumegressgatewaypolicies"]
verbs: ["get", "watch", "list", "patch", "create"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: egress-cilium-node-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: egress-cilium-node-operator
subjects:
- kind: ServiceAccount
name: egress-cilium-node-operator-acc
namespace: egress-cilium-node-operator
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: egress-cilium-node-operator
namespace: egress-cilium-node-operator
spec:
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
selector:
matchLabels:
app: egress-cilium-node-operator
template:
metadata:
labels:
app: egress-cilium-node-operator
spec:
containers:
- name: shell-operator
image: <your_registry>/egress-cilium-node-operator:latest
imagePullPolicy: Always
serviceAccountName: egress-cilium-node-operator-acc
imagePullSecrets:
- name: regcred