blob: aea89ad51f829e281ecda9923334ea1a337584e7 [file] [log] [blame]
Mandeep Khinda4b881972017-08-30 14:24:02 +00001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: gremlin
5 namespace: "{{ .Values.nsPrefix }}-aai"
6spec:
7 selector:
8 matchLabels:
9 app: gremlin
10 template:
11 metadata:
12 labels:
13 app: gremlin
14 name: gremlin
15 annotations:
16 pod.beta.kubernetes.io/init-containers: '[
17 {
18 "args": [
19 "--container-name",
20 "hbase"
21 ],
22 "command": [
23 "/root/ready.py"
24 ],
25 "env": [
26 {
27 "name": "NAMESPACE",
28 "valueFrom": {
29 "fieldRef": {
30 "apiVersion": "v1",
31 "fieldPath": "metadata.namespace"
32 }
33 }
34 }
35 ],
36 "image": "oomk8s/readiness-check:1.0.0",
37 "imagePullPolicy": "Always",
38 "name": "gremlin-readiness"
39 }
40 ]'
41 spec:
42 hostname: gremlin
43 containers:
44 - name: gremlin
45 image: {{ .Values.image.gremlinServerImage }}
46 imagePullPolicy: {{ .Values.pullPolicy }}
47 env:
48 - name: SERVER_HOST
49 value: "hbase.{{ .Values.nsPrefix }}-aai"
50 - name: SERVER_TABLE
51 value: aaigraph.dev
52 - name: GREMLIN_HOST
53 value: "gremlin.{{ .Values.nsPrefix }}-aai"
54 ports:
55 - containerPort: 8182
56 readinessProbe:
57 tcpSocket:
58 port: 8182
59 initialDelaySeconds: 5
60 periodSeconds: 10
61 imagePullSecrets:
62 - name: "{{ .Values.nsPrefix }}-docker-registry-key"