
apiVersion: apps/v1
kind: Deployment
metadata:
  name: flekszible-operator
  labels:
    app: flekszible
    component: operator
spec:
  selector:
    matchLabels:
      app: flekszible
      component: operator
  replicas: 1
  template:
    metadata:
      labels:
        app: flekszible
        component: operator
    spec:
      containers:
      - name: flekszible
        image: elek/flekszible
        imagePullPolicy: Never
        args:
        - flekszible
        - operator
        - /tmp/workdir
        workingDir: /tmp/tls
        volumeMounts:
        - mountPath: /tmp/workdir/Flekszible
          name: flekszible
          subPath: Flekszible
        - mountPath: /tmp/tls
          name: tls
      volumes:
      - name: tls
        configMap:
          name: flekszible-operator-tls
      - name: flekszible
        configMap:
          name: flekszible-operator
