1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

Gitignored arango-deployment-replication-dev.yaml

This commit is contained in:
Ewout Prangsma 2018-05-22 13:20:58 +02:00
parent aa7c53a4c1
commit 61741ebe50
No known key found for this signature in database
GPG key ID: 4DBAD380D93D0698
2 changed files with 1 additions and 130 deletions

View file

@ -1,3 +1,4 @@
arango-deployment-dev.yaml
arango-deployment-replication-dev.yaml
arango-storage-dev.yaml
arango-test-dev.yaml

View file

@ -1,130 +0,0 @@
## deployment-replication/rbac.yaml
## Cluster role granting access to ArangoDeploymentReplication resources.
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: arango-deployment-replications
rules:
- apiGroups: ["replication.database.arangodb.com"]
resources: ["arangodeploymentreplications"]
verbs: ["*"]
---
## Cluster role granting access to all resources needed by the ArangoDeploymentReplication operator.
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: arango-deployment-replication-operator
rules:
- apiGroups: ["replication.database.arangodb.com"]
resources: ["arangodeploymentreplications"]
verbs: ["*"]
- apiGroups: ["database.arangodb.com"]
resources: ["arangodeployments"]
verbs: ["get"]
- apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
verbs: ["get"]
- apiGroups: [""]
resources: ["pods", "services", "endpoints", "persistentvolumeclaims", "events", "secrets"]
verbs: ["*"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get"]
- apiGroups: ["apps"]
resources: ["deployments"]
verbs: ["*"]
---
## Bind the cluster role granting access to ArangoDeploymentReplication resources
## to the default service account of the configured namespace.
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding
metadata:
name: arango-deployment-replications
namespace: default
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: arango-deployment-replications
subjects:
- kind: ServiceAccount
name: default
namespace: default
---
## Bind the cluster role granting access to all resources needed by
## the ArangoDeploymentReplication operator to the default service account
## the is being used to run the operator deployment.
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: arango-deployment-replication-operator-default
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: arango-deployment-replication-operator
subjects:
- kind: ServiceAccount
name: default
namespace: default
---
## deployment-replication/deployment-replication.yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: arango-deployment-replication-operator
namespace: default
spec:
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
name: arango-deployment-replication-operator
app: arango-deployment-replication-operator
spec:
containers:
- name: operator
imagePullPolicy: IfNotPresent
image: ewoutp/kube-arangodb@sha256:8480ab465a40a91b9dffeff0d3cf1534e1687b38ca7ad57b254d1deefdffd81f
args:
- --operator.deployment-replication
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
ports:
- name: metrics
containerPort: 8528
livenessProbe:
httpGet:
path: /health
port: 8528
scheme: HTTPS
initialDelaySeconds: 5
periodSeconds: 10
readinessProbe:
httpGet:
path: /ready/deployment-replication
port: 8528
scheme: HTTPS
initialDelaySeconds: 5
periodSeconds: 10