diff --git a/resources/local-path-provisioner/base/cluster-role-binding.yaml b/resources/local-path-provisioner/base/cluster-role-binding.yaml deleted file mode 100644 index 6fd3d2c..0000000 --- a/resources/local-path-provisioner/base/cluster-role-binding.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: local-path-provisioner-bind -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: local-path-provisioner-role -subjects: - - kind: ServiceAccount - name: local-path-provisioner-service-account - namespace: local-path-storage \ No newline at end of file diff --git a/resources/local-path-provisioner/base/cluster-role.yaml b/resources/local-path-provisioner/base/cluster-role.yaml deleted file mode 100644 index c2e21a8..0000000 --- a/resources/local-path-provisioner/base/cluster-role.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: local-path-provisioner-role - namespace: local-path-storage -rules: - - apiGroups: [ "" ] - resources: [ "pods" ] - verbs: [ "get", "list", "watch", "create", "patch", "update", "delete" ] \ No newline at end of file diff --git a/resources/local-path-provisioner/base/deployment.yaml b/resources/local-path-provisioner/base/deployment.yaml deleted file mode 100644 index fa53455..0000000 --- a/resources/local-path-provisioner/base/deployment.yaml +++ /dev/null @@ -1,40 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: local-path-provisioner - namespace: local-path-storage -spec: - replicas: 1 - selector: - matchLabels: - app: local-path-provisioner - template: - metadata: - labels: - app: local-path-provisioner - spec: - serviceAccountName: local-path-provisioner-service-account - containers: - - name: local-path-provisioner - image: rancher/local-path-provisioner:v0.0.28 - imagePullPolicy: IfNotPresent - command: - - local-path-provisioner - - --debug - - start - - --config - - /etc/config/config.json - volumeMounts: - - name: config-volume - mountPath: /etc/config/ - env: - - name: POD_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: CONFIG_MOUNT_PATH - value: /etc/config/ - volumes: - - name: config-volume - configMap: - name: local-path-config \ No newline at end of file diff --git a/resources/local-path-provisioner/base/kustomization.yaml b/resources/local-path-provisioner/base/kustomization.yaml index ac927b5..978f1df 100644 --- a/resources/local-path-provisioner/base/kustomization.yaml +++ b/resources/local-path-provisioner/base/kustomization.yaml @@ -1,10 +1,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - - ./service-account.yaml - - ./role.yaml - - ./cluster-role.yaml - - ./role-binding.yaml - - ./cluster-role-binding.yaml - - ./deployment.yaml - ./storage-class.yaml \ No newline at end of file diff --git a/resources/local-path-provisioner/base/role-binding.yaml b/resources/local-path-provisioner/base/role-binding.yaml deleted file mode 100644 index b44a459..0000000 --- a/resources/local-path-provisioner/base/role-binding.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: local-path-provisioner-bind - namespace: local-path-storage -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: local-path-provisioner-role -subjects: - - kind: ServiceAccount - name: local-path-provisioner-service-account - namespace: local-path-storage \ No newline at end of file diff --git a/resources/local-path-provisioner/base/role.yaml b/resources/local-path-provisioner/base/role.yaml deleted file mode 100644 index 12faeda..0000000 --- a/resources/local-path-provisioner/base/role.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: local-path-provisioner-role -rules: - - apiGroups: [ "" ] - resources: [ "nodes", "persistentvolumeclaims", "configmaps", "pods", "pods/log" ] - verbs: [ "get", "list", "watch" ] - - apiGroups: [ "" ] - resources: [ "persistentvolumes" ] - verbs: [ "get", "list", "watch", "create", "patch", "update", "delete" ] - - apiGroups: [ "" ] - resources: [ "events" ] - verbs: [ "create", "patch" ] - - apiGroups: [ "storage.k8s.io" ] - resources: [ "storageclasses" ] - verbs: [ "get", "list", "watch" ] \ No newline at end of file diff --git a/resources/local-path-provisioner/base/service-account.yaml b/resources/local-path-provisioner/base/service-account.yaml deleted file mode 100644 index 6e9eb8e..0000000 --- a/resources/local-path-provisioner/base/service-account.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: local-path-provisioner-service-account - namespace: local-path-storage \ No newline at end of file