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