Added debian

This commit is contained in:
2026-02-24 19:57:16 +01:00
parent a02b76e6f6
commit e494dd72b6
13 changed files with 187 additions and 17 deletions

19
exemples/deploy.yaml Normal file
View File

@@ -0,0 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-nginx
spec:
replicas: 1
selector:
matchLabels:
app: my-nginx
template:
metadata:
labels:
app: my-nginx
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80

View File

@@ -3,11 +3,12 @@ kind: Service
metadata:
name: web-service
spec:
type: NodePort # Volem accedir des de fora
type: LoadBalancer # 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
nodePort: 30007 # (Opcional) El port que obrim al PC host