2019-09-27 11:04:23 +00:00
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/service-account.yaml
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
name: arango-backup-operator
|
|
|
|
namespace: default
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: kube-arangodb
|
2020-05-25 10:54:28 +00:00
|
|
|
helm.sh/chart: kube-arangodb-1.0.3
|
2019-09-27 11:04:23 +00:00
|
|
|
app.kubernetes.io/managed-by: Tiller
|
|
|
|
app.kubernetes.io/instance: backup
|
|
|
|
release: backup
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/backup-operator/cluster-role.yaml
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
name: arango-backup-operator-rbac-backup
|
|
|
|
namespace: default
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: kube-arangodb
|
2020-05-25 10:54:28 +00:00
|
|
|
helm.sh/chart: kube-arangodb-1.0.3
|
2019-09-27 11:04:23 +00:00
|
|
|
app.kubernetes.io/managed-by: Tiller
|
|
|
|
app.kubernetes.io/instance: backup
|
|
|
|
release: backup
|
|
|
|
rules:
|
|
|
|
- apiGroups: ["apiextensions.k8s.io"]
|
|
|
|
resources: ["customresourcedefinitions"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/backup-operator/cluster-role-binding.yaml
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
name: arango-backup-operator-rbac-storage
|
|
|
|
namespace: default
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: kube-arangodb
|
2020-05-25 10:54:28 +00:00
|
|
|
helm.sh/chart: kube-arangodb-1.0.3
|
2019-09-27 11:04:23 +00:00
|
|
|
app.kubernetes.io/managed-by: Tiller
|
|
|
|
app.kubernetes.io/instance: backup
|
|
|
|
release: backup
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
|
|
|
name: arango-backup-operator-rbac-backup
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: arango-backup-operator
|
|
|
|
namespace: default
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/backup-operator/role.yaml
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: Role
|
|
|
|
metadata:
|
|
|
|
name: arango-backup-operator-rbac-backup
|
|
|
|
namespace: default
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: kube-arangodb
|
2020-05-25 10:54:28 +00:00
|
|
|
helm.sh/chart: kube-arangodb-1.0.3
|
2019-09-27 11:04:23 +00:00
|
|
|
app.kubernetes.io/managed-by: Tiller
|
|
|
|
app.kubernetes.io/instance: backup
|
|
|
|
release: backup
|
|
|
|
rules:
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["pods", "services", "endpoints"]
|
|
|
|
verbs: ["get", "update"]
|
2019-10-07 05:48:36 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["events"]
|
|
|
|
verbs: ["*"]
|
2019-09-27 11:04:23 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources: ["secrets"]
|
|
|
|
verbs: ["get"]
|
|
|
|
- apiGroups: ["apps"]
|
|
|
|
resources: ["deployments", "replicasets"]
|
|
|
|
verbs: ["get"]
|
|
|
|
- apiGroups: ["backup.arangodb.com"]
|
|
|
|
resources: ["arangobackuppolicies", "arangobackuppolicies/status", "arangobackups", "arangobackups/status"]
|
|
|
|
verbs: ["*"]
|
|
|
|
- apiGroups: ["database.arangodb.com"]
|
|
|
|
resources: ["arangodeployments"]
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/backup-operator/role-binding.yaml
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: RoleBinding
|
|
|
|
metadata:
|
|
|
|
name: arango-backup-operator-rbac-backup
|
|
|
|
namespace: default
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: kube-arangodb
|
2020-05-25 10:54:28 +00:00
|
|
|
helm.sh/chart: kube-arangodb-1.0.3
|
2019-09-27 11:04:23 +00:00
|
|
|
app.kubernetes.io/managed-by: Tiller
|
|
|
|
app.kubernetes.io/instance: backup
|
|
|
|
release: backup
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: Role
|
|
|
|
name: arango-backup-operator-rbac-backup
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: arango-backup-operator
|
|
|
|
namespace: default
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/service.yaml
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: arango-backup-operator
|
|
|
|
namespace: default
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: kube-arangodb
|
2020-05-25 10:54:28 +00:00
|
|
|
helm.sh/chart: kube-arangodb-1.0.3
|
2019-09-27 11:04:23 +00:00
|
|
|
app.kubernetes.io/managed-by: Tiller
|
|
|
|
app.kubernetes.io/instance: backup
|
|
|
|
release: backup
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: server
|
|
|
|
port: 8528
|
|
|
|
protocol: TCP
|
|
|
|
targetPort: 8528
|
|
|
|
selector:
|
|
|
|
app.kubernetes.io/name: kube-arangodb
|
|
|
|
app.kubernetes.io/managed-by: Tiller
|
|
|
|
app.kubernetes.io/instance: backup
|
|
|
|
release: backup
|
|
|
|
role: leader
|
|
|
|
type: ClusterIP
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/deployment.yaml
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: arango-backup-operator
|
|
|
|
namespace: default
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: kube-arangodb
|
2020-05-25 10:54:28 +00:00
|
|
|
helm.sh/chart: kube-arangodb-1.0.3
|
2019-09-27 11:04:23 +00:00
|
|
|
app.kubernetes.io/managed-by: Tiller
|
|
|
|
app.kubernetes.io/instance: backup
|
|
|
|
release: backup
|
|
|
|
spec:
|
|
|
|
replicas: 2
|
|
|
|
strategy:
|
|
|
|
type: Recreate
|
|
|
|
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/name: kube-arangodb
|
|
|
|
app.kubernetes.io/managed-by: Tiller
|
|
|
|
app.kubernetes.io/instance: backup
|
|
|
|
release: backup
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: kube-arangodb
|
2020-05-25 10:54:28 +00:00
|
|
|
helm.sh/chart: kube-arangodb-1.0.3
|
2019-09-27 11:04:23 +00:00
|
|
|
app.kubernetes.io/managed-by: Tiller
|
|
|
|
app.kubernetes.io/instance: backup
|
|
|
|
release: backup
|
|
|
|
spec:
|
|
|
|
serviceAccountName: arango-backup-operator
|
|
|
|
affinity:
|
|
|
|
nodeAffinity:
|
|
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
nodeSelectorTerms:
|
|
|
|
- matchExpressions:
|
|
|
|
- key: beta.kubernetes.io/arch
|
|
|
|
operator: In
|
|
|
|
values:
|
|
|
|
- amd64
|
2019-10-29 13:15:29 +00:00
|
|
|
podAntiAffinity:
|
|
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
- weight: 100
|
|
|
|
podAffinityTerm:
|
|
|
|
topologyKey: "kubernetes.io/hostname"
|
|
|
|
labelSelector:
|
|
|
|
matchExpressions:
|
|
|
|
- key: app.kubernetes.io/name
|
|
|
|
operator: In
|
|
|
|
values:
|
|
|
|
- kube-arangodb
|
|
|
|
- key: app.kubernetes.io/instance
|
|
|
|
operator: In
|
|
|
|
values:
|
|
|
|
- backup
|
2019-10-07 05:48:36 +00:00
|
|
|
hostNetwork: false
|
|
|
|
hostPID: false
|
|
|
|
hostIPC: false
|
2019-10-16 14:58:20 +00:00
|
|
|
securityContext:
|
|
|
|
runAsNonRoot: true
|
|
|
|
runAsUser: 1000
|
2019-09-27 11:04:23 +00:00
|
|
|
containers:
|
|
|
|
- name: operator
|
|
|
|
imagePullPolicy: Always
|
2020-05-25 10:54:28 +00:00
|
|
|
image: arangodb/kube-arangodb:1.0.3
|
2019-09-27 11:04:23 +00:00
|
|
|
args:
|
|
|
|
|
|
|
|
- --operator.backup
|
|
|
|
- --chaos.allowed=false
|
|
|
|
env:
|
|
|
|
- name: MY_POD_NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
- name: MY_POD_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.name
|
|
|
|
- name: MY_POD_IP
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: status.podIP
|
2020-03-25 10:37:23 +00:00
|
|
|
- name: RELATED_IMAGE_UBI
|
|
|
|
value: "alpine:3.11"
|
|
|
|
- name: RELATED_IMAGE_METRICSEXPORTER
|
2020-04-16 09:53:56 +00:00
|
|
|
value: "arangodb/arangodb-exporter:0.1.7"
|
2020-03-25 10:37:23 +00:00
|
|
|
- name: RELATED_IMAGE_DATABASE
|
|
|
|
value: "arangodb/arangodb:latest"
|
2019-09-27 11:04:23 +00:00
|
|
|
ports:
|
|
|
|
- name: metrics
|
|
|
|
containerPort: 8528
|
|
|
|
securityContext:
|
2019-10-07 05:48:36 +00:00
|
|
|
privileged: false
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
capabilities:
|
|
|
|
drop:
|
|
|
|
- 'ALL'
|
2019-09-27 11:04:23 +00:00
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /health
|
|
|
|
port: 8528
|
|
|
|
scheme: HTTPS
|
|
|
|
initialDelaySeconds: 5
|
|
|
|
periodSeconds: 10
|
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
|
|
|
path: /ready
|
|
|
|
port: 8528
|
|
|
|
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
|
|
|
|
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/deployment-operator/cluster-role-binding.yaml
|
|
|
|
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/deployment-operator/cluster-role.yaml
|
|
|
|
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/deployment-operator/default-role-binding.yaml
|
|
|
|
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/deployment-operator/default-role.yaml
|
|
|
|
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/deployment-operator/role-binding.yaml
|
|
|
|
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/deployment-operator/role.yaml
|
|
|
|
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/deployment-replications-operator/cluster-role-binding.yaml
|
|
|
|
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/deployment-replications-operator/cluster-role.yaml
|
|
|
|
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/deployment-replications-operator/role-binding.yaml
|
|
|
|
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/deployment-replications-operator/role.yaml
|
|
|
|
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/storage-operator/cluster-role-binding.yaml
|
|
|
|
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/storage-operator/cluster-role.yaml
|
|
|
|
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/storage-operator/crd.yaml
|
|
|
|
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/storage-operator/role-binding.yaml
|
|
|
|
|
|
|
|
---
|
|
|
|
# Source: kube-arangodb/templates/storage-operator/role.yaml
|
|
|
|
|