summaryrefslogtreecommitdiffstats
path: root/kubernetes/msb/templates
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/msb/templates')
-rw-r--r--kubernetes/msb/templates/all-services.yaml14
-rw-r--r--kubernetes/msb/templates/msb-consul-deployment.yaml29
2 files changed, 43 insertions, 0 deletions
diff --git a/kubernetes/msb/templates/all-services.yaml b/kubernetes/msb/templates/all-services.yaml
new file mode 100644
index 0000000000..fee2586223
--- /dev/null
+++ b/kubernetes/msb/templates/all-services.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: msb-consul
+ labels:
+ app: msb-consul
+spec:
+ clusterIP: "{{ .Values.consulClusterIP }}"
+ ports:
+ - port: 8500
+ nodePort: "{{ .Values.consulNodePort }}"
+ selector:
+ app: msb-consul
+ type: NodePort \ No newline at end of file
diff --git a/kubernetes/msb/templates/msb-consul-deployment.yaml b/kubernetes/msb/templates/msb-consul-deployment.yaml
new file mode 100644
index 0000000000..0d98896529
--- /dev/null
+++ b/kubernetes/msb/templates/msb-consul-deployment.yaml
@@ -0,0 +1,29 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: msb-consul
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: msb-consul
+ template:
+ metadata:
+ labels:
+ app: msb-consul
+ name: msb-consul
+ spec:
+ hostname: msb-consul
+ containers:
+ - args:
+ image: consul
+ name: "msb-consul"
+ ports:
+ - containerPort: 8500
+ name: msb-consul
+ readinessProbe:
+ tcpSocket:
+ port: 8500
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ imagePullPolicy: "{{ .Values.pullPolicy }}" \ No newline at end of file