From 73feb7fac07e799a521d9521fdd32ae44342d93a Mon Sep 17 00:00:00 2001 From: leonnicolas Date: Thu, 4 Feb 2021 14:22:06 +0100 Subject: [PATCH] k8s/deployment.yaml: add service --- http-wrapper/k8s/deployment.yaml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/http-wrapper/k8s/deployment.yaml b/http-wrapper/k8s/deployment.yaml index 50b6333..4970f62 100644 --- a/http-wrapper/k8s/deployment.yaml +++ b/http-wrapper/k8s/deployment.yaml @@ -7,11 +7,11 @@ spec: replicas: 1 selector: matchLabels: - app: rust-opencl-demo + app.kubernetes.io/name: rust-opencl-demo template: metadata: labels: - app: rust-opencl-demo + app.kubernetes.io/name: rust-opencl-demo spec: containers: - name: rust-opencl-demo @@ -37,3 +37,18 @@ spec: - key: nvidia.com/gpu effect: NoSchedule operator: Exists +--- +kind: Service +apiVersion: v1 +metadata: + name: rust-opencl-demo + labels: + app.kubernetes.io/name: rust-opencl-demo +spec: + ports: + - name: http + port: 80 + targetPort: 8080 + protocol: TCP + selector: + app.kubernetes.io/name: rust-opencl-demo