apiVersion: v1
kind: Service
metadata:
  name: nginx-svc
  labels:
    app: nginx
spec:
  selector:
    app: nginx
  type: NodePort
  externalTrafficPolicy: Cluster
  ports:
  - port: 8080
    targetPort: 80
