blob: d28b286b683530b4847e402e73a20ca34c39f3e4 [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 ],
yuryn88e56c92017-09-04 16:42:08 +030036 "image": "{{ .Values.image.readiness }}",
37 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khinda4b881972017-08-30 14:24:02 +000038 "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
Mandeep Khinda76092d62017-09-01 02:15:17 +000053 value: "gremlin"
Mandeep Khinda4b881972017-08-30 14:24:02 +000054 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"