apiVersion: apps/v1
kind: Deployment
metadata:
  name: oci-block-volume-provisioner
  namespace: kube-system
spec:
  replicas: 1
  selector:
    matchLabels:
      component: oci-block-volume-provisioner
      tier: control-plane
  template:
    metadata:
      labels:
        component: oci-block-volume-provisioner
        tier: control-plane
    spec:
      serviceAccountName: oci-volume-provisioner
      volumes:
        - name: config
          secret:
            secretName: oci-volume-provisioner
      containers:
        - name: oci-volume-provisioner
          image: ghcr.io/manassehzhou/oci-cloud-controller-manager:latest:latest
          command: ["/usr/local/bin/oci-volume-provisioner"]
          env:
            - name: NODE_NAME
              valueFrom:
                fieldRef:
                  fieldPath: spec.nodeName
            - name: PROVISIONER_TYPE
              value: oracle.com/oci
          volumeMounts:
            - name: config
              mountPath: /etc/oci/
              readOnly: true
