apiVersion: apps/v1
kind: Deployment
metadata:
  name: cloud-provisioner
spec:
  replicas: 1
  selector:
    matchLabels:
      app: cloud-provisioner
  template:
    metadata:
      labels:
        app: cloud-provisioner
    spec:
      serviceAccountName: rbac-mck8s
      containers:
      - image: mck8s-provisioner
        name: cloud-provisioner
        imagePullPolicy: IfNotPresent
        volumeMounts:
        - mountPath: /root/.kube/config
          name: kube-config
        #resources:
        #  requests:
        #    cpu: 1000m
        #    memory: 1024Mi
      volumes:
      - name: kube-config
        hostPath:
          path: /root/.kube/config
          type: File

