From 47485ec539316b31829a50d3b66f5afeed656e74 Mon Sep 17 00:00:00 2001 From: dkeightley Date: Fri, 27 Sep 2024 17:57:35 +1200 Subject: [PATCH] Update lab-c --- instructors/lab-deployments/deployments.yaml | 39 ++------------------ instructors/lab-deployments/ingress.yaml | 4 +- 2 files changed, 4 insertions(+), 39 deletions(-) diff --git a/instructors/lab-deployments/deployments.yaml b/instructors/lab-deployments/deployments.yaml index a97c5ba..084dc7a 100644 --- a/instructors/lab-deployments/deployments.yaml +++ b/instructors/lab-deployments/deployments.yaml @@ -67,43 +67,10 @@ spec: app: lab-c spec: containers: - - name: nginx - image: nginx:latest + - name: app + image: docker.io/derekdemo/lab-c ports: - - containerPort: 443 - volumeMounts: - - name: lab-c-conf - mountPath: /etc/nginx - volumes: - - name: lab-c-conf - configMap: - name: lab-c-conf - items: - - key: nginx.conf - path: nginx.conf ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: lab-c-conf - namespace: lab -data: - nginx.conf: | - user nginx; - worker_processes 1; - events { - worker_connections 10; - } - http { - server { - listen 443; - server_name localhost; - location / { - root /usr/share/nginx/html; #Change this line - index index.html index.htm; - } - } - } + - containerPort: 8080 --- apiVersion: apps/v1 kind: Deployment diff --git a/instructors/lab-deployments/ingress.yaml b/instructors/lab-deployments/ingress.yaml index 5cf6fda..ca93dc1 100644 --- a/instructors/lab-deployments/ingress.yaml +++ b/instructors/lab-deployments/ingress.yaml @@ -3,8 +3,6 @@ kind: Ingress metadata: name: lab-c namespace: lab - annotations: - nginx.ingress.kubernetes.io/backend-protocol: "HTTPS" spec: rules: - host: "lab-c.example.com" @@ -16,4 +14,4 @@ spec: service: name: lab-c port: - number: 443 \ No newline at end of file + number: 8080 \ No newline at end of file