apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: application-controller-stateful-set
  namespace: kubeflow
spec:
  selector:
    matchLabels:
      app: application-controller
  serviceName: application-controller-service
  template:
    metadata:
      annotations:
        sidecar.istio.io/inject: "false"
      labels:
        app: application-controller
    spec:
      containers:
      - args:
        - --listen=:2345
        - --headless=true
        - --api-version=2
        - exec
        - /go/src/github.com/kubernetes-sigs/application/manager
        command:
        - /go/bin/dlv
        env:
        - name: project
          value: ""
        image: gcr.io//application-controller:latest
        imagePullPolicy: Always
        name: manager
        ports:
        - containerPort: 2345
        securityContext:
          privileged: true
      serviceAccountName: application-controller-service-account
  volumeClaimTemplates: []
