aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/kubernetes/templates/consul.yaml
diff options
context:
space:
mode:
authorThomas Duval <thomas.duval@orange.com>2017-10-29 20:50:12 +0100
committerThomas Duval <thomas.duval@orange.com>2017-10-29 20:50:12 +0100
commit2d4ede421277b1c60974f593ba82684988784e1e (patch)
tree7f992fe2b45daf6c930f1051358aafdb608e1eb9 /moonv4/kubernetes/templates/consul.yaml
parent593f0e8556b023ed383ed600adf3aa85b395b2ea (diff)
Add Kubernetes configuration scripts.
Change-Id: I1dedc51b32db3008c955dd6e4be9013cb4ef6379
Diffstat (limited to 'moonv4/kubernetes/templates/consul.yaml')
-rw-r--r--moonv4/kubernetes/templates/consul.yaml33
1 files changed, 33 insertions, 0 deletions
diff --git a/moonv4/kubernetes/templates/consul.yaml b/moonv4/kubernetes/templates/consul.yaml
new file mode 100644
index 00000000..f0fb764e
--- /dev/null
+++ b/moonv4/kubernetes/templates/consul.yaml
@@ -0,0 +1,33 @@
+apiVersion: apps/v1beta1
+kind: Deployment
+metadata:
+ namespace: moon
+ name: consul
+spec:
+ replicas: 1
+ template:
+ metadata:
+ labels:
+ app: consul
+ spec:
+ hostname: consul
+ containers:
+ - name: consul
+ image: consul:latest
+ ports:
+ - containerPort: 8500
+---
+
+apiVersion: v1
+kind: Service
+metadata:
+ name: consul
+ namespace: moon
+spec:
+ ports:
+ - port: 8500
+ targetPort: 8500
+ nodePort: 30005
+ selector:
+ app: consul
+ type: NodePort