apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: controller-manager
spec:
  selector:
    matchLabels:
      app: function-controller
  serviceName: serverless
  template:
    metadata:
      annotations:
        sidecar.istio.io/inject: "false"
      labels:
        app: function-controller
    spec:
      serviceAccountName: function-controller
      containers:
        - name: manager
          # image and tag get replaced by 'make docker-build'
          image: function-controller:latest
          imagePullPolicy: Always
