diff options
author | Xuan Jia <jason.jiaxuan@gmail.com> | 2018-03-06 02:48:39 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-03-06 02:48:39 +0000 |
commit | d96399015d64132b24f43a7fdd376a6fb109e28a (patch) | |
tree | b9ca7e5dd543ee2e30e8f442e5cad562509234bd /src/helm-charts/clearwater/templates/homestead-depl.yaml | |
parent | 915c35394e5991c8c53ec36eafb2dffa76a9608f (diff) | |
parent | a4d56a2976e665857df1186c66202f590027d6a7 (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.yaml | 51 |
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 |