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

View File

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

View File

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