apiVersion: v1
kind: Service
metadata:
  name: service1
  namespace: testing

spec:
  ports:
    - name: http
      port: 8080
      protocol: TCP
      targetPort: http-api
    - name: http-admin
      port: 8079
      protocol: TCP
      targetPort: http-admin
  selector:
    app: foo
  sessionAffinity: None
  type: ClusterIP