apiVersion: v1
kind: Service
metadata:
  name: myapp
  namespace: default
spec:
  selector:
    k8s-app: myapp
  ports:
    - protocol: TCP
      port: 80
      targetPort: 8080