Files
kubernetes-learning/02-service.yaml

12 lines
399 B
YAML

apiVersion: v1
kind: Service
metadata:
name: mon-service-apprentissage # Le nom du "Standardiste"
spec:
selector:
app: apprentissage # IMPORTANT: Doit correspondre exactement au label du Deployment
ports:
- protocol: TCP
port: 80 # Port sur lequel Service écoute
targetPort: 80 # Port sur lequel Pod écoute
type: ClusterIP