Versio final

This commit is contained in:
2026-02-24 13:00:15 +01:00
parent cb11eaf500
commit a02b76e6f6
2 changed files with 25 additions and 0 deletions

13
exemples/service.yaml Normal file
View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: web-service
spec:
type: NodePort # Volem accedir des de fora
selector:
app: web # <--- LA CLAU: Això busca Pods amb l'etiqueta "app: web"
ports:
- protocol: TCP
port: 80 # El port del Service (el del recepcionista)
targetPort: 80 # El port del Pod (on escolta l'aplicació realment)
nodePort: 30007 # (Opcional) El port que obrim al PC host