Skip to content

Commit

Permalink
Update lab-c
Browse files Browse the repository at this point in the history
  • Loading branch information
dkeightley committed Sep 27, 2024
1 parent 7327778 commit 47485ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 39 deletions.
39 changes: 3 additions & 36 deletions instructors/lab-deployments/deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions instructors/lab-deployments/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -16,4 +14,4 @@ spec:
service:
name: lab-c
port:
number: 443
number: 8080

0 comments on commit 47485ec

Please sign in to comment.