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

View File

@ -17,11 +17,22 @@ spec:
containers:
- name: app1
image: nginx:1.14.2
volumeMounts:
- name: indexes
mountPath: /usr/share/nginx/html/index.html
subPath: app1
volumes:
- name: indexes
configMap:
name: indexes
items:
- key: app1
path: app1
---
apiVersion: v1
kind: Service
metadata:
name: app1
name: app1-service
spec:
type: NodePort
selector:
@ -29,4 +40,3 @@ spec:
ports:
- port: 80
targetPort: 80
nodePort: 30080