Cleanup manifests

This commit is contained in:
Mehran Kholdi 2020-04-26 01:22:27 +04:30
parent 974ad321a9
commit 336f72a3c9
4 changed files with 17 additions and 17 deletions

View File

@ -1,13 +1,13 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: rawfile-csi-controller
name: csi-rawfile-driver
namespace: kube-system
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: rawfile-external-provisioner-runner
name: csi-rawfile-provisioner
rules:
- apiGroups: [""]
resources: ["secrets"]
@ -40,20 +40,20 @@ rules:
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: rawfile-csi-provisioner-role
name: csi-rawfile-provisioner
subjects:
- kind: ServiceAccount
name: rawfile-csi-controller
name: csi-rawfile-driver
namespace: kube-system
roleRef:
kind: ClusterRole
name: rawfile-external-provisioner-runner
name: csi-rawfile-provisioner
apiGroup: rbac.authorization.k8s.io
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: rawfile-handler
name: csi-rawfile-broker
rules:
- apiGroups: [""]
resources: ["persistentvolumes"]
@ -65,12 +65,12 @@ rules:
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: rawfile-handler
name: csi-rawfile-broker
subjects:
- kind: ServiceAccount
name: rawfile-csi-controller
name: csi-rawfile-driver
namespace: kube-system
roleRef:
kind: ClusterRole
name: rawfile-handler
name: csi-rawfile-broker
apiGroup: rbac.authorization.k8s.io

View File

@ -1,20 +1,20 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: rawfile-csi-controller
name: csi-rawfile-controller
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: rawfile-csi-controller
app: csi-rawfile-controller
template:
metadata:
labels:
app: rawfile-csi-controller
app: csi-rawfile-controller
spec:
serviceAccount: rawfile-csi-controller
serviceAccount: csi-rawfile-driver
priorityClassName: system-cluster-critical
tolerations:
- key: "node-role.kubernetes.io/master"

View File

@ -1,20 +1,20 @@
kind: DaemonSet
apiVersion: apps/v1
metadata:
name: rawfile-csi-node
name: csi-rawfile-node
spec:
updateStrategy:
rollingUpdate:
maxUnavailable: "100%"
selector:
matchLabels:
app: rawfile-csi-node
app: csi-rawfile-node
template:
metadata:
labels:
app: rawfile-csi-node
app: csi-rawfile-node
spec:
serviceAccount: rawfile-csi-controller
serviceAccount: csi-rawfile-driver
hostNetwork: true
hostIPC: true
priorityClassName: system-node-critical