Run all components in one namespace
[oom.git] / kubernetes / msb / templates / msb-consul-deployment.yaml
1 #{{ if not .Values.disableMsbMsbConsul }}
2 apiVersion: extensions/v1beta1
3 kind: Deployment
4 metadata:
5   name: msb-consul
6   namespace: "{{ .Values.nsPrefix }}"
7 spec:
8   replicas: 1
9   selector:
10     matchLabels:
11       app: msb-consul
12   template:
13     metadata:
14       labels:
15         app: msb-consul
16       name: msb-consul
17     spec:
18       hostname: msb-consul
19       containers:
20       - args:
21         image: {{ .Values.image.consul }}
22         name: msb-consul
23         ports:
24         - containerPort: {{ .Values.consulPort }}
25           name: msb-consul
26         readinessProbe:
27           tcpSocket:
28             port: {{ .Values.consulPort }}
29           initialDelaySeconds: 5
30           periodSeconds: 10
31         imagePullPolicy: {{ .Values.pullPolicy }}
32 #{{ end }}