apiVersion: v1
kind: Service
metadata:
  name: podinfo
  namespace: demo2
  labels:
    app: podinfo
spec:
  type: NodePort
  selector:
    app: podinfo
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: http
