1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00
kube-arangodb/examples/reboot-pod.yaml
2022-09-22 14:22:10 +00:00

99 lines
2.3 KiB
YAML

kind: Pod
apiVersion: v1
metadata:
name: kube-reboot-pod
spec:
restartPolicy: Never
serviceAccountName: arango-deployment-operator-reboot
containers:
- image: arangodb/kube-arangodb:1.2.17
name: reboot
command: ["arangodb_operator", "reboot"]
args:
- --deployment-name=my-arangodb-cluster
- --image-name=arangodb/enterprise:3.7.10
- --license-secret-name=arangodb-license-key
- --coordinators=3
- 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
env:
- name: MY_POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: MY_POD_NAME
valueFrom:
fieldRef:
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