apiVersion: v1
kind: Service
metadata:
  name: nginx-service
  labels:
   app: nginx-service
spec:
  selector:
    app: nginx
  ports:
    - name: http
      protocol: TCP
      port: 80
      targetPort: http
