apiVersion: apps/v1
kind: Deployment
metadata:
  name: multi-tenancy-operator
spec:
  replicas: 1
  selector:
    matchLabels:
      name: multi-tenancy-operator
  template:
    metadata:
      labels:
        name: multi-tenancy-operator
    spec:
      serviceAccountName: multi-tenancy-operator
      containers:
        - name: multi-tenancy-operator
          # Replace this with the built image name
          image: ica10888/multi-tenancy-operator:v1.0.0
          command:
          - multi-tenancy-operator
          imagePullPolicy: IfNotPresent
          env:
            - name: CHART_HOME
              value: "/root/chart"
            - name: WATCH_NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
            - name: POD_NAME
              valueFrom:
                fieldRef:
                  fieldPath: metadata.name
            - name: OPERATOR_NAME
              value: "multi-tenancy-operator"
          resources:
            limits:
              cpu: 1000m
              memory: 600Mi
            requests:
              cpu: 50m
              memory: 500Mi
          volumeMounts:
          - name: chart
            mountPath: /root/chart
      volumes:
        - name: chart
          persistentVolumeClaim:
            claimName: multi-tenancy