2019-03-12 14:51:32 +00:00
|
|
|
kind: Pod
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: kube-reboot-pod
|
|
|
|
spec:
|
2019-09-27 07:48:16 +00:00
|
|
|
restartPolicy: Never
|
|
|
|
serviceAccountName: arango-deployment-operator-reboot
|
2019-03-12 14:51:32 +00:00
|
|
|
containers:
|
2022-09-14 08:43:05 +00:00
|
|
|
- image: arangodb/kube-arangodb:1.2.16
|
2019-03-12 14:51:32 +00:00
|
|
|
name: reboot
|
|
|
|
command: ["arangodb_operator", "reboot"]
|
|
|
|
args:
|
2019-09-27 07:48:16 +00:00
|
|
|
- --deployment-name=my-arangodb-cluster
|
2021-07-06 05:58:35 +00:00
|
|
|
- --image-name=arangodb/enterprise:3.7.10
|
2019-03-12 14:51:32 +00:00
|
|
|
- --license-secret-name=arangodb-license-key
|
|
|
|
- --coordinators=3
|
2019-09-27 07:48:16 +00:00
|
|
|
- pvc-9aa241f7-df94-11e9-b74c-42010aac0044
|
|
|
|
- pvc-9b1c76eb-df94-11e9-b74c-42010aac0044
|
|
|
|
- pvc-9b966437-df94-11e9-b74c-42010aac0044
|
|
|
|
- pvc-9c4d60d8-df94-11e9-b74c-42010aac0044
|
|
|
|
- pvc-9d0480e4-df94-11e9-b74c-42010aac0044
|
|
|
|
- pvc-9d418fb3-df94-11e9-b74c-42010aac0044
|
2019-03-12 14:51:32 +00:00
|
|
|
env:
|
|
|
|
- name: MY_POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
- name: MY_POD_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
2019-09-27 07:48:16 +00:00
|
|
|
fieldPath: metadata.name
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
name: arango-deployment-operator-reboot
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: Role
|
|
|
|
metadata:
|
|
|
|
name: arango-deployment-operator-reboot
|
|
|
|
namespace: default
|
|
|
|
rules:
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["pods", "services", "endpoints", "persistentvolumeclaims", "events", "secrets"]
|
|
|
|
verbs: ["*"]
|
|
|
|
- apiGroups: ["database.arangodb.com"]
|
|
|
|
resources: ["arangodeployments"]
|
|
|
|
verbs: ["*"]
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: RoleBinding
|
|
|
|
metadata:
|
|
|
|
name: arango-deployment-operator-reboot
|
|
|
|
namespace: default
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: Role
|
|
|
|
name: arango-deployment-operator-reboot
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: arango-deployment-operator-reboot
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
name: arango-deployment-operator-reboot
|
|
|
|
namespace: default
|
|
|
|
rules:
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["persistentvolumes"]
|
|
|
|
verbs: ["*"]
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
name: arango-deployment-operator-reboot
|
|
|
|
namespace: default
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
|
|
|
name: arango-deployment-operator-reboot
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: arango-deployment-operator-reboot
|
|
|
|
namespace: default
|