zkt25/z2/service.yaml

15 lines
294 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

apiVersion: v1
kind: Service
metadata:
name: web-app-service
namespace: my-namespace
spec:
type: NodePort
selector:
app: web-app
ports:
- protocol: TCP
port: 80
targetPort: 3000
nodePort: 30080 # Tu peux changer ce port si nécessaire (entre 3000032767)