|
| 1 | +--- |
| 2 | +# Source: localpv-provisioner/templates/rbac.yaml |
| 3 | +apiVersion: v1 |
| 4 | +kind: ServiceAccount |
| 5 | +metadata: |
| 6 | + name: openebs-localpv-provisioner |
| 7 | + labels: |
| 8 | + chart: localpv-provisioner-4.0.0 |
| 9 | + heritage: Helm |
| 10 | + openebs.io/version: "4.0.0" |
| 11 | + app: localpv-provisioner |
| 12 | + release: openebs |
| 13 | + component: "localpv-provisioner" |
| 14 | + openebs.io/component-name: openebs-localpv-provisioner |
| 15 | +--- |
| 16 | +# Source: localpv-provisioner/templates/rbac.yaml |
| 17 | +apiVersion: rbac.authorization.k8s.io/v1 |
| 18 | +kind: ClusterRole |
| 19 | +metadata: |
| 20 | + name: openebs-localpv-provisioner |
| 21 | + labels: |
| 22 | + chart: localpv-provisioner-4.0.0 |
| 23 | + heritage: Helm |
| 24 | + openebs.io/version: "4.0.0" |
| 25 | + app: localpv-provisioner |
| 26 | + release: openebs |
| 27 | + component: "localpv-provisioner" |
| 28 | + openebs.io/component-name: openebs-localpv-provisioner |
| 29 | +rules: |
| 30 | +- apiGroups: ["*"] |
| 31 | + resources: ["nodes"] |
| 32 | + verbs: ["get", "list", "watch"] |
| 33 | +- apiGroups: ["*"] |
| 34 | + resources: ["namespaces", "pods", "events", "endpoints"] |
| 35 | + verbs: ["*"] |
| 36 | +- apiGroups: ["*"] |
| 37 | + resources: ["resourcequotas", "limitranges"] |
| 38 | + verbs: ["list", "watch"] |
| 39 | +- apiGroups: ["*"] |
| 40 | + resources: ["storageclasses", "persistentvolumeclaims", "persistentvolumes"] |
| 41 | + verbs: ["*"] |
| 42 | +- apiGroups: ["apiextensions.k8s.io"] |
| 43 | + resources: ["customresourcedefinitions"] |
| 44 | + verbs: [ "get", "list", "create", "update", "delete", "patch"] |
| 45 | +- apiGroups: ["openebs.io"] |
| 46 | + resources: [ "*"] |
| 47 | + verbs: ["*" ] |
| 48 | +- apiGroups: ["coordination.k8s.io"] |
| 49 | + resources: ["leases"] |
| 50 | + verbs: ["get", "create", "update"] |
| 51 | +- nonResourceURLs: ["/metrics"] |
| 52 | + verbs: ["get"] |
| 53 | +--- |
| 54 | +# Source: localpv-provisioner/templates/rbac.yaml |
| 55 | +apiVersion: rbac.authorization.k8s.io/v1 |
| 56 | +kind: ClusterRoleBinding |
| 57 | +metadata: |
| 58 | + name: openebs-localpv-provisioner |
| 59 | + labels: |
| 60 | + chart: localpv-provisioner-4.0.0 |
| 61 | + heritage: Helm |
| 62 | + openebs.io/version: "4.0.0" |
| 63 | + app: localpv-provisioner |
| 64 | + release: openebs |
| 65 | + component: "localpv-provisioner" |
| 66 | + openebs.io/component-name: openebs-localpv-provisioner |
| 67 | +roleRef: |
| 68 | + apiGroup: rbac.authorization.k8s.io |
| 69 | + kind: ClusterRole |
| 70 | + name: openebs-localpv-provisioner |
| 71 | +subjects: |
| 72 | +- kind: ServiceAccount |
| 73 | + name: openebs-localpv-provisioner |
| 74 | + namespace: __OPENEBS_NAMESPACE__ |
| 75 | +--- |
| 76 | +# Source: localpv-provisioner/templates/deployment.yaml |
| 77 | +apiVersion: apps/v1 |
| 78 | +kind: Deployment |
| 79 | +metadata: |
| 80 | + name: openebs-localpv-provisioner |
| 81 | + labels: |
| 82 | + chart: localpv-provisioner-4.0.0 |
| 83 | + heritage: Helm |
| 84 | + openebs.io/version: "4.0.0" |
| 85 | + app: localpv-provisioner |
| 86 | + release: openebs |
| 87 | + component: "localpv-provisioner" |
| 88 | + openebs.io/component-name: openebs-localpv-provisioner |
| 89 | +spec: |
| 90 | + replicas: 1 |
| 91 | + strategy: |
| 92 | + type: "Recreate" |
| 93 | + rollingUpdate: null |
| 94 | + selector: |
| 95 | + matchLabels: |
| 96 | + app: localpv-provisioner |
| 97 | + release: openebs |
| 98 | + component: "localpv-provisioner" |
| 99 | + template: |
| 100 | + metadata: |
| 101 | + labels: |
| 102 | + chart: localpv-provisioner-4.0.0 |
| 103 | + heritage: Helm |
| 104 | + openebs.io/version: "4.0.0" |
| 105 | + app: localpv-provisioner |
| 106 | + release: openebs |
| 107 | + component: "localpv-provisioner" |
| 108 | + openebs.io/component-name: openebs-localpv-provisioner |
| 109 | + |
| 110 | + name: openebs-localpv-provisioner |
| 111 | + spec: |
| 112 | + serviceAccountName: openebs-localpv-provisioner |
| 113 | + securityContext: |
| 114 | + {} |
| 115 | + containers: |
| 116 | + - name: openebs-localpv-provisioner |
| 117 | + image: "openebs/provisioner-localpv:4.0.0" |
| 118 | + imagePullPolicy: IfNotPresent |
| 119 | + resources: |
| 120 | + limits: |
| 121 | + cpu: 100m |
| 122 | + memory: 128Mi |
| 123 | + requests: |
| 124 | + cpu: 100m |
| 125 | + memory: 128Mi |
| 126 | + env: |
| 127 | + # OPENEBS_IO_K8S_MASTER enables openebs provisioner to connect to K8s |
| 128 | + # based on this address. This is ignored if empty. |
| 129 | + # This is supported for openebs provisioner version 0.5.2 onwards |
| 130 | + #- name: OPENEBS_IO_K8S_MASTER |
| 131 | + # value: "http://10.128.0.12:8080" |
| 132 | + # OPENEBS_IO_KUBE_CONFIG enables openebs provisioner to connect to K8s |
| 133 | + # based on this config. This is ignored if empty. |
| 134 | + # This is supported for openebs provisioner version 0.5.2 onwards |
| 135 | + #- name: OPENEBS_IO_KUBE_CONFIG |
| 136 | + # value: "/home/ubuntu/.kube/config" |
| 137 | + - name: OPENEBS_NAMESPACE |
| 138 | + valueFrom: |
| 139 | + fieldRef: |
| 140 | + fieldPath: metadata.namespace |
| 141 | + - name: NODE_NAME |
| 142 | + valueFrom: |
| 143 | + fieldRef: |
| 144 | + fieldPath: spec.nodeName |
| 145 | + # OPENEBS_SERVICE_ACCOUNT provides the service account of this pod as |
| 146 | + # environment variable |
| 147 | + - name: OPENEBS_SERVICE_ACCOUNT |
| 148 | + valueFrom: |
| 149 | + fieldRef: |
| 150 | + fieldPath: spec.serviceAccountName |
| 151 | + # OPENEBS_IO_BASE_PATH is the environment variable that provides the |
| 152 | + # default base path on the node where host-path PVs will be provisioned. |
| 153 | + - name: OPENEBS_IO_ENABLE_ANALYTICS |
| 154 | + value: "false" |
| 155 | + - name: OPENEBS_IO_BASE_PATH |
| 156 | + value: "/var/openebs/local" |
| 157 | + - name: OPENEBS_IO_HELPER_IMAGE |
| 158 | + value: "openebs/linux-utils:4.0.0" |
| 159 | + - name: OPENEBS_IO_INSTALLER_TYPE |
| 160 | + value: "localpv-charts-helm" |
| 161 | + # LEADER_ELECTION_ENABLED is used to enable/disable leader election. By default |
| 162 | + # leader election is enabled. |
| 163 | + - name: LEADER_ELECTION_ENABLED |
| 164 | + value: "true" |
| 165 | + # Process name used for matching is limited to the 15 characters |
| 166 | + # present in the pgrep output. |
| 167 | + # So fullname can't be used here with pgrep (>15 chars).A regular expression |
| 168 | + # that matches the entire command name has to specified. |
| 169 | + # Anchor `^` : matches any string that starts with `provisioner-loc` |
| 170 | + # `.*`: matches any string that has `provisioner-loc` followed by zero or more char |
| 171 | + livenessProbe: |
| 172 | + exec: |
| 173 | + command: |
| 174 | + - sh |
| 175 | + - -c |
| 176 | + - test `pgrep -c "^provisioner-loc.*"` = 1 |
| 177 | + initialDelaySeconds: 30 |
| 178 | + periodSeconds: 60 |
0 commit comments