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

13 lines
179 B
YAML
Raw Normal View History

2021-06-11 00:08:03 -04:00
apiVersion: v1
kind: Service
metadata:
name: web-app-service
spec:
ports:
- name: http
port: 80
nodePort: 30080
selector:
name: web-app
type: NodePort