summaryrefslogtreecommitdiffstats
path: root/src/helm-charts/clearwater/templates/homestead-depl.yaml
diff options
context:
space:
mode:
authorXuan Jia <jason.jiaxuan@gmail.com>2018-03-06 02:48:39 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-03-06 02:48:39 +0000
commitd96399015d64132b24f43a7fdd376a6fb109e28a (patch)
treeb9ca7e5dd543ee2e30e8f442e5cad562509234bd /src/helm-charts/clearwater/templates/homestead-depl.yaml
parent915c35394e5991c8c53ec36eafb2dffa76a9608f (diff)
parenta4d56a2976e665857df1186c66202f590027d6a7 (diff)
Merge "Istio implementation for clearwater chart"
Diffstat (limited to 'src/helm-charts/clearwater/templates/homestead-depl.yaml')
-rw-r--r--src/helm-charts/clearwater/templates/homestead-depl.yaml51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/helm-charts/clearwater/templates/homestead-depl.yaml b/src/helm-charts/clearwater/templates/homestead-depl.yaml
new file mode 100644
index 0000000..590ea51
--- /dev/null
+++ b/src/helm-charts/clearwater/templates/homestead-depl.yaml
@@ -0,0 +1,51 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: homestead
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ service: homestead
+ template:
+ metadata:
+ labels:
+ service: homestead
+ snmp: enabled
+ app: homestead
+ spec:
+ containers:
+ - image: "{{ .Values.image.path }}/homestead:{{ .Values.image.tag }}"
+ imagePullPolicy: Always
+ name: homestead
+ ports:
+ - containerPort: 22
+ - containerPort: 8888
+ envFrom:
+ - configMapRef:
+ name: env-vars
+ env:
+ - name: MY_POD_IP
+ valueFrom:
+ fieldRef:
+ fieldPath: status.podIP
+ livenessProbe:
+ exec:
+ command: ["/bin/bash", "/usr/share/kubernetes/liveness.sh", "8888"]
+ initialDelaySeconds: 60
+ readinessProbe:
+ exec:
+ command: ["/bin/bash", "/usr/share/kubernetes/liveness.sh", "8888"]
+ volumeMounts:
+ - name: homesteadlogs
+ mountPath: /var/log/homestead
+ - image: busybox
+ name: tailer
+ command: [ "tail", "-F", "/var/log/homestead/homestead_current.txt" ]
+ volumeMounts:
+ - name: homesteadlogs
+ mountPath: /var/log/homestead
+ volumes:
+ - name: homesteadlogs
+ emptyDir: {}
+ restartPolicy: Always