with services?

This commit is contained in:
Remy Moll 2024-02-10 19:04:08 +01:00
parent 5e21ceaad3
commit 85abf0fda6
2 changed files with 19 additions and 0 deletions

View File

@ -6,6 +6,7 @@ resources:
- pvc.yaml - pvc.yaml
- deployment.yaml - deployment.yaml
- configmap.yaml - configmap.yaml
- services.yaml
- ingress.yaml - ingress.yaml
namespace: recipes namespace: recipes

View File

@ -0,0 +1,18 @@
apiVersion: v1
kind: Service
metadata:
name: recipes
labels:
app: recipes
spec:
selector:
app: recipes
ports:
- port: 80
targetPort: http
name: http
protocol: TCP
- port: 8080
targetPort: gunicorn
name: gunicorn
protocol: TCP