diff --git a/README.md b/README.md index 15825573e..86e920227 100644 --- a/README.md +++ b/README.md @@ -23,10 +23,10 @@ support. That is still completely missing. ## Installation of latest release ```bash -kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.1.0/manifests/crd.yaml -kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.1.0/manifests/arango-deployment.yaml +kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.2.0/manifests/crd.yaml +kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.2.0/manifests/arango-deployment.yaml # To use `ArangoLocalStorage`, also run -kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.1.0/manifests/arango-storage.yaml +kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.2.0/manifests/arango-storage.yaml ``` ## Building diff --git a/manifests/arango-deployment.yaml b/manifests/arango-deployment.yaml index 9bfcab96c..9adb0f0ac 100644 --- a/manifests/arango-deployment.yaml +++ b/manifests/arango-deployment.yaml @@ -26,6 +26,9 @@ rules: - apiGroups: [""] resources: ["pods", "services", "endpoints", "persistentvolumeclaims", "events", "secrets"] verbs: ["*"] +- apiGroups: [""] + resources: ["nodes"] + verbs: ["get"] - apiGroups: ["apps"] resources: ["deployments"] verbs: ["*"] @@ -35,7 +38,7 @@ rules: --- -## Bind the cluster role granting access to ArangoLocalStorage resources +## Bind the cluster role granting access to ArangoDeployment resources ## to the default service account of the configured namespace. apiVersion: rbac.authorization.k8s.io/v1beta1 kind: RoleBinding @@ -79,7 +82,7 @@ metadata: name: arango-deployment-operator namespace: default spec: - replicas: 1 + replicas: 2 strategy: type: Recreate template: @@ -91,7 +94,7 @@ spec: containers: - name: operator imagePullPolicy: IfNotPresent - image: arangodb/kube-arangodb@sha256:4b58b71c0a53b7652ca6e9b518bdb1393bf3a0c79d3c666a0914dd079f8f018e + image: arangodb/kube-arangodb@sha256:43bdc14d072fb1912d885536c189a631076e13e5c3e8a87b06e5ddbe60c66a6d args: - --operator.deployment - --chaos.allowed=false @@ -125,4 +128,13 @@ spec: scheme: HTTPS initialDelaySeconds: 5 periodSeconds: 10 + tolerations: + - key: "node.kubernetes.io/unreachable" + operator: "Exists" + effect: "NoExecute" + tolerationSeconds: 5 + - key: "node.kubernetes.io/not-ready" + operator: "Exists" + effect: "NoExecute" + tolerationSeconds: 5 diff --git a/manifests/arango-storage.yaml b/manifests/arango-storage.yaml index c0980928f..fde46cb60 100644 --- a/manifests/arango-storage.yaml +++ b/manifests/arango-storage.yaml @@ -90,7 +90,7 @@ metadata: name: arango-storage-operator namespace: kube-system spec: - replicas: 1 + replicas: 2 strategy: type: Recreate template: @@ -103,7 +103,7 @@ spec: containers: - name: operator imagePullPolicy: IfNotPresent - image: arangodb/kube-arangodb@sha256:4b58b71c0a53b7652ca6e9b518bdb1393bf3a0c79d3c666a0914dd079f8f018e + image: arangodb/kube-arangodb@sha256:43bdc14d072fb1912d885536c189a631076e13e5c3e8a87b06e5ddbe60c66a6d args: - --operator.storage env: @@ -136,4 +136,13 @@ spec: scheme: HTTPS initialDelaySeconds: 5 periodSeconds: 10 - + tolerations: + - key: "node.kubernetes.io/unreachable" + operator: "Exists" + effect: "NoExecute" + tolerationSeconds: 5 + - key: "node.kubernetes.io/not-ready" + operator: "Exists" + effect: "NoExecute" + tolerationSeconds: 5 + diff --git a/manifests/arango-test.yaml b/manifests/arango-test.yaml index 16a494a54..5cad77481 100644 --- a/manifests/arango-test.yaml +++ b/manifests/arango-test.yaml @@ -9,7 +9,7 @@ rules: resources: ["nodes"] verbs: ["list"] - apiGroups: [""] - resources: ["pods", "services", "persistentvolumes", "persistentvolumeclaims", "secrets"] + resources: ["pods", "services", "persistentvolumes", "persistentvolumeclaims", "secrets", "serviceaccounts"] verbs: ["*"] - apiGroups: ["apps"] resources: ["daemonsets"]