part2 is done (with volumes and a different index for each service)

This commit is contained in:
2025-02-27 07:47:22 -05:00
parent cc358ecf93
commit 8671147c79
6 changed files with 160 additions and 5 deletions

42
p2/confs/app3.yaml Normal file
View File

@ -0,0 +1,42 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: app3-deployment
labels:
app: app3
spec:
replicas: 1
selector:
matchLabels:
app: app3
template:
metadata:
labels:
app: app3
spec:
containers:
- name: app3
image: nginx:1.14.2
volumeMounts:
- name: indexes
mountPath: /usr/share/nginx/html/index.html
subPath: app3
volumes:
- name: indexes
configMap:
name: indexes
items:
- key: app3
path: app3
---
apiVersion: v1
kind: Service
metadata:
name: app3-service
spec:
type: NodePort
selector:
app: app3
ports:
- port: 80
targetPort: 80