diff --git a/README.md b/README.md index 8295ff11f..f2f0e0467 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ On develop, there are breaking changes to the etcd key space which is used by th io-engine to retain information about replicas which contain the correct volume data. An upgrade strategy is yet to be devised, but you may try these steps at your own risk: 1. Stop the [mayastor-control-plane](https://github.com/openebs/mayastor-control-plane) components -1. When the pool operator is no longer running, remove the finalyzers and delete all `MayastorPool` CR's +1. When the pool operator is no longer running, remove the finalizers and delete all `MayastorPool` CR's 1. Enable compatibility mode with the mayastor data replica information ```bash $> ETCDCTL_API=3 etcdctl put "/openebs.io/mayastor/apis/v0/clusters/$KUBE_SYSTEM_UID/namespaces/$NAMESPACE/CoreRegistryConfig/db98f8bb-4afc-45d0-85b9-24c99cc443f2" diff --git a/chart/.helmignore b/chart/.helmignore deleted file mode 100644 index 0e8a0eb36..000000000 --- a/chart/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/chart/Chart.lock b/chart/Chart.lock deleted file mode 100644 index 89b35c308..000000000 --- a/chart/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: etcd - repository: https://charts.bitnami.com/bitnami - version: 6.2.3 -digest: sha256:55e97f18b7a20c3e6b642eaaf47bff88d498b86cae7f7a27c4325115d98b1c92 -generated: "2021-05-13T18:47:32.999686768+01:00" diff --git a/chart/Chart.yaml b/chart/Chart.yaml deleted file mode 100644 index d5300baf8..000000000 --- a/chart/Chart.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v2 -name: mayastor -description: Mayastor Helm chart for Kubernetes -type: application -version: 0.0.1 -# appVersion: "latest" -dependencies: - - name: etcd - repository: https://charts.bitnami.com/bitnami - tags: - - bitnami-etcd - version: 6.2.3 diff --git a/chart/README.md b/chart/README.md deleted file mode 100644 index f2c0758ef..000000000 --- a/chart/README.md +++ /dev/null @@ -1,33 +0,0 @@ -# Helm chart for Mayastor - -Helm chart isn't published yet and is used mostly internally to generate yamls in `deploy/` directory and for end2end test. But chart should be deployable from this repo with helm anyway. Command below expects that: - - * you have k8s cluster up and running with [mayastor requirements](https://mayastor.gitbook.io/introduction/quickstart/preparing-the-cluster) fulfilled (take a look at [mayastor-terraform-playground](https://github.com/mayadata-io/mayastor-terraform-playground/) (WARNING - super-pre-alpha) - * kubectl is able to access your cluster without any arguments (i.e. you have cluster configured in config as default or your environment variable KUBECONFIG points to working kubeconfig) - -``` -cd /path/to/openebs/Mayastor -helm install mayastor ./chart --namespace=mayastor --create-namespace -``` - -To uninstall: - -``` -helm uninstall mayastor -n mayastor -kubectl delete namespace mayastor -``` - -Please note that the provided etcd deployment with its default values uses an EmptyDir Volume as its backing store and is not production ready. - -# TODO - -[ ] publish :-) - -## templating - -[x] templatize namespace properly - mayastor namespace is hardcoded in yaml templates - - use Release.Namespace - - use Release.Name -[ ] allow pulling image from authenticated repository -[ ] allow changing image versions separately - diff --git a/chart/develop/values.yaml b/chart/develop/values.yaml deleted file mode 100644 index 84eab3dab..000000000 --- a/chart/develop/values.yaml +++ /dev/null @@ -1,7 +0,0 @@ -etcd: - auth: - rbac: - enabled: false - replicaCount: 1 - -mayastorLogLevel: debug diff --git a/chart/release/values.yaml b/chart/release/values.yaml deleted file mode 100644 index 5d3135781..000000000 --- a/chart/release/values.yaml +++ /dev/null @@ -1,7 +0,0 @@ -etcd: - auth: - rbac: - enabled: false - replicaCount: 3 - -mayastorLogLevel: info diff --git a/chart/templates/_helpers.tpl b/chart/templates/_helpers.tpl deleted file mode 100644 index 767a57d11..000000000 --- a/chart/templates/_helpers.tpl +++ /dev/null @@ -1,18 +0,0 @@ -{{/* Enforce trailing slash to mayastorImagesPrefix or leave empty */}} -{{- define "mayastorImagesPrefix" -}} -{{- if .Values.mayastorImagesRegistry }} -{{- printf "%s/" (.Values.mayastorImagesRegistry | trimSuffix "/") }} -{{- else }} -{{- "" }} -{{- end }} -{{- end }} - -{{/* Generate CPU list specification based on CPU count (-l param of mayastor) */}} -{{- define "mayastorCpuSpec" -}} -{{- range $i, $e := until (int .Values.mayastorCpuCount) }} -{{- if gt $i 0 }} -{{- printf "," }} -{{- end }} -{{- printf "%d" (add $i 1) }} -{{- end }} -{{- end }} diff --git a/chart/templates/etcd/storage/localpv.yaml b/chart/templates/etcd/storage/localpv.yaml deleted file mode 100644 index af9dd65ef..000000000 --- a/chart/templates/etcd/storage/localpv.yaml +++ /dev/null @@ -1,23 +0,0 @@ ---- -{{ if and .Values.etcd.persistence.enabled (eq .Values.etcd.persistence.storageClass "manual") }} -{{- range $index, $end := until (.Values.etcd.replicaCount | int) }} -apiVersion: v1 -kind: PersistentVolume -metadata: - namespace: {{ $.Release.Namespace }} - name: etcd-volume-{{ $index }} - labels: - statefulset.kubernetes.io/pod-name: mayastor-etcd-{{ $index }} -spec: - storageClassName: manual - # You must also delete the hostpath on the node - persistentVolumeReclaimPolicy: Retain - capacity: - storage: {{ $.Values.etcd.persistence.size | quote }} - accessModes: - - ReadWriteOnce - hostPath: - path: "/var/local/mayastor/etcd/pod-{{ $index }}" ---- -{{- end }} -{{- end }} diff --git a/chart/templates/mayastor-daemonset.yaml b/chart/templates/mayastor-daemonset.yaml deleted file mode 100644 index c9b205a50..000000000 --- a/chart/templates/mayastor-daemonset.yaml +++ /dev/null @@ -1,107 +0,0 @@ -apiVersion: apps/v1 -kind: DaemonSet -metadata: - namespace: {{ .Release.Namespace }} - name: mayastor - labels: - openebs/engine: mayastor -spec: - selector: - matchLabels: - app: mayastor - updateStrategy: - type: RollingUpdate - rollingUpdate: - maxUnavailable: 1 - minReadySeconds: 10 - template: - metadata: - labels: - app: mayastor - spec: - hostNetwork: true - # To resolve services in the namespace - dnsPolicy: ClusterFirstWithHostNet - nodeSelector: - openebs.io/engine: mayastor - initContainers: - - name: registration-probe - image: busybox:latest - command: ['sh', '-c', 'until nc -vz core 50051; do echo "Waiting for registration service..."; sleep 1; done;'] - containers: - - name: mayastor - image: {{ include "mayastorImagesPrefix" . }}mayadata/mayastor:{{ .Values.mayastorImagesTag }} - imagePullPolicy: {{ .Values.mayastorImagePullPolicy }} - env: - - name: RUST_LOG - value: info,mayastor={{ .Values.mayastorLogLevel }} - - name: NVMF_TCP_MAX_QUEUE_DEPTH - value: "32" - - name: MY_NODE_NAME - valueFrom: - fieldRef: - fieldPath: spec.nodeName - - name: MY_POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - args: - # The -l argument accepts cpu-list. Indexing starts at zero. - # For example -l 1,2,10-20 means use core 1, 2, 10 to 20. - # Note: Ensure that the CPU resources are updated accordingly. - # If you use 2 CPUs, the CPU: field should also read 2. - - "-N$(MY_NODE_NAME)" - - "-g$(MY_POD_IP)" - - "-Rhttps://core:50051" - - "-y/var/local/mayastor/config.yaml" - - "-l{{ include "mayastorCpuSpec" . }}" - - "-pmayastor-etcd" - command: - - mayastor - securityContext: - privileged: true - volumeMounts: - - name: device - mountPath: /dev - - name: udev - mountPath: /run/udev - - name: dshm - mountPath: /dev/shm - - name: configlocation - mountPath: /var/local/mayastor/ - resources: - # NOTE: Each container must have mem/cpu limits defined in order to - # belong to Guaranteed QoS class, hence can never get evicted in case of - # pressure unless they exceed those limits. limits and requests must be the same. - limits: - cpu: "{{ .Values.mayastorCpuCount }}" - memory: "1Gi" - hugepages-2Mi: "{{ max .Values.mayastorHugePagesGiB 2 }}Gi" - requests: - cpu: "{{ .Values.mayastorCpuCount }}" - memory: "1Gi" - hugepages-2Mi: "{{ max .Values.mayastorHugePagesGiB 2 }}Gi" - ports: - - containerPort: 10124 - protocol: TCP - name: mayastor - volumes: - - name: device - hostPath: - path: /dev - type: Directory - - name: udev - hostPath: - path: /run/udev - type: Directory - - name: dshm - emptyDir: - medium: Memory - sizeLimit: "1Gi" - - name: hugepage - emptyDir: - medium: HugePages - - name: configlocation - hostPath: - path: /var/local/mayastor/ - type: DirectoryOrCreate diff --git a/chart/templates/pool.yaml b/chart/templates/pool.yaml deleted file mode 100644 index 91ebae3e9..000000000 --- a/chart/templates/pool.yaml +++ /dev/null @@ -1,15 +0,0 @@ -{{- range .Values.mayastorPools }} ---- -apiVersion: "openebs.io/v1alpha1" -kind: MayastorPool -metadata: - # Name can be anything as long as it is unique - name: pool-on-{{ .node }} - # or let k8s to generate a unique pool name - #generateName: pool- - namespace: {{ $.Release.Namespace }} -spec: - node: {{ .node }} - # ATM only one disk device is supported (i.e. /dev/nvme1n1) - disks: ["{{ .device }}"] -{{- end }} \ No newline at end of file diff --git a/chart/test/values.yaml b/chart/test/values.yaml deleted file mode 100644 index f4c5507dc..000000000 --- a/chart/test/values.yaml +++ /dev/null @@ -1,9 +0,0 @@ -etcd: - auth: - rbac: - enabled: false - replicaCount: 3 - persistence: - enabled: false - -mayastorLogLevel: debug diff --git a/chart/values.yaml b/chart/values.yaml deleted file mode 100644 index 5ef3075d3..000000000 --- a/chart/values.yaml +++ /dev/null @@ -1,71 +0,0 @@ -mayastorImagesTag: latest -mayastorImagePullPolicy: Always -mayastorCpuCount: "1" -mayastorHugePagesGiB: "1" -mayastorImagesRegistry: "" -#mayastorPools: -# - node: "NODE_NAME" -# device: "DEVICE" -# This option is intended for development yamls and motivated by the problem of -# moac that does not update status of msp resource in some cases. Feel free to -# remove when no longer needed. -moacDebug: false -moac: false - -csi: - nvme: - # nvme_core module io timeout in seconds - io_timeout: "30" - io_timeout_enabled: true - -etcd: - ## Number of replicas - ## - replicaCount: 1 - ## Kubernetes Cluster Domain - ## - clusterDomain: cluster.local - ## TLS authentication for client-to-server communications - ## ref: https://etcd.io/docs/current/op-guide/security/ - ## - client: - secureTransport: false - ## TLS authentication for server-to-server communications - ## ref: https://etcd.io/docs/current/op-guide/security/ - ## - peer: - secureTransport: false - ## Enable persistence using Persistent Volume Claims - ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ - ## - persistence: - ## If true, use a Persistent Volume Claim. If false, use emptyDir. - ## - enabled: true - ## Persistent Volume Storage Class - ## If defined, storageClassName: - ## If set to "-", storageClassName: "", which disables dynamic provisioning - ## If undefined (the default) or set to null, no storageClassName spec is - ## set, choosing the default provisioner. (gp2 on AWS, standard on - ## GKE, AWS & OpenStack) - ## - storageClass: "manual" - ## Persistent Volume size - ## - size: 2Gi - - ## Init containers parameters: - ## volumePermissions: Change the owner and group of the persistent volume mountpoint to runAsUser:fsGroup values from the securityContext section. - ## - volumePermissions: - enabled: true - - ## Set to true if you would like to see extra information on logs - ## - debug: false - - ## Pod anti-affinity preset - ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## Allowed values: soft, hard - ## - podAntiAffinityPreset: "hard" diff --git a/deploy/README.md b/deploy/README.md deleted file mode 100644 index 31819f4ef..000000000 --- a/deploy/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# Quickstart Guide - -### Has been relocated - -As of release 0.4.0-alpha the Mayastor user's quickstart guide has moved. - -It is now hosted at [GitBook](https://mayastor.gitbook.io/introduction/). - -# Deployment Files - -The files in this directory are provided as a convenience, a template for the -successful test deployment of Mayastor to a cluster. - -Most of them are generated from helm templates in `chart/` directory. diff --git a/deploy/etcd/statefulset.yaml b/deploy/etcd/statefulset.yaml deleted file mode 100644 index 73f9e3f37..000000000 --- a/deploy/etcd/statefulset.yaml +++ /dev/null @@ -1,151 +0,0 @@ ---- -# Source: mayastor/charts/etcd/templates/statefulset.yaml -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: mayastor-etcd - namespace: mayastor - labels: - app.kubernetes.io/name: etcd - helm.sh/chart: etcd-6.2.3 - app.kubernetes.io/instance: mayastor - app.kubernetes.io/managed-by: Helm -spec: - replicas: 1 - selector: - matchLabels: - app.kubernetes.io/name: etcd - app.kubernetes.io/instance: mayastor - serviceName: mayastor-etcd-headless - podManagementPolicy: Parallel - updateStrategy: - type: RollingUpdate - template: - metadata: - labels: - app.kubernetes.io/name: etcd - helm.sh/chart: etcd-6.2.3 - app.kubernetes.io/instance: mayastor - app.kubernetes.io/managed-by: Helm - annotations: - spec: - - affinity: - podAffinity: - - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchLabels: - app.kubernetes.io/name: etcd - app.kubernetes.io/instance: mayastor - namespaces: - - "mayastor" - topologyKey: kubernetes.io/hostname - nodeAffinity: - - securityContext: - fsGroup: 1001 - serviceAccountName: "default" - initContainers: - - name: volume-permissions - image: docker.io/bitnami/bitnami-shell:10 - imagePullPolicy: "Always" - command: - - /bin/bash - - -ec - - | - chown -R 1001:1001 /bitnami/etcd - securityContext: - runAsUser: 0 - resources: - limits: {} - requests: {} - volumeMounts: - - name: data - mountPath: /bitnami/etcd - containers: - - name: etcd - image: docker.io/bitnami/etcd:3.4.15-debian-10-r43 - imagePullPolicy: "IfNotPresent" - securityContext: - runAsNonRoot: true - runAsUser: 1001 - env: - - name: BITNAMI_DEBUG - value: "false" - - name: MY_POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - - name: MY_POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: ETCDCTL_API - value: "3" - - name: ETCD_ON_K8S - value: "yes" - - name: ETCD_START_FROM_SNAPSHOT - value: "no" - - name: ETCD_DISASTER_RECOVERY - value: "no" - - name: ETCD_NAME - value: "$(MY_POD_NAME)" - - name: ETCD_DATA_DIR - value: "/bitnami/etcd/data" - - name: ETCD_LOG_LEVEL - value: "info" - - name: ALLOW_NONE_AUTHENTICATION - value: "yes" - - name: ETCD_ADVERTISE_CLIENT_URLS - value: "http://$(MY_POD_NAME).mayastor-etcd-headless.mayastor.svc.cluster.local:2379" - - name: ETCD_LISTEN_CLIENT_URLS - value: "http://0.0.0.0:2379" - - name: ETCD_INITIAL_ADVERTISE_PEER_URLS - value: "http://$(MY_POD_NAME).mayastor-etcd-headless.mayastor.svc.cluster.local:2380" - - name: ETCD_LISTEN_PEER_URLS - value: "http://0.0.0.0:2380" - envFrom: - ports: - - name: client - containerPort: 2379 - protocol: TCP - - name: peer - containerPort: 2380 - protocol: TCP - livenessProbe: - exec: - command: - - /opt/bitnami/scripts/etcd/healthcheck.sh - initialDelaySeconds: 60 - periodSeconds: 30 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 5 - readinessProbe: - exec: - command: - - /opt/bitnami/scripts/etcd/healthcheck.sh - initialDelaySeconds: 60 - periodSeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 5 - resources: - limits: {} - requests: {} - volumeMounts: - - name: data - mountPath: /bitnami/etcd - volumes: - volumeClaimTemplates: - - metadata: - name: data - spec: - accessModes: - - "ReadWriteOnce" - resources: - requests: - storage: "2Gi" - storageClassName: manual diff --git a/deploy/etcd/storage/localpv.yaml b/deploy/etcd/storage/localpv.yaml deleted file mode 100644 index 36c0495fa..000000000 --- a/deploy/etcd/storage/localpv.yaml +++ /dev/null @@ -1,19 +0,0 @@ ---- -# Source: mayastor/templates/etcd/storage/localpv.yaml -apiVersion: v1 -kind: PersistentVolume -metadata: - namespace: mayastor - name: etcd-volume-0 - labels: - statefulset.kubernetes.io/pod-name: mayastor-etcd-0 -spec: - storageClassName: manual - # You must also delete the hostpath on the node - persistentVolumeReclaimPolicy: Retain - capacity: - storage: "2Gi" - accessModes: - - ReadWriteOnce - hostPath: - path: "/var/local/mayastor/etcd/pod-0" diff --git a/deploy/etcd/svc-headless.yaml b/deploy/etcd/svc-headless.yaml deleted file mode 100644 index 9af63189a..000000000 --- a/deploy/etcd/svc-headless.yaml +++ /dev/null @@ -1,28 +0,0 @@ ---- -# Source: mayastor/charts/etcd/templates/svc-headless.yaml -apiVersion: v1 -kind: Service -metadata: - name: mayastor-etcd-headless - namespace: mayastor - labels: - app.kubernetes.io/name: etcd - helm.sh/chart: etcd-6.2.3 - app.kubernetes.io/instance: mayastor - app.kubernetes.io/managed-by: Helm - annotations: - service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" -spec: - type: ClusterIP - clusterIP: None - publishNotReadyAddresses: true - ports: - - name: "client" - port: 2379 - targetPort: client - - name: "peer" - port: 2380 - targetPort: peer - selector: - app.kubernetes.io/name: etcd - app.kubernetes.io/instance: mayastor diff --git a/deploy/etcd/svc.yaml b/deploy/etcd/svc.yaml deleted file mode 100644 index a62eb9e37..000000000 --- a/deploy/etcd/svc.yaml +++ /dev/null @@ -1,27 +0,0 @@ ---- -# Source: mayastor/charts/etcd/templates/svc.yaml -apiVersion: v1 -kind: Service -metadata: - name: mayastor-etcd - namespace: mayastor - labels: - app.kubernetes.io/name: etcd - helm.sh/chart: etcd-6.2.3 - app.kubernetes.io/instance: mayastor - app.kubernetes.io/managed-by: Helm - annotations: -spec: - type: ClusterIP - ports: - - name: "client" - port: 2379 - targetPort: client - nodePort: null - - name: "peer" - port: 2380 - targetPort: peer - nodePort: null - selector: - app.kubernetes.io/name: etcd - app.kubernetes.io/instance: mayastor diff --git a/deploy/fio.yaml b/deploy/fio.yaml deleted file mode 100644 index d2c71352d..000000000 --- a/deploy/fio.yaml +++ /dev/null @@ -1,24 +0,0 @@ -kind: Pod -apiVersion: v1 -metadata: - name: fio -spec: - # Run on a storage node so that the nexus is local to the app - nodeSelector: - openebs.io/engine: mayastor - volumes: - - name: ms-volume - persistentVolumeClaim: - claimName: ms-volume-claim - containers: - - name: fio - image: mayadata/fio - args: - - sleep - - "1000000" - volumeMounts: - - mountPath: "/volume" - name: ms-volume - #volumeDevices: - # - devicePath: /dev/xvda - # name: ms-volume diff --git a/deploy/fiotest.sh b/deploy/fiotest.sh deleted file mode 100755 index 5b1f4d2fe..000000000 --- a/deploy/fiotest.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -kubectl exec -it fio -- fio --name=benchtest --size=50m --filename=/volume/test --direct=1 --rw=randrw --ioengine=libaio --bs=4k --iodepth=16 --numjobs=1 --time_based --runtime=60 diff --git a/deploy/mayastor-daemonset.yaml b/deploy/mayastor-daemonset.yaml deleted file mode 100644 index caa7c737f..000000000 --- a/deploy/mayastor-daemonset.yaml +++ /dev/null @@ -1,109 +0,0 @@ ---- -# Source: mayastor/templates/mayastor-daemonset.yaml -apiVersion: apps/v1 -kind: DaemonSet -metadata: - namespace: mayastor - name: mayastor - labels: - openebs/engine: mayastor -spec: - selector: - matchLabels: - app: mayastor - updateStrategy: - type: RollingUpdate - rollingUpdate: - maxUnavailable: 1 - minReadySeconds: 10 - template: - metadata: - labels: - app: mayastor - spec: - hostNetwork: true - # To resolve services in the namespace - dnsPolicy: ClusterFirstWithHostNet - nodeSelector: - openebs.io/engine: mayastor - initContainers: - - name: registration-probe - image: busybox:latest - command: ['sh', '-c', 'until nc -vz core 50051; do echo "Waiting for registration service..."; sleep 1; done;'] - containers: - - name: mayastor - image: mayadata/mayastor:develop - imagePullPolicy: Always - env: - - name: RUST_LOG - value: info,mayastor=debug - - name: NVMF_TCP_MAX_QUEUE_DEPTH - value: "32" - - name: MY_NODE_NAME - valueFrom: - fieldRef: - fieldPath: spec.nodeName - - name: MY_POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - args: - # The -l argument accepts cpu-list. Indexing starts at zero. - # For example -l 1,2,10-20 means use core 1, 2, 10 to 20. - # Note: Ensure that the CPU resources are updated accordingly. - # If you use 2 CPUs, the CPU: field should also read 2. - - "-N$(MY_NODE_NAME)" - - "-g$(MY_POD_IP)" - - "-Rhttps://core:50051" - - "-y/var/local/mayastor/config.yaml" - - "-l1" - - "-pmayastor-etcd" - command: - - mayastor - securityContext: - privileged: true - volumeMounts: - - name: device - mountPath: /dev - - name: udev - mountPath: /run/udev - - name: dshm - mountPath: /dev/shm - - name: configlocation - mountPath: /var/local/mayastor/ - resources: - # NOTE: Each container must have mem/cpu limits defined in order to - # belong to Guaranteed QoS class, hence can never get evicted in case of - # pressure unless they exceed those limits. limits and requests must be the same. - limits: - cpu: "1" - memory: "1Gi" - hugepages-2Mi: "2Gi" - requests: - cpu: "1" - memory: "1Gi" - hugepages-2Mi: "2Gi" - ports: - - containerPort: 10124 - protocol: TCP - name: mayastor - volumes: - - name: device - hostPath: - path: /dev - type: Directory - - name: udev - hostPath: - path: /run/udev - type: Directory - - name: dshm - emptyDir: - medium: Memory - sizeLimit: "1Gi" - - name: hugepage - emptyDir: - medium: HugePages - - name: configlocation - hostPath: - path: /var/local/mayastor/ - type: DirectoryOrCreate diff --git a/deploy/pvc.yaml b/deploy/pvc.yaml deleted file mode 100644 index 92eb66b6a..000000000 --- a/deploy/pvc.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: ms-volume-claim -spec: - accessModes: - - ReadWriteOnce - # Change to "Block" for raw block device - volumeMode: Filesystem - resources: - requests: - storage: 64Mi - storageClassName: mayastor-nvmf diff --git a/deploy/storage-class.yaml b/deploy/storage-class.yaml deleted file mode 100644 index aa697bb39..000000000 --- a/deploy/storage-class.yaml +++ /dev/null @@ -1,27 +0,0 @@ ---- -kind: StorageClass -apiVersion: storage.k8s.io/v1 -metadata: - name: mayastor-nvmf -parameters: - repl: '1' - protocol: 'nvmf' - ioTimeout: '30' - local: 'yes' - # It is recommended to use xfs for Mayastor - # fsType: 'xfs' -provisioner: io.openebs.csi-mayastor -volumeBindingMode: WaitForFirstConsumer ---- -kind: StorageClass -apiVersion: storage.k8s.io/v1 -metadata: - name: mayastor-nvmf-3 -parameters: - repl: '3' - protocol: 'nvmf' - ioTimeout: '30' - # It is recommended to use xfs for Mayastor - # fsType: 'xfs' -provisioner: io.openebs.csi-mayastor -volumeBindingMode: WaitForFirstConsumer