From 1d94c3c8b7591c191f4266dfb13e6f38d64dcd4b Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sun, 17 Jul 2022 14:53:28 -0500 Subject: [PATCH] Add mayastor --- .../mayastor/kustomization.yaml | 21 ++++++++++ .../initialization/mayastor/namespace.yaml | 5 +++ .../initialization/storage/admin-sa.yaml | 4 -- .../storage/cluster-role-bindings.yaml | 24 ----------- .../initialization/storage/cluster-role.yaml | 8 ---- .../initialization/storage/daemonset.yaml | 41 ------------------- .../initialization/storage/kustomization.yaml | 11 ----- .../storage/local-provisioner-config-map.yaml | 15 ------- .../initialization/storage/storage-class.yaml | 6 --- 9 files changed, 26 insertions(+), 109 deletions(-) create mode 100644 home/manifests/initialization/mayastor/kustomization.yaml create mode 100644 home/manifests/initialization/mayastor/namespace.yaml delete mode 100644 home/manifests/initialization/storage/admin-sa.yaml delete mode 100644 home/manifests/initialization/storage/cluster-role-bindings.yaml delete mode 100644 home/manifests/initialization/storage/cluster-role.yaml delete mode 100644 home/manifests/initialization/storage/daemonset.yaml delete mode 100644 home/manifests/initialization/storage/kustomization.yaml delete mode 100644 home/manifests/initialization/storage/local-provisioner-config-map.yaml delete mode 100644 home/manifests/initialization/storage/storage-class.yaml diff --git a/home/manifests/initialization/mayastor/kustomization.yaml b/home/manifests/initialization/mayastor/kustomization.yaml new file mode 100644 index 0000000..c7275a8 --- /dev/null +++ b/home/manifests/initialization/mayastor/kustomization.yaml @@ -0,0 +1,21 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: mayastor +resources: + - namespace.yaml + - https://raw.githubusercontent.com/openebs/mayastor-control-plane/master/deploy/operator-rbac.yaml + - https://raw.githubusercontent.com/openebs/mayastor-control-plane/master/deploy/mayastorpoolcrd.yaml + - https://raw.githubusercontent.com/openebs/mayastor/master/deploy/nats-deployment.yaml + - https://raw.githubusercontent.com/openebs/mayastor/master/deploy/etcd/storage/localpv.yaml + - https://raw.githubusercontent.com/openebs/mayastor/master/deploy/etcd/statefulset.yaml + - https://raw.githubusercontent.com/openebs/mayastor/master/deploy/etcd/svc.yaml + - https://raw.githubusercontent.com/openebs/mayastor/master/deploy/etcd/svc-headless.yaml + - https://raw.githubusercontent.com/openebs/mayastor/master/deploy/csi-daemonset.yaml + - https://raw.githubusercontent.com/openebs/mayastor-control-plane/master/deploy/core-agents-deployment.yaml + - https://raw.githubusercontent.com/openebs/mayastor-control-plane/master/deploy/rest-deployment.yaml + - https://raw.githubusercontent.com/openebs/mayastor-control-plane/master/deploy/rest-service.yaml + - https://raw.githubusercontent.com/openebs/mayastor-control-plane/master/deploy/csi-deployment.yaml + - https://raw.githubusercontent.com/openebs/mayastor-control-plane/master/deploy/msp-deployment.yaml + - https://raw.githubusercontent.com/openebs/mayastor/master/deploy/mayastor-daemonset.yaml + diff --git a/home/manifests/initialization/mayastor/namespace.yaml b/home/manifests/initialization/mayastor/namespace.yaml new file mode 100644 index 0000000..4e46c7c --- /dev/null +++ b/home/manifests/initialization/mayastor/namespace.yaml @@ -0,0 +1,5 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: mayastor diff --git a/home/manifests/initialization/storage/admin-sa.yaml b/home/manifests/initialization/storage/admin-sa.yaml deleted file mode 100644 index b3841b4..0000000 --- a/home/manifests/initialization/storage/admin-sa.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: local-storage-admin diff --git a/home/manifests/initialization/storage/cluster-role-bindings.yaml b/home/manifests/initialization/storage/cluster-role-bindings.yaml deleted file mode 100644 index 6e32a00..0000000 --- a/home/manifests/initialization/storage/cluster-role-bindings.yaml +++ /dev/null @@ -1,24 +0,0 @@ ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: local-storage-provisioner-pv-binding -subjects: -- kind: ServiceAccount - name: local-storage-admin -roleRef: - kind: ClusterRole - name: system:persistent-volume-provisioner - apiGroup: rbac.authorization.k8s.io ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: local-storage-provisioner-node-binding -subjects: -- kind: ServiceAccount - name: local-storage-admin -roleRef: - kind: ClusterRole - name: local-storage-provisioner-node-clusterrole - apiGroup: rbac.authorization.k8s.io diff --git a/home/manifests/initialization/storage/cluster-role.yaml b/home/manifests/initialization/storage/cluster-role.yaml deleted file mode 100644 index 666a5dd..0000000 --- a/home/manifests/initialization/storage/cluster-role.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: local-storage-provisioner-node-clusterrole -rules: -- apiGroups: [""] - resources: ["nodes"] - verbs: ["get"] diff --git a/home/manifests/initialization/storage/daemonset.yaml b/home/manifests/initialization/storage/daemonset.yaml deleted file mode 100644 index b450860..0000000 --- a/home/manifests/initialization/storage/daemonset.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: apps/v1 -kind: DaemonSet -metadata: - name: local-volume-provisioner - labels: - app: local-volume-provisioner -spec: - selector: - matchLabels: - app: local-volume-provisioner - template: - metadata: - labels: - app: local-volume-provisioner - spec: - serviceAccountName: local-storage-admin - containers: - - image: "registry.k8s.io/sig-storage/local-volume-provisioner:v2.4.0" - imagePullPolicy: "Always" - name: provisioner - securityContext: - privileged: true - env: - - name: MY_NODE_NAME - valueFrom: - fieldRef: - fieldPath: spec.nodeName - volumeMounts: - - mountPath: /etc/provisioner/config - name: provisioner-config - readOnly: true - - mountPath: /var/data/local-storage - name: local-storage - mountPropagation: "HostToContainer" - volumes: - - name: provisioner-config - configMap: - name: local-provisioner-config - - name: local-storage - hostPath: - path: /var/data/local-storage diff --git a/home/manifests/initialization/storage/kustomization.yaml b/home/manifests/initialization/storage/kustomization.yaml deleted file mode 100644 index 4d84dc1..0000000 --- a/home/manifests/initialization/storage/kustomization.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: kube-system -resources: - - ./storage-class.yaml - - ./admin-sa.yaml - - ./cluster-role.yaml - - ./cluster-role-bindings.yaml - - ./local-provisioner-config-map.yaml - - ./daemonset.yaml diff --git a/home/manifests/initialization/storage/local-provisioner-config-map.yaml b/home/manifests/initialization/storage/local-provisioner-config-map.yaml deleted file mode 100644 index 7fdd455..0000000 --- a/home/manifests/initialization/storage/local-provisioner-config-map.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: local-provisioner-config -data: - storageClassMap: | - local-storage: - hostDir: /var/data/local-storage - mountDir: /var/data/local-storage - blockCleanerCommand: - - "/scripts/shred.sh" - - "2" - volumeMode: Filesystem - fsType: ext4 - namePattern: "*" diff --git a/home/manifests/initialization/storage/storage-class.yaml b/home/manifests/initialization/storage/storage-class.yaml deleted file mode 100644 index e6ce6fb..0000000 --- a/home/manifests/initialization/storage/storage-class.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: storage.k8s.io/v1 -kind: StorageClass -metadata: - name: local-storage -provisioner: kubernetes.io/no-provisioner -volumeBindingMode: WaitForFirstConsumer