From 0f6a04dd69b6940eff089d81ac67ad7dac8dedef Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 24 Oct 2022 19:18:02 +0000 Subject: [PATCH] The glorious copilot-ops bot has granted you a solution --- .../generated-by-copilot-ops1.yaml | 44 +++++++++++++++---- 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/generated-by-copilot-ops/generated-by-copilot-ops1.yaml b/generated-by-copilot-ops/generated-by-copilot-ops1.yaml index ab83fab..672105c 100644 --- a/generated-by-copilot-ops/generated-by-copilot-ops1.yaml +++ b/generated-by-copilot-ops/generated-by-copilot-ops1.yaml @@ -1,22 +1,48 @@ + apiVersion: apps/v1 kind: Deployment metadata: - name: jupyter-notebook + name: nginx + labels: + app: nginx spec: replicas: 1 selector: matchLabels: - app: jupyter-notebook + app: nginx template: metadata: labels: - app: jupyter-notebook + app: nginx spec: containers: - - name: jupyter-notebook - image: jupyter/tensorflow-notebook - resources: - limits: - nvidia.com/gpu: 1 + - name: nginx + image: nginx:1.7.9 ports: - - containerPort: 8888 + - containerPort: 80 +--- +apiVersion: v1 +kind: Service +metadata: + name: nginx + labels: + app: nginx +spec: + type: ClusterIP + ports: + - port: 80 + targetPort: 80 + selector: + app: nginx +--- +apiVersion: v1 +kind: Route +metadata: + name: nginx + labels: + app: nginx +spec: + host: nginx.example.com + to: + kind: Service + name: nginx