15 lines
294 B
YAML
15 lines
294 B
YAML
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 30000–32767)
|