java-tutorials/kubernetes-modules/deployment-and-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