java-tutorials/kubernetes-modules/Deployment_Vs_StatefulSet/Deployment/Service.yaml

13 lines
179 B
YAML

apiVersion: v1
kind: Service
metadata:
name: web-app-service
spec:
ports:
- name: http
port: 80
nodePort: 30080
selector:
name: web-app
type: NodePort