summaryrefslogtreecommitdiffstats
path: root/samples/services/nginx/yaml/manifest.template
diff options
context:
space:
mode:
Diffstat (limited to 'samples/services/nginx/yaml/manifest.template')
-rw-r--r--samples/services/nginx/yaml/manifest.template35
1 files changed, 35 insertions, 0 deletions
diff --git a/samples/services/nginx/yaml/manifest.template b/samples/services/nginx/yaml/manifest.template
new file mode 100644
index 0000000..ebd5392
--- /dev/null
+++ b/samples/services/nginx/yaml/manifest.template
@@ -0,0 +1,35 @@
+---
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: {{ deploy_name }}
+ labels:
+ app: {{ deploy_name }}
+spec:
+ template:
+ metadata:
+ labels:
+ app: {{ deploy_name }}
+ spec:
+ containers:
+ - name: {{ deploy_name }}
+ image: {{ image_path }}/{{ image_name }}:{{ image_tag }}
+ ports:
+ - containerPort: {{ grpc_port }}
+ - containerPort: {{ server_port }}
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ deploy_name }}
+ labels:
+ app: {{ deploy_name }}
+spec:
+ ports:
+ - port: {{ grpc_port }}
+ name: grpc
+ - port: {{ server_port }}
+ name: http
+ selector:
+ app: {{ deploy_name }}
+---