11# # deployment-replication/rbac.yaml
2+
3+
4+
25# # Cluster role granting access to ArangoDeploymentReplication resources.
36apiVersion : rbac.authorization.k8s.io/v1beta1
47kind : ClusterRole
3033 resources : ["pods", "services", "endpoints", "persistentvolumeclaims", "events", "secrets"]
3134 verbs : ["*"]
3235- apiGroups : [""]
33- resources : ["nodes"]
34- verbs : ["get"]
36+ resources : ["namespaces", " nodes"]
37+ verbs : ["get", "list" ]
3538- apiGroups : ["apps"]
3639 resources : ["deployments", "replicasets"]
3740 verbs : ["get"]
@@ -72,10 +75,15 @@ subjects:
7275 name : default
7376 namespace : default
7477
78+
79+
80+
81+
7582---
7683
7784# # deployment-replication/deployment-replication.yaml
7885
86+
7987apiVersion : extensions/v1beta1
8088kind : Deployment
8189metadata :
@@ -91,10 +99,11 @@ spec:
9199 name : arango-deployment-replication-operator
92100 app : arango-deployment-replication-operator
93101 spec :
102+ serviceAccountName : default
94103 containers :
95104 - name : operator
96105 imagePullPolicy : IfNotPresent
97- image : arangodb/kube-arangodb@sha256:bbf5433b2cda054835f7abf923116b43fa2e56907d2a19895cd12c74b907c056
106+ image : arangodb/kube-arangodb@sha256:46053f371917445a52cbde69a9acc72bb065fa4a80f3fafa3fb98ab84911c570
98107 args :
99108 - --operator.deployment-replication
100109 env :
@@ -137,3 +146,33 @@ spec:
137146 effect : " NoExecute"
138147 tolerationSeconds : 5
139148
149+
150+
151+
152+ ---
153+
154+ # # deployment-replication/service.yaml
155+
156+
157+ apiVersion : v1
158+ kind : Service
159+ metadata :
160+ name : arango-deployment-replication-operator
161+ namespace : default
162+ labels :
163+ name : arango-deployment-replication-operator
164+ app : arango-deployment-replication-operator
165+ spec :
166+ ports :
167+ - name : server
168+ port : 8528
169+ protocol : TCP
170+ targetPort : 8528
171+ selector :
172+ name : arango-deployment-replication-operator
173+ app : arango-deployment-replication-operator
174+ role : leader
175+ type : ClusterIP
176+
177+
178+
0 commit comments