apiVersion: v1
kind: Service
metadata:
  name: nginx-service-nodeport
  namespace: kube-sample
spec:
  selector:
    app: nginx
  ports:
  - protocol: TCP
    port: 8080
    targetPort: 80
    nodePort: 30180
  type: NodePort
  externalTrafficPolicy: Local
