apiVersion: v1
kind: Service
metadata:
  name: sleep-service-{{ .Iteration }}-{{ .Replica }}
  labels:
    name: my-svc-{{ .Iteration }}-{{ .Replica }}
spec:
  selector:
    app: sleep-app-{{ .Iteration }}-1
  ports:
  - name: serviceport
    protocol: TCP
    port: 80
    targetPort: 8080
  type: ClusterIP
