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

38
p2/confs/ingress.yaml Normal file
View File

@ -0,0 +1,38 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: minimal-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: nginx # Ensure this matches your Ingress class
rules:
- host: "app1.com"
http:
paths: # Ensure correct indentation under "http"
- path: "/"
pathType: Prefix
backend:
service:
name: app1-service
port:
number: 80
- host: "app2.com"
http:
paths: # Ensure correct indentation under "http"
- path: "/"
pathType: Prefix
backend:
service:
name: app2-service
port:
number: 80
- http:
paths: # Ensure correct indentation under "http"
- path: "/"
pathType: Prefix
backend:
service:
name: app3-service
port:
number: 80