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

14 lines
165 B
YAML

apiVersion: v1
kind: Service
metadata:
name: nginx
labels:
app: nginx
spec:
ports:
- port: 80
name: web
clusterIP: None
selector:
app: nginx