K3s-cluster/nginx/service.yaml

14 lines
174 B
YAML

apiVersion: v1
kind: Service
metadata:
name: nginx-svc
labels:
app: nginx
spec:
type: ClusterIP
ports:
- name: http
port: 80
selector:
app: nginx