Skip to content

Commit d838933

Browse files
committed
Updated manifest to 0.3.0
1 parent dbcb3fb commit d838933

File tree

5 files changed

+141
-13
lines changed

5 files changed

+141
-13
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,20 @@ it is intended to be.
3939
```bash
4040
# The following will install the operator for `ArangoDeployment` &
4141
# `ArangoDeplomentReplication` resources.
42-
helm install https://github.com/arangodb/kube-arangodb/releases/download/0.2.2/kube-arangodb.tgz
42+
helm install https://github.com/arangodb/kube-arangodb/releases/download/0.3.0/kube-arangodb.tgz
4343
# To use `ArangoLocalStorage`, also run
44-
helm install https://github.com/arangodb/kube-arangodb/releases/download/0.2.2/kube-arangodb-storage.tgz
44+
helm install https://github.com/arangodb/kube-arangodb/releases/download/0.3.0/kube-arangodb-storage.tgz
4545
```
4646

4747
## Installation of latest release using Kubectl
4848

4949
```bash
50-
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.2.2/manifests/crd.yaml
51-
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.2.2/manifests/arango-deployment.yaml
50+
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.3.0/manifests/crd.yaml
51+
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.3.0/manifests/arango-deployment.yaml
5252
# To use `ArangoLocalStorage`, also run
53-
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.2.2/manifests/arango-storage.yaml
53+
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.3.0/manifests/arango-storage.yaml
5454
# To use `ArangoDeploymentReplication`, also run
55-
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.2.2/manifests/arango-deployment-replication.yaml
55+
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.3.0/manifests/arango-deployment-replication.yaml
5656
```
5757

5858
## Building

manifests/arango-deployment-replication.yaml

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
## deployment-replication/rbac.yaml
2+
3+
4+
25
## Cluster role granting access to ArangoDeploymentReplication resources.
36
apiVersion: rbac.authorization.k8s.io/v1beta1
47
kind: ClusterRole
@@ -30,8 +33,8 @@ rules:
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+
7987
apiVersion: extensions/v1beta1
8088
kind: Deployment
8189
metadata:
@@ -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+

manifests/arango-deployment.yaml

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
## deployment/rbac.yaml
2+
3+
4+
25
## Cluster role granting access to ArangoDeployment resources.
36
apiVersion: rbac.authorization.k8s.io/v1beta1
47
kind: ClusterRole
@@ -27,8 +30,8 @@ rules:
2730
resources: ["pods", "services", "endpoints", "persistentvolumeclaims", "events", "secrets"]
2831
verbs: ["*"]
2932
- apiGroups: [""]
30-
resources: ["nodes"]
31-
verbs: ["get"]
33+
resources: ["namespaces", "nodes"]
34+
verbs: ["get", "list"]
3235
- apiGroups: ["apps"]
3336
resources: ["deployments", "replicasets"]
3437
verbs: ["get"]
@@ -72,10 +75,15 @@ subjects:
7275
name: default
7376
namespace: default
7477

78+
79+
80+
81+
7582
---
7683

7784
## deployment/deployment.yaml
7885

86+
7987
apiVersion: extensions/v1beta1
8088
kind: Deployment
8189
metadata:
@@ -91,10 +99,11 @@ spec:
9199
name: arango-deployment-operator
92100
app: arango-deployment-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
100109
- --chaos.allowed=false
@@ -138,3 +147,33 @@ spec:
138147
effect: "NoExecute"
139148
tolerationSeconds: 5
140149

150+
151+
152+
153+
---
154+
155+
## deployment/service.yaml
156+
157+
158+
apiVersion: v1
159+
kind: Service
160+
metadata:
161+
name: arango-deployment-operator
162+
namespace: default
163+
labels:
164+
name: arango-deployment-operator
165+
app: arango-deployment-operator
166+
spec:
167+
ports:
168+
- name: server
169+
port: 8528
170+
protocol: TCP
171+
targetPort: 8528
172+
selector:
173+
name: arango-deployment-operator
174+
app: arango-deployment-operator
175+
role: leader
176+
type: ClusterIP
177+
178+
179+

manifests/arango-storage.yaml

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
## storage/rbac.yaml
2+
3+
4+
25
## Cluster role granting access to ArangoLocalStorage resources.
36
apiVersion: rbac.authorization.k8s.io/v1beta1
47
kind: ClusterRole
@@ -28,7 +31,13 @@ rules:
2831
verbs: ["*"]
2932
- apiGroups: [""]
3033
resources: ["pods"]
34+
verbs: ["get", "update"]
35+
- apiGroups: [""]
36+
resources: ["secrets"]
3137
verbs: ["get"]
38+
- apiGroups: [""]
39+
resources: ["namespaces", "nodes"]
40+
verbs: ["get", "list"]
3241
- apiGroups: ["apps"]
3342
resources: ["daemonsets"]
3443
verbs: ["*"]
@@ -75,9 +84,15 @@ subjects:
7584
name: arango-storage-operator
7685
namespace: kube-system
7786

87+
88+
89+
90+
7891
---
7992

8093
## storage/deployment.yaml
94+
95+
8196
## Service accounts
8297
apiVersion: v1
8398
kind: ServiceAccount
@@ -106,7 +121,7 @@ spec:
106121
containers:
107122
- name: operator
108123
imagePullPolicy: IfNotPresent
109-
image: arangodb/kube-arangodb@sha256:bbf5433b2cda054835f7abf923116b43fa2e56907d2a19895cd12c74b907c056
124+
image: arangodb/kube-arangodb@sha256:46053f371917445a52cbde69a9acc72bb065fa4a80f3fafa3fb98ab84911c570
110125
args:
111126
- --operator.storage
112127
env:
@@ -149,3 +164,33 @@ spec:
149164
effect: "NoExecute"
150165
tolerationSeconds: 5
151166

167+
168+
169+
170+
---
171+
172+
## storage/service.yaml
173+
174+
175+
apiVersion: v1
176+
kind: Service
177+
metadata:
178+
name: arango-storage-operator
179+
namespace: kube-system
180+
labels:
181+
name: arango-storage-operator
182+
app: arango-storage-operator
183+
spec:
184+
ports:
185+
- name: server
186+
port: 8528
187+
protocol: TCP
188+
targetPort: 8528
189+
selector:
190+
name: arango-storage-operator
191+
app: arango-storage-operator
192+
role: leader
193+
type: ClusterIP
194+
195+
196+

manifests/arango-test.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
## test/rbac.yaml
2+
3+
24
## Cluster role granting access to resources needed by the integration tests.
35
apiVersion: rbac.authorization.k8s.io/v1beta1
46
kind: ClusterRole
@@ -32,3 +34,6 @@ subjects:
3234
- kind: ServiceAccount
3335
name: default
3436
namespace: default
37+
38+
39+

0 commit comments

Comments
 (0)