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

14 lines
165 B
YAML
Raw Normal View History

2021-06-11 00:08:03 -04:00
apiVersion: v1
kind: Service
metadata:
name: nginx
labels:
app: nginx
spec:
ports:
- port: 80
name: web
clusterIP: None
selector:
app: nginx