assets and chart dir for v2.12.0
Signed-off-by: ashishjain <ashish.jain@mayadata.io>pull/144/head
parent
ef374e7bd6
commit
c9727ac92b
Binary file not shown.
|
@ -0,0 +1,24 @@
|
|||
dependencies:
|
||||
- name: openebs-ndm
|
||||
repository: https://openebs.github.io/node-disk-manager
|
||||
version: 1.6.1
|
||||
- name: localpv-provisioner
|
||||
repository: https://openebs.github.io/dynamic-localpv-provisioner
|
||||
version: 2.12.0
|
||||
- name: cstor
|
||||
repository: https://openebs.github.io/cstor-operators
|
||||
version: 2.12.0
|
||||
- name: jiva
|
||||
repository: https://openebs.github.io/jiva-operator
|
||||
version: 2.12.0
|
||||
- name: zfs-localpv
|
||||
repository: https://openebs.github.io/zfs-localpv
|
||||
version: 1.9.3
|
||||
- name: lvm-localpv
|
||||
repository: https://openebs.github.io/lvm-localpv
|
||||
version: 0.8.0
|
||||
- name: nfs-provisioner
|
||||
repository: https://openebs.github.io/dynamic-nfs-provisioner
|
||||
version: 0.6.0
|
||||
digest: sha256:3788c66c447688096edd246a9bf04599dd09b3e431911de4e7d8dcef8c933dc8
|
||||
generated: "2021-08-21T23:42:59.475599212Z"
|
|
@ -0,0 +1,46 @@
|
|||
annotations:
|
||||
catalog.cattle.io/certified: partner
|
||||
catalog.cattle.io/display-name: OpenEBS
|
||||
catalog.cattle.io/release-name: openebs
|
||||
apiVersion: v2
|
||||
appVersion: 2.12.0
|
||||
dependencies:
|
||||
- condition: cstor.enabled
|
||||
name: cstor
|
||||
repository: file://./charts/cstor
|
||||
- condition: jiva.enabled
|
||||
name: jiva
|
||||
repository: file://./charts/jiva
|
||||
- condition: localpv-provisioner.enabled
|
||||
name: localpv-provisioner
|
||||
repository: file://./charts/localpv-provisioner
|
||||
- condition: lvm-localpv.enabled
|
||||
name: lvm-localpv
|
||||
repository: file://./charts/lvm-localpv
|
||||
- condition: nfs-provisioner.enabled
|
||||
name: nfs-provisioner
|
||||
repository: file://./charts/nfs-provisioner
|
||||
- condition: openebs-ndm.enabled
|
||||
name: openebs-ndm
|
||||
repository: file://./charts/openebs-ndm
|
||||
- condition: zfs-localpv.enabled
|
||||
name: zfs-localpv
|
||||
repository: file://./charts/zfs-localpv
|
||||
description: Containerized Storage for Containers
|
||||
home: http://www.openebs.io/
|
||||
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/openebs/icon/color/openebs-icon-color.png
|
||||
keywords:
|
||||
- cloud-native-storage
|
||||
- block-storage
|
||||
- iSCSI
|
||||
- storage
|
||||
kubeVersion: '>=1.13.0-0'
|
||||
maintainers:
|
||||
- email: kiran.mova@openebs.io
|
||||
name: kmova
|
||||
- email: prateek.pandey@openebs.io
|
||||
name: prateekpandey14
|
||||
name: openebs
|
||||
sources:
|
||||
- https://github.com/openebs/openebs
|
||||
version: 2.12.0
|
|
@ -0,0 +1,6 @@
|
|||
approvers:
|
||||
- kmova
|
||||
- prateekpandey14
|
||||
reviewers:
|
||||
- kmova
|
||||
- prateekpandey14
|
|
@ -0,0 +1,259 @@
|
|||
# OpenEBS Helm Chart
|
||||
|
||||
[OpenEBS](https://github.com/openebs/openebs) is an *open source storage platform* that provides persistent and containerized block storage for DevOps and container environments.
|
||||
OpenEBS provides multiple storage engines that can be plugged in easily. A common pattern is the use of OpenEBS to deliver Dynamic LocalPV for those applications and workloads that want to access disks and cloud volumes directly.
|
||||
|
||||
OpenEBS can be deployed on any Kubernetes cluster - either in cloud, on-premise or developer laptop (minikube). OpenEBS itself is deployed as just another container on your cluster, and enables storage services that can be designated on a per pod, application, cluster or container level.
|
||||
|
||||
## Introduction
|
||||
|
||||
This chart bootstraps OpenEBS deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.
|
||||
|
||||
## Quickstart and documentation
|
||||
|
||||
You can run OpenEBS on any Kubernetes 1.13+ cluster in a matter of seconds. See the [Quickstart Guide to OpenEBS](https://docs.openebs.io/docs/next/quickstart.html) for detailed instructions.
|
||||
|
||||
For more comprehensive documentation, start with the [Welcome to OpenEBS](https://docs.openebs.io/docs/next/overview.html) docs.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Kubernetes 1.13+ with RBAC enabled
|
||||
- iSCSI PV support in the underlying infrastructure
|
||||
|
||||
## Adding OpenEBS Helm repository
|
||||
|
||||
Before installing OpenEBS Helm charts, you need to add the [OpenEBS Helm repository](https://openebs.github.io/charts) to your Helm client.
|
||||
|
||||
```bash
|
||||
helm repo add openebs https://openebs.github.io/charts
|
||||
```
|
||||
|
||||
## Update the dependent charts
|
||||
|
||||
```bash
|
||||
helm dependency update
|
||||
```
|
||||
|
||||
## Installing OpenEBS
|
||||
|
||||
```bash
|
||||
helm install --namespace openebs openebs/openebs
|
||||
```
|
||||
|
||||
## Installing OpenEBS with the release name
|
||||
|
||||
```bash
|
||||
helm install --name `my-release` --namespace openebs openebs/openebs
|
||||
```
|
||||
|
||||
## To uninstall/delete instance with release name
|
||||
|
||||
```bash
|
||||
helm ls --all
|
||||
helm delete `my-release`
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
The following table lists the configurable parameters of the OpenEBS chart and their default values.
|
||||
|
||||
| Parameter | Description | Default |
|
||||
| ----------------------------------------| --------------------------------------------- | ----------------------------------------- |
|
||||
| `rbac.create` | Enable RBAC Resources | `true` |
|
||||
| `rbac.pspEnabled` | Create pod security policy resources | `false` |
|
||||
| `rbac.kyvernoEnabled` | Create Kyverno policy resources | `false` |
|
||||
| `image.pullPolicy` | Container pull policy | `IfNotPresent` |
|
||||
| `image.repository` | Specify which docker registry to use | `""` |
|
||||
| `apiserver.enabled` | Enable API Server | `true` |
|
||||
| `apiserver.image` | Image for API Server | `openebs/m-apiserver` |
|
||||
| `apiserver.imageTag` | Image Tag for API Server | `2.12.0` |
|
||||
| `apiserver.replicas` | Number of API Server Replicas | `1` |
|
||||
| `apiserver.sparse.enabled` | Create Sparse Pool based on Sparsefile | `false` |
|
||||
| `apiserver.resources` | Set resource limits for API Server | `{}` |
|
||||
| `provisioner.enabled` | Enable Provisioner | `true` |
|
||||
| `provisioner.image` | Image for Provisioner | `openebs/openebs-k8s-provisioner` |
|
||||
| `provisioner.imageTag` | Image Tag for Provisioner | `2.12.0` |
|
||||
| `provisioner.replicas` | Number of Provisioner Replicas | `1` |
|
||||
| `provisioner.resources` | Set resource limits for Provisioner | `{}` |
|
||||
| `provisioner.patchJivaNodeAffinity` | Enable/disable node affinity on jiva replica deployment| `enabled` |
|
||||
| `localprovisioner.enabled` | Enable localProvisioner | `true` |
|
||||
| `localprovisioner.image` | Image for localProvisioner | `openebs/provisioner-localpv` |
|
||||
| `localprovisioner.imageTag` | Image Tag for localProvisioner | `2.12.0` |
|
||||
| `localprovisioner.replicas` | Number of localProvisioner Replicas | `1` |
|
||||
| `localprovisioner.basePath` | BasePath for hostPath volumes on Nodes | `/var/openebs/local` |
|
||||
| `localprovisioner.resources` | Set resource limits for localProvisioner | `{}` |
|
||||
| `localpv.waitForBDBindTimeoutRetryCount`| This sets the number of times the provisioner should try with a polling interval of 5 seconds, to get the Blockdevice Name from a BlockDeviceClaim, before the BlockDeviceClaim is deleted. | "12" |
|
||||
| `webhook.enabled` | Enable admission server | `true` |
|
||||
| `webhook.image` | Image for admission server | `openebs/admission-server` |
|
||||
| `webhook.imageTag` | Image Tag for admission server | `2.12.0` |
|
||||
| `webhook.replicas` | Number of admission server Replicas | `1` |
|
||||
| `webhook.hostNetwork` | Use hostNetwork in admission server | `false` |
|
||||
| `webhook.resources` | Set resource limits for admission server | `{}` |
|
||||
| `snapshotOperator.enabled` | Enable Snapshot Provisioner | `true` |
|
||||
| `snapshotOperator.provisioner.image` | Image for Snapshot Provisioner | `openebs/snapshot-provisioner` |
|
||||
| `snapshotOperator.provisioner.imageTag` | Image Tag for Snapshot Provisioner | `2.12.0` |
|
||||
| `snapshotOperator.controller.image` | Image for Snapshot Controller | `openebs/snapshot-controller` |
|
||||
| `snapshotOperator.controller.imageTag` | Image Tag for Snapshot Controller | `2.12.0` |
|
||||
| `snapshotOperator.replicas` | Number of Snapshot Operator Replicas | `1` |
|
||||
| `snapshotOperator.provisioner.resources`| Set resource limits for Snapshot Provisioner | `{}` |
|
||||
| `snapshotOperator.controller.resources` | Set resource limits for Snapshot Controller | `{}` |
|
||||
| `ndm.enabled` | Enable Node Disk Manager | `true` |
|
||||
| `ndm.image` | Image for Node Disk Manager | `openebs/node-disk-manager` |
|
||||
| `ndm.imageTag` | Image Tag for Node Disk Manager | `1.6.1` |
|
||||
| `ndm.sparse.path` | Directory where Sparse files are created | `/var/openebs/sparse` |
|
||||
| `ndm.sparse.size` | Size of the sparse file in bytes | `10737418240` |
|
||||
| `ndm.sparse.count` | Number of sparse files to be created | `0` |
|
||||
| `ndm.filters.enableOsDiskExcludeFilter` | Enable filters of OS disk exclude | `true` |
|
||||
| `ndm.filters.osDiskExcludePaths` | Paths/Mountpoints to be excluded by OS Disk Filter| `/,/etc/hosts,/boot` |
|
||||
| `ndm.filters.enableVendorFilter` | Enable filters of vendors | `true` |
|
||||
| `ndm.filters.excludeVendors` | Exclude devices with specified vendor | `CLOUDBYT,OpenEBS` |
|
||||
| `ndm.filters.enablePathFilter` | Enable filters of paths | `true` |
|
||||
| `ndm.filters.includePaths` | Include devices with specified path patterns | `""` |
|
||||
| `ndm.filters.excludePaths` | Exclude devices with specified path patterns | `/dev/loop,/dev/fd0,/dev/sr0,/dev/ram,/dev/dm-,/dev/md,/dev/rbd,/dev/zd`|
|
||||
| `ndm.probes.enableSeachest` | Enable Seachest probe for NDM | `false` |
|
||||
| `ndm.resources` | Set resource limits for NDM | `{}` |
|
||||
| `ndmOperator.enabled` | Enable NDM Operator | `true` |
|
||||
| `ndmOperator.image` | Image for NDM Operator | `openebs/node-disk-operator` |
|
||||
| `ndmOperator.imageTag` | Image Tag for NDM Operator | `1.6.1` |
|
||||
| `ndmOperator.resources` | Set resource limits for NDM Operator | `{}` |
|
||||
| `ndmExporter.enabled` | Enable NDM Exporters | `false` |
|
||||
| `ndmExporter.image.registry` | Registry for NDM Exporters image | `""` |
|
||||
| `ndmExporter.repository` | Image repository for NDM Exporters | `openebs/node-disk-exporter` |
|
||||
| `ndmExporter.pullPolicy` | Image pull policy for NDM Exporters | `IfNotPresent` |
|
||||
| `ndmExporter.tag` | Image tag for NDM Exporters | `1.6.1` |
|
||||
| `ndmExporter.nodeExporter.metricsPort` | The TCP port number used for exposing NDM node exporter metrics | `9101` |
|
||||
| `ndmExporter.clusterExporter.metricsPort` | The TCP port number used for exposing NDM cluster exporter metrics | `9100` |
|
||||
| `jiva.image` | Image for Jiva | `openebs/jiva` |
|
||||
| `jiva.imageTag` | Image Tag for Jiva | `2.12.1` |
|
||||
| `jiva.replicas` | Number of Jiva Replicas | `3` |
|
||||
| `jiva.defaultStoragePath` | hostpath used by default Jiva StorageClass | `/var/openebs` |
|
||||
| `cstor.pool.image` | Image for cStor Pool | `openebs/cstor-pool` |
|
||||
| `cstor.pool.imageTag` | Image Tag for cStor Pool | `2.12.0` |
|
||||
| `cstor.poolMgmt.image` | Image for cStor Pool Management | `openebs/cstor-pool-mgmt` |
|
||||
| `cstor.poolMgmt.imageTag` | Image Tag for cStor Pool Management | `2.12.0` |
|
||||
| `cstor.target.image` | Image for cStor Target | `openebs/cstor-istgt` |
|
||||
| `cstor.target.imageTag` | Image Tag for cStor Target | `2.12.0` |
|
||||
| `cstor.volumeMgmt.image` | Image for cStor Volume Management | `openebs/cstor-volume-mgmt` |
|
||||
| `cstor.volumeMgmt.imageTag` | Image Tag for cStor Volume Management | `2.12.0` |
|
||||
| `helper.image` | Image for helper | `openebs/linux-utils` |
|
||||
| `helper.imageTag` | Image Tag for helper | `2.12.0` |
|
||||
| `featureGates.enabled` | Enable feature gates for OpenEBS | `true` |
|
||||
| `featureGates.APIService.enabled` | Enable APIService in NDM | `false` |
|
||||
| `featureGates.UseOSDisk.enabled` | Enable using unused partitions on OS Disk | `false` |
|
||||
| `featureGates.MountChangeDetection.enabled` | Enable feature-gate to detect mountpoint/filesystem changes | `false` |
|
||||
| `crd.enableInstall` | Enable installation of CRDs by OpenEBS | `true` |
|
||||
| `policies.monitoring.image` | Image for Prometheus Exporter | `openebs/m-exporter` |
|
||||
| `policies.monitoring.imageTag` | Image Tag for Prometheus Exporter | `2.12.0` |
|
||||
| `analytics.enabled` | Enable sending stats to Google Analytics | `true` |
|
||||
| `analytics.pingInterval` | Duration(hours) between sending ping stat | `24h` |
|
||||
| `defaultStorageConfig.enabled` | Enable default storage class installation | `true` |
|
||||
| `varDirectoryPath.baseDir` | To store debug info of OpenEBS containers | `/var/openebs` |
|
||||
| `healthCheck.initialDelaySeconds` | Delay before liveness probe is initiated | `30` |
|
||||
| `healthCheck.periodSeconds` | How often to perform the liveness probe | `60` |
|
||||
| `cleanup.image.registry` | Cleanup pre hook image registry | `nil` |
|
||||
| `cleanup.image.repository` | Cleanup pre hook image repository | `"bitnami/kubectl"` |
|
||||
| `cleanup.image.tag` | Cleanup pre hook image tag | `if not provided determined by the k8s version` |
|
||||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
|
||||
|
||||
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
|
||||
|
||||
```bash
|
||||
helm install --name openebs -f values.yaml openebs/openebs
|
||||
```
|
||||
|
||||
> **Tip**: You can use the default [values.yaml](values.yaml)
|
||||
|
||||
## Below charts are dependent charts of this chart
|
||||
- [openebs-ndm](https://openebs.github.io/node-disk-manager)
|
||||
- [localpv-provisioner](https://openebs.github.io/dynamic-localpv-provisioner)
|
||||
- [cstor](https://openebs.github.io/cstor-operators)
|
||||
- [jiva](https://openebs.github.io/jiva-operator)
|
||||
- [zfs-localpv](https://openebs.github.io/zfs-localpv)
|
||||
- [lvm-localpv](https://openebs.github.io/lvm-localpv)
|
||||
- [nfs](https://openebs.github.io/dynamic-nfs-provisioner)
|
||||
|
||||
## Dependency tree of this chart
|
||||
```bash
|
||||
openebs
|
||||
├── openebs-ndm
|
||||
├── localpv-provisioner
|
||||
│ └── openebs-ndm (optional)
|
||||
├── jiva
|
||||
│ └── localpv-provisioner
|
||||
│ └── openebs-ndm (optional)
|
||||
├── cstor
|
||||
│ └── openebs-ndm
|
||||
├── zfs-localpv
|
||||
└── lvm-localpv
|
||||
└── nfs-provisioner
|
||||
|
||||
```
|
||||
|
||||
#### (Default) Install Jiva, cStor and Local PV with out-of-tree provisioners
|
||||
```bash
|
||||
helm install openebs openebs/openebs --namespace openebs --create-namespace
|
||||
```
|
||||
|
||||
#### Install cStor with CSI driver
|
||||
```bash
|
||||
helm install openebs openebs/openebs --namespace openebs --create-namespace \
|
||||
--set legacy.enabled=false \
|
||||
--set cstor.enabled=true \
|
||||
--set openebs-ndm.enabled=true
|
||||
```
|
||||
|
||||
#### Install Jiva with CSI driver
|
||||
```bash
|
||||
helm install openebs openebs/openebs --namespace openebs --create-namespace \
|
||||
--set legacy.enabled=false \
|
||||
--set jiva.enabled=true \
|
||||
--set openebs-ndm.enabled=true \
|
||||
--set localpv-provisioner.enabled=true
|
||||
```
|
||||
|
||||
#### Install ZFS Local PV
|
||||
```bash
|
||||
helm install openebs openebs/openebs --namespace openebs --create-namespace \
|
||||
--set legacy.enabled=false \
|
||||
--set zfs-localpv.enabled=true
|
||||
```
|
||||
|
||||
#### Install LVM Local PV
|
||||
```bash
|
||||
helm install openebs openebs/openebs --namespace openebs --create-namespace \
|
||||
--set legacy.enabled=false \
|
||||
--set lvm-localpv.enabled=true
|
||||
```
|
||||
|
||||
#### Install Local PV hostpath and device
|
||||
```bash
|
||||
helm install openebs openebs/openebs --namespace openebs --create-namespace \
|
||||
--set legacy.enabled=false \
|
||||
--set localpv-provisioner.enabled=true
|
||||
--set openebs-ndm.enabled=true \
|
||||
```
|
||||
|
||||
#### Install NFS Provisioner
|
||||
```bash
|
||||
helm install openebs openebs/openebs --namespace openebs --create-namespace \
|
||||
--set legacy.enabled=false \
|
||||
--set nfs-provisioner.enabled=true
|
||||
```
|
||||
|
||||
|
||||
> **Tip**: You can install multiple csi driver by merging the configuration.
|
||||
|
||||
## Kyverno Policy Integration
|
||||
|
||||
PodSecurityPolicy(PSP) is being deprecated in Kubernetes 1.21 and will be removed in v1.25. So, the suitable alternative is Kyverno.
|
||||
Kyverno is an open-source policy engine built specifically for Kubernetes to not only validate and ensure requests comply with your
|
||||
internal best practices and policies.
|
||||
|
||||
|
||||
As part of kyverno integration, some required policies have been added as a helm template in openebs charts, installation disable by default and can be enabled using a flag. But before enabling that [Kyverno](https://kyverno.io/docs/installation/) should be installed in your Kubernetes cluster using
|
||||
[Helm](https://kyverno.io/docs/installation/#install-kyverno-using-helm) or [YAMLs](https://kyverno.io/docs/installation/#install-kyverno-using-yamls).
|
||||
|
||||
Check the default kyverno policies in Kubernetes cluster using
|
||||
```bash
|
||||
kubectl get pol
|
||||
```
|
|
@ -0,0 +1,10 @@
|
|||
# OpenEBS
|
||||
|
||||
OpenEBS is an open source storage platform that provides persistent container attached, cloud-native block storage for DevOps and for Kubernetes environments.
|
||||
|
||||
OpenEBS allows you to treat your persistent workload containers, such as DBs on containers, just like other containers. OpenEBS itself is deployed as just another container on your host and enables storage services that can be designated on a per pod, application, cluster or container level, including:
|
||||
- Data persistence across nodes, dramatically reducing time spent rebuilding Cassandra rings for example.
|
||||
- Synchronization of data across availability zones and cloud providers.
|
||||
- Use of commodity hardware plus a container engine to deliver so called container attached block storage.
|
||||
- Integration with Kubernetes, so developer and application intent flows into OpenEBS configurations automatically.
|
||||
- Management of tiering to and from S3 and other targets.
|
|
@ -0,0 +1,23 @@
|
|||
# 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/
|
|
@ -0,0 +1,6 @@
|
|||
dependencies:
|
||||
- name: openebs-ndm
|
||||
repository: https://openebs.github.io/node-disk-manager
|
||||
version: 1.6.0
|
||||
digest: sha256:bb37660c475faea9651f07b43f655da8f19d251b3227da70ec4990fae6d380f0
|
||||
generated: "2021-07-16T06:27:46.122817861Z"
|
|
@ -0,0 +1,29 @@
|
|||
apiVersion: v2
|
||||
appVersion: 2.11.0
|
||||
dependencies:
|
||||
- condition: openebsNDM.enabled
|
||||
name: openebs-ndm
|
||||
repository: https://openebs.github.io/node-disk-manager
|
||||
version: 1.6.0
|
||||
description: CStor-Operator helm chart for Kubernetes
|
||||
home: http://www.openebs.io/
|
||||
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/openebs/icon/color/openebs-icon-color.png
|
||||
keywords:
|
||||
- cloud-native-storage
|
||||
- block-storage
|
||||
- iSCSI
|
||||
- storage
|
||||
- cstor
|
||||
- cstor-operators
|
||||
maintainers:
|
||||
- email: kiran.mova@mayadata.io
|
||||
name: kiranmova
|
||||
- email: prateek.pandey@mayadata.io
|
||||
name: prateekpandey14
|
||||
- email: sonasingh46@gmail.com
|
||||
name: sonasingh46
|
||||
name: cstor
|
||||
sources:
|
||||
- https://github.com/openebs/cstor-operators
|
||||
type: application
|
||||
version: 2.11.0
|
|
@ -0,0 +1,241 @@
|
|||
# OpenEBS CStor
|
||||
|
||||
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
|
||||
![Release Charts](https://github.com/openebs/cstor-operators/workflows/Release%20Charts/badge.svg?branch=master)
|
||||
![Chart Lint and Test](https://github.com/openebs/cstor-operators/workflows/Chart%20Lint%20and%20Test/badge.svg)
|
||||
|
||||
OpenEBS CStor helm chart for Kubernetes. This chart bootstraps OpenEBS cstor operators and csi driver deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager
|
||||
|
||||
**Homepage:** <http://www.openebs.io/>
|
||||
|
||||
## Maintainers
|
||||
|
||||
| Name | Email | Url |
|
||||
| ---- | ------ | --- |
|
||||
| kiranmova | kiran.mova@mayadata.io | |
|
||||
| prateekpandey14 | prateek.pandey@mayadata.io | |
|
||||
| sonasingh46 | sonasingh46@gmail.com | |
|
||||
|
||||
## Get Repo Info
|
||||
|
||||
```console
|
||||
helm repo add openebs-cstor https://openebs.github.io/cstor-operators
|
||||
helm repo update
|
||||
```
|
||||
|
||||
_See [helm repo](https://helm.sh/docs/helm/helm_repo/) for command documentation._
|
||||
|
||||
## Install Chart
|
||||
|
||||
Please visit the [link](https://openebs.github.io/cstor-operators) for install instructions via helm3.
|
||||
|
||||
```console
|
||||
# Helm
|
||||
$ helm install [RELEASE_NAME] openebs-cstor/cstor --namespace [NAMESPACE]
|
||||
```
|
||||
<details>
|
||||
<summary>Click here if you're using MicroK8s.</summary>
|
||||
|
||||
```console
|
||||
microk8s helm3 install [RELEASE_NAME] openebs-cstor/cstor --namespace [NAMESPACE] --set-string csiNode.kubeletDir="/var/snap/microk8s/common/var/lib/kubelet/"
|
||||
```
|
||||
</details>
|
||||
|
||||
_See [configuration](#configuration) below._
|
||||
|
||||
_See [helm install](https://helm.sh/docs/helm/helm_install/) for command documentation._
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
By default this chart installs additional, dependent charts:
|
||||
|
||||
| Repository | Name | Version |
|
||||
|------------|------|---------|
|
||||
| https://openebs.github.io/node-disk-manager | openebs-ndm | 1.6.0 |
|
||||
|
||||
To disable the dependency during installation, set `openebsNDM.enabled` to `false`.
|
||||
|
||||
_See [helm dependency](https://helm.sh/docs/helm/helm_dependency/) for command documentation._
|
||||
|
||||
## Uninstall Chart
|
||||
|
||||
```console
|
||||
# Helm
|
||||
$ helm uninstall [RELEASE_NAME] --namespace [NAMESPACE]
|
||||
```
|
||||
|
||||
This removes all the Kubernetes components associated with the chart and deletes the release.
|
||||
|
||||
_See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall/) for command documentation._
|
||||
|
||||
## Upgrading Chart
|
||||
|
||||
```console
|
||||
# Helm
|
||||
$ helm upgrade [RELEASE_NAME] [CHART] --install --namespace [NAMESPACE]
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
The following table lists the configurable parameters of the OpenEBS CStor chart and their default values.
|
||||
|
||||
You can modify different parameters by specifying the desired value in the `helm install` command by using the `--set` and/or the `--set-string` flag(s). You can modify the parameters of the [Node Disk Manager chart](https://openebs.github.io/node-disk-manager) by adding `openebs-ndm` before the desired parameter in the `helm install` command.
|
||||
|
||||
In the following sample command we modify `csiNode.nodeSelector` from the cstor chart and `ndm.nodeSelector` from the openebs-ndm chart to only schedule pods on nodes labelled with `openebs.io/data-plane=true`. We also enable the 'Use OS-disk' feature gate using the `featureGates.UseOSDisk.enabled` parameter from the openebs-ndm chart.
|
||||
|
||||
|
||||
```console
|
||||
helm install openebs-cstor openebs-cstor/cstor --namespace openebs --create-namespace \
|
||||
--set-string csiNode.nodeSelector."openebs\.io/data-plane"=true \
|
||||
--set-string openebs-ndm.ndm.nodeSelector."openebs\.io/data-plane"=true \
|
||||
--set openebs-ndm.featureGates.UseOSDisk.enabled=true
|
||||
```
|
||||
<details>
|
||||
<summary>Click here if you're using MicroK8s.</summary>
|
||||
|
||||
If you are using MicroK8s, it is necessary to add the following flag:
|
||||
|
||||
```console
|
||||
--set-string csiNode.kubeletDir="/var/snap/microk8s/common/var/lib/kubelet/"
|
||||
```
|
||||
</details>
|
||||
|
||||
| Key | Type | Default | Description |
|
||||
|-----|------|---------|-------------|
|
||||
| admissionServer.annotations | object | `{}` | Admission webhook annotations |
|
||||
| admissionServer.componentName | string | `"cstor-admission-webhook"` | Admission webhook Component Name |
|
||||
| admissionServer.failurePolicy | string | `"Fail"` | Admission Webhook failure policy |
|
||||
| admissionServer.image.pullPolicy | string | `"IfNotPresent"` | Admission webhook image pull policy |
|
||||
| admissionServer.image.registry | string | `nil` | Admission webhook image registry |
|
||||
| admissionServer.image.repository | string | `"openebs/cstor-webhook"` | Admission webhook image repo |
|
||||
| admissionServer.image.tag | string | `"2.11.0"` | Admission webhook image tag |
|
||||
| admissionServer.nodeSelector | object | `{}` | Admission webhook pod node selector |
|
||||
| admissionServer.podAnnotations | object | `{}` | Admission webhook pod annotations |
|
||||
| admissionServer.resources | object | `{}` | Admission webhook pod resources |
|
||||
| admissionServer.securityContext | object | `{}` | Admission webhook security context |
|
||||
| admissionServer.tolerations | list | `[]` | Admission webhook tolerations |
|
||||
| cleanup.image.registry | string | `nil` | cleanup pre hook image registry |
|
||||
| cleanup.image.repository | string | `"bitnami/kubectl"` | cleanup pre hook image repository |
|
||||
| csiController.annotations | object | `{}` | CSI controller annotations |
|
||||
| csiController.attacher.image.pullPolicy | string | `"IfNotPresent"` | CSI attacher image pull policy |
|
||||
| csiController.attacher.image.registry | string | `"k8s.gcr.io/"` | CSI attacher image registry |
|
||||
| csiController.attacher.image.repository | string | `"sig-storage/csi-attacher"` | CSI attacher image repo |
|
||||
| csiController.attacher.image.tag | string | `"v3.1.0"` | CSI attacher image tag |
|
||||
| csiController.attacher.name | string | `"csi-attacher"` | CSI attacher container name|
|
||||
| csiController.componentName | string | `"openebs-cstor-csi-controller"` | CSI controller component name |
|
||||
| csiController.nodeSelector | object | `{}` | CSI controller pod node selector |
|
||||
| csiController.podAnnotations | object | `{}` | CSI controller pod annotations |
|
||||
| csiController.provisioner.image.pullPolicy | string | `"IfNotPresent"` | CSI provisioner image pull policy |
|
||||
| csiController.provisioner.image.registry | string | `"k8s.gcr.io/"` | CSI provisioner image pull registry |
|
||||
| csiController.provisioner.image.repository | string | `"sig-storage/csi-provisioner"` | CSI provisioner image pull repository |
|
||||
| csiController.provisioner.image.tag | string | `"v2.1.0"` | CSI provisioner image tag |
|
||||
| csiController.provisioner.name | string | `"csi-provisioner"` | CSI provisioner container name |
|
||||
| csiController.resizer.image.pullPolicy | string | `"IfNotPresent"` | CSI resizer image pull policy |
|
||||
| csiController.resizer.image.registry | string | `"k8s.gcr.io/"` | CSI resizer image registry |
|
||||
| csiController.resizer.image.repository | string | `"sig-storage/csi-resizer"` | CSI resizer image repository|
|
||||
| csiController.resizer.image.tag | string | `"v1.1.0"` | CSI resizer image tag |
|
||||
| csiController.resizer.name | string | `"csi-resizer"` | CSI resizer container name |
|
||||
| csiController.resources | object | `{}` | CSI controller container resources |
|
||||
| csiController.securityContext | object | `{}` | CSI controller security context |
|
||||
| csiController.snapshotController.image.pullPolicy | string | `"IfNotPresent"` | CSI snapshot controller image pull policy |
|
||||
| csiController.snapshotController.image.registry | string | `"k8s.gcr.io/"` | CSI snapshot controller image registry |
|
||||
| csiController.snapshotController.image.repository | string | `"sig-storage/snapshot-controller"` | CSI snapshot controller image repository |
|
||||
| csiController.snapshotController.image.tag | string | `"v3.0.3"` | CSI snapshot controller image tag |
|
||||
| csiController.snapshotController.name | string | `"snapshot-controller"` | CSI snapshot controller container name |
|
||||
| csiController.snapshotter.image.pullPolicy | string | `"IfNotPresent"` | CSI snapshotter image pull policy |
|
||||
| csiController.snapshotter.image.registry | string | `"k8s.gcr.io/"` | CSI snapshotter image pull registry |
|
||||
| csiController.snapshotter.image.repository | string | `"sig-storage/csi-snapshotter"` | CSI snapshotter image repository |
|
||||
| csiController.snapshotter.image.tag | string | `"v3.0.3"` | CSI snapshotter image tag |
|
||||
| csiController.snapshotter.name | string | `"csi-snapshotter"` | CSI snapshotter container name |
|
||||
| csiController.tolerations | list | `[]` | CSI controller pod tolerations |
|
||||
| csiNode.annotations | object | `{}` | CSI Node annotations |
|
||||
| csiNode.componentName | string | `"openebs-cstor-csi-node"` | CSI Node component name |
|
||||
| csiNode.driverRegistrar.image.pullPolicy | string | `"IfNotPresent"` | CSI Node driver registrar image pull policy|
|
||||
| csiNode.driverRegistrar.image.registry | string | `"k8s.gcr.io/"` | CSI Node driver registrar image registry |
|
||||
| csiNode.driverRegistrar.image.repository | string | `"sig-storage/csi-node-driver-registrar"` | CSI Node driver registrar image repository |
|
||||
| csiNode.driverRegistrar.image.tag | string | `"v2.1.0"` | CSI Node driver registrar image tag|
|
||||
| csiNode.driverRegistrar.name | string | `"csi-node-driver-registrar"` | CSI Node driver registrar container name |
|
||||
| csiNode.kubeletDir | string | `"/var/lib/kubelet/"` | Kubelet root dir |
|
||||
| csiNode.labels | object | `{}` | CSI Node pod labels |
|
||||
| csiNode.nodeSelector | object | `{}` | CSI Node pod nodeSelector |
|
||||
| csiNode.podAnnotations | object | `{}` | CSI Node pod annotations |
|
||||
| csiNode.resources | object | `{}` | CSI Node pod resources |
|
||||
| csiNode.securityContext | object | `{}` | CSI Node pod security context |
|
||||
| csiNode.tolerations | list | `[]` | CSI Node pod tolerations |
|
||||
| csiNode.updateStrategy.type | string | `"RollingUpdate"` | CSI Node daemonset update strategy |
|
||||
| cspcOperator.annotations | object | `{}` | CSPC operator annotations |
|
||||
| cspcOperator.componentName | string | `"cspc-operator"` | CSPC operator component name |
|
||||
| cspcOperator.cstorPool.image.registry | string | `nil` | CStor pool image registry |
|
||||
| cspcOperator.cstorPool.image.repository | string | `"openebs/cstor-pool"` | CStor pool image repository|
|
||||
| cspcOperator.cstorPool.image.tag | string | `"2.11.0"` | CStor pool image tag |
|
||||
| cspcOperator.cstorPoolExporter.image.registry | string | `nil` | CStor pool exporter image registry |
|
||||
| cspcOperator.cstorPoolExporter.image.repository | string | `"openebs/m-exporter"` | CStor pool exporter image repository |
|
||||
| cspcOperator.cstorPoolExporter.image.tag | string | `"2.11.0"` | CStor pool exporter image tag |
|
||||
| cspcOperator.image.pullPolicy | string | `"IfNotPresent"` | CSPC operator image pull policy |
|
||||
| cspcOperator.image.registry | string | `nil` | CSPC operator image registry |
|
||||
| cspcOperator.image.repository | string | `"openebs/cspc-operator"` | CSPC operator image repository |
|
||||
| cspcOperator.image.tag | string | `"2.11.0"` | CSPC operator image tag |
|
||||
| cspcOperator.nodeSelector | object | `{}` | CSPC operator pod nodeSelector|
|
||||
| cspcOperator.podAnnotations | object | `{}` | CSPC operator pod annotations |
|
||||
| cspcOperator.poolManager.image.registry | string | `nil` | CStor Pool Manager image registry |
|
||||
| cspcOperator.poolManager.image.repository | string | `"openebs/cstor-pool-manager"` | CStor Pool Manager image repository |
|
||||
| cspcOperator.poolManager.image.tag | string | `"2.11.0"` | CStor Pool Manager image tag |
|
||||
| cspcOperator.resources | object | `{}` | CSPC operator pod resources |
|
||||
| cspcOperator.resyncInterval | string | `"30"` | CSPC operator resync interval |
|
||||
| cspcOperator.securityContext | object | `{}` | CSPC operator security context |
|
||||
| cspcOperator.tolerations | list | `[]` | CSPC operator pod tolerations |
|
||||
| cstorCSIPlugin.image.pullPolicy | string | `"IfNotPresent"` | CStor CSI driver image pull policy |
|
||||
| cstorCSIPlugin.image.registry | string | `nil` | CStor CSI driver image registry |
|
||||
| cstorCSIPlugin.image.repository | string | `"openebs/cstor-csi-driver"` | CStor CSI driver image repository |
|
||||
| cstorCSIPlugin.image.tag | string | `"2.11.0"` | CStor CSI driver image tag |
|
||||
| cstorCSIPlugin.name | string | `"cstor-csi-plugin"` | CStor CSI driver container name |
|
||||
| cstorCSIPlugin.remount | string | `"true"` | Enable/disable auto-remount when volume recovers from read-only state |
|
||||
| cvcOperator.annotations | object | `{}` | CVC operator annotations |
|
||||
| cvcOperator.componentName | string | `"cvc-operator"` | CVC operator component name |
|
||||
| cvcOperator.image.pullPolicy | string | `"IfNotPresent"` | CVC operator image pull policy |
|
||||
| cvcOperator.image.registry | string | `nil` | CVC operator image registry |
|
||||
| cvcOperator.image.repository | string | `"openebs/cvc-operator"` | CVC operator image repository |
|
||||
| cvcOperator.image.tag | string | `"2.11.0"` | CVC operator image tag |
|
||||
| cvcOperator.nodeSelector | object | `{}` | CVC operator pod nodeSelector |
|
||||
| cvcOperator.podAnnotations | object | `{}` | CVC operator pod annotations |
|
||||
| cvcOperator.resources | object | `{}` |CVC operator pod resources |
|
||||
| cvcOperator.resyncInterval | string | `"30"` | CVC operator resync interval |
|
||||
| cvcOperator.securityContext | object | `{}` | CVC operator security context |
|
||||
| cvcOperator.target.image.registry | string | `nil` | Volume Target image registry |
|
||||
| cvcOperator.target.image.repository | string | `"openebs/cstor-istgt"` | Volume Target image repository |
|
||||
| cvcOperator.target.image.tag | string | `"2.11.0"` | Volume Target image tag |
|
||||
| cvcOperator.tolerations | list | `[]` | CVC operator pod tolerations |
|
||||
| cvcOperator.volumeExporter.image.registry | string | `nil` | Volume exporter image registry |
|
||||
| cvcOperator.volumeExporter.image.repository | string | `"openebs/m-exporter"` | Volume exporter image repository |
|
||||
| cvcOperator.volumeExporter.image.tag | string | `"2.11.0"` | Volume exporter image tag |
|
||||
| cvcOperator.volumeMgmt.image.registry | string | `nil` | Volume mgmt image registry |
|
||||
| cvcOperator.volumeMgmt.image.repository | string | `"openebs/cstor-volume-manager"` | Volume mgmt image repository |
|
||||
| cvcOperator.volumeMgmt.image.tag | string | `"2.11.0"` | Volume mgmt image tag|
|
||||
| imagePullSecrets | string | `nil` | Image registry pull secrets |
|
||||
| openebsNDM.enabled | bool | `true` | Enable OpenEBS NDM dependency |
|
||||
| openebs-ndm.featureGates.APIService.enabled | bool | `true` | Enable 'API Service' feature gate for NDM |
|
||||
| openebs-ndm.featureGates.GPTBasedUUID.enabled | bool | `true` | Enable 'GPT-based UUID' feature gate for NDM |
|
||||
| openebs-ndm.featureGates.UseOSDisk.enabled | bool | `false` | Enable 'Use OS-disk' feature gate for NDM |
|
||||
| openebs-ndm.helperPod.image.registry | string | `nil` | Registry for helper image |
|
||||
| openebs-ndm.helperPod.image.repository | string | `openebs/linux-utils` | Image repository for helper pod |
|
||||
| openebs-ndm.ndm.filters.enableOsDiskExcludeFilter | bool | `true` | Enable filters of OS disk exclude |
|
||||
| openebs-ndm.ndm.filters.enableVendorFilter | bool | `true` | Enable filters of vendors |
|
||||
| openebs-ndm.ndm.filters.excludeVendors | string | `"CLOUDBYT,OpenEBS"` | Exclude devices with specified vendor |
|
||||
| openebs-ndm.ndm.filters.enablePathFilter | bool | `true` | Enable filters of paths |
|
||||
| openebs-ndm.ndm.filters.includePaths | string | `""` | Include devices with specified path patterns |
|
||||
| openebs-ndm.ndm.filters.excludePaths | string | `"loop,fd0,sr0,/dev/ram,/dev/dm-,/dev/md,/dev/rbd,/dev/zd"` | Exclude devices with specified path patterns |
|
||||
| openebs-ndm.ndm.image.registry | string | `nil` | Registry for Node Disk Manager image |
|
||||
| openebs-ndm.ndm.image.repository | string | `openebs/node-disk-manager` | Image repository for Node Disk Manager |
|
||||
| openebs-ndm.ndm.nodeSelector | object | `{}` | Nodeselector for daemonset pods |
|
||||
| openebs-ndm.ndmOperator.image.registry | string | `nil` | Registry for NDM operator image |
|
||||
| openebs-ndm.ndmOperator.image.repository | string | `openebs/node-disk-operator` | Image repository for NDM operator |
|
||||
| rbac.create | bool | `true` | Enable RBAC |
|
||||
| rbac.pspEnabled | bool | `false` | Enable PodSecurityPolicy |
|
||||
| release.version | string | `"2.11.0"` | Openebs CStor release version |
|
||||
| serviceAccount.annotations | object | `{}` | Service Account annotations |
|
||||
| serviceAccount.csiController.create | bool | `true` | Enable CSI Controller ServiceAccount |
|
||||
| serviceAccount.csiController.name | string | `"openebs-cstor-csi-controller-sa"` | CSI Controller ServiceAccount name |
|
||||
| serviceAccount.csiNode.create | bool | `true` | Enable CSI Node ServiceAccount |
|
||||
| serviceAccount.csiNode.name | string | `"openebs-cstor-csi-node-sa"` | CSI Node ServiceAccount name |
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
apiVersion: v2
|
||||
appVersion: 1.6.0
|
||||
description: Helm chart for OpenEBS Node Disk Manager - a Kubernetes native storage
|
||||
device management solution. For instructions on how to install, refer to https://openebs.github.io/node-disk-manager/.
|
||||
home: http://www.openebs.io/
|
||||
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/openebs/icon/color/openebs-icon-color.png
|
||||
keywords:
|
||||
- cloud-native-storage
|
||||
- block-storage
|
||||
- ndm
|
||||
- disk-inventory
|
||||
- storage
|
||||
maintainers:
|
||||
- email: akhil.mohan@mayadata.io
|
||||
name: akhilerm
|
||||
- email: michaelfornaro@gmail.com
|
||||
name: xUnholy
|
||||
- email: prateek.pandey@mayadata.io
|
||||
name: prateekpandey14
|
||||
name: openebs-ndm
|
||||
sources:
|
||||
- https://github.com/openebs/node-disk-manager
|
||||
version: 1.6.0
|
|
@ -0,0 +1,79 @@
|
|||
## Introduction
|
||||
|
||||
This chart bootstraps OpenEBS NDM deployment on a [Kubernetes](http://kubernetes.io) cluster using the
|
||||
[Helm](https://helm.sh) package manager.
|
||||
|
||||
## Installation
|
||||
|
||||
You can run OpenEBS NDM on any Kubernetes 1.13+ cluster in a matter of seconds.
|
||||
|
||||
Please visit the [link](https://openebs.github.io/node-disk-manager/) for install instructions via helm3.
|
||||
|
||||
## Configuration
|
||||
|
||||
The following table lists the configurable parameters of the OpenEBS NDM chart and their default values.
|
||||
|
||||
| Parameter | Description | Default |
|
||||
| ----------------------------------------| --------------------------------------------- | ----------------------------------------- |
|
||||
| `imagePullSecrets` | Provides image pull secrect | `""` |
|
||||
| `ndm.enabled` | Enable Node Disk Manager | `true` |
|
||||
| `ndm.image.registry` | Registry for Node Disk Manager image | `""` |
|
||||
| `ndm.image.repository` | Image repository for Node Disk Manager | `openebs/node-disk-manager` |
|
||||
| `ndm.image.pullPolicy` | Image pull policy for Node Disk Manager | `IfNotPresent` |
|
||||
| `ndm.image.tag` | Image tag for Node Disk Manager | `1.5.0` |
|
||||
| `ndm.sparse.path` | Directory where Sparse files are created | `/var/openebs/sparse` |
|
||||
| `ndm.sparse.size` | Size of the sparse file in bytes | `10737418240` |
|
||||
| `ndm.sparse.count` | Number of sparse files to be created | `0` |
|
||||
| `ndm.updateStrategy.type` | Update strategy for NDM daemonset | `RollingUpdate` |
|
||||
| `ndm.annotations` | Annotations for NDM daemonset metadata | `""` |
|
||||
| `ndm.podAnnotations` | Annotations for NDM daemonset's pods metadata | `""` |
|
||||
| `ndm.resources` | Resource and request and limit for containers | `""` |
|
||||
| `ndm.podLabels` | Appends labels to the pods | `""` |
|
||||
| `ndm.nodeSelector` | Nodeselector for daemonset pods | `""` |
|
||||
| `ndm.tolerations` | NDM daemonset's pod toleration values | `""` |
|
||||
| `ndm.securityContext` | Seurity context for container | `""` |
|
||||
| `ndm.filters.enableOsDiskExcludeFilter` | Enable filters of OS disk exclude | `true` |
|
||||
| `ndm.filters.osDiskExcludePaths` | Paths/Mountpoints to be excluded by OS Disk Filter| `/,/etc/hosts,/boot` |
|
||||
| `ndm.filters.enableVendorFilter` | Enable filters of vendors | `true` |
|
||||
| `ndm.filters.excludeVendors` | Exclude devices with specified vendor | `CLOUDBYT,OpenEBS` |
|
||||
| `ndm.filters.enablePathFilter` | Enable filters of paths | `true` |
|
||||
| `ndm.filters.includePaths` | Include devices with specified path patterns | `""` |
|
||||
| `ndm.filters.excludePaths` | Exclude devices with specified path patterns | `loop,fd0,sr0,/dev/ram,/dev/dm-,/dev/md,/dev/rbd,/dev/zd`|
|
||||
| `ndm.probes.enableSeachest` | Enable Seachest probe for NDM | `false` |
|
||||
| `ndm.probes.enableUdevProbe` | Enable Udev probe for NDM | `true` |
|
||||
| `ndm.probes.enableSmartProbe` | Enable Smart probe for NDM | `true` |
|
||||
| `ndmOperator.enabled` | Enable NDM Operator | `true` |
|
||||
| `ndmOperator.replica` | Pod replica count for NDM operator | `1` |
|
||||
| `ndmOperator.upgradeStrategy` | Update strategy NDM operator | `"Recreate"` |
|
||||
| `ndmOperator.image.registry` | Registry for NDM operator image | `""` |
|
||||
| `ndmOperator.image.repository` | Image repository for NDM operator | `openebs/node-disk-operator` |
|
||||
| `ndmOperator.image.pullPolicy` | Image pull policy for NDM operator | `IfNotPresent` |
|
||||
| `ndmOperator.image.tag` | Image tag for NDM operator | `1.5.0` |
|
||||
| `ndmOperator.annotations` | Annotations for NDM operator metadata | `""` |
|
||||
| `ndmOperator.podAnnotations` | Annotations for NDM operator's pods metadata | `""` |
|
||||
| `ndmOperator.resources` | Resource and request and limit for containers | `""` |
|
||||
| `ndmOperator.podLabels` | Appends labels to the pods | `""` |
|
||||
| `ndmOperator.nodeSelector` | Nodeselector for operator pods | `""` |
|
||||
| `ndmOperator.tolerations` | NDM operator's pod toleration values | `""` |
|
||||
| `ndmOperator.securityContext` | Seurity context for container | `""` |
|
||||
| `featureGates.APIService.enabled` | Enable the gRPC API service of NDM | `false` |
|
||||
| `featureGates.UseOSDisk.enabled` | Enable feature-gate to use free space on OS disk | `false` |
|
||||
| `featureGates.MountChangeDetection.enabled` | Enable feature-gate to detect mountpoint/filesystem changes | `false` |
|
||||
| `helperPod.image.registry` | Registry for helper image | `""` |
|
||||
| `helperPod.image.repository` | Image for helper pod | `openebs/linux-utils` |
|
||||
| `helperPod.image.pullPolicy` | Pull policy for helper pod | `IfNotPresent` |
|
||||
| `helperPod.image.tag` | Image tag for helper image | `2.10.0` |
|
||||
| `varDirectoryPath.baseDir` | Directory to store debug info and so forth | `/var/openebs` |
|
||||
| `serviceAccount.create` | Create a service account or not | `true` |
|
||||
| `serviceAccount.name` | Name for the service account | `true` |
|
||||
|
||||
|
||||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
|
||||
|
||||
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
|
||||
|
||||
```bash
|
||||
helm install <release-name> -f values.yaml ndm/openebs-ndm
|
||||
```
|
||||
|
||||
> **Tip**: You can use the default [values.yaml](values.yaml)
|
|
@ -0,0 +1,241 @@
|
|||
|
||||
---
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.5.0
|
||||
creationTimestamp: null
|
||||
name: blockdevices.openebs.io
|
||||
spec:
|
||||
group: openebs.io
|
||||
names:
|
||||
kind: BlockDevice
|
||||
listKind: BlockDeviceList
|
||||
plural: blockdevices
|
||||
shortNames:
|
||||
- bd
|
||||
singular: blockdevice
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- jsonPath: .spec.nodeAttributes.nodeName
|
||||
name: NodeName
|
||||
type: string
|
||||
- jsonPath: .spec.path
|
||||
name: Path
|
||||
priority: 1
|
||||
type: string
|
||||
- jsonPath: .spec.filesystem.fsType
|
||||
name: FSType
|
||||
priority: 1
|
||||
type: string
|
||||
- jsonPath: .spec.capacity.storage
|
||||
name: Size
|
||||
type: string
|
||||
- jsonPath: .status.claimState
|
||||
name: ClaimState
|
||||
type: string
|
||||
- jsonPath: .status.state
|
||||
name: Status
|
||||
type: string
|
||||
- jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: BlockDevice is the Schema for the blockdevices API
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: DeviceSpec defines the properties and runtime status of a BlockDevice
|
||||
properties:
|
||||
aggregateDevice:
|
||||
description: AggregateDevice was intended to store the hierarchical information in cases of LVM. However this is currently not implemented and may need to be re-looked into for better design. To be deprecated
|
||||
type: string
|
||||
capacity:
|
||||
description: Capacity
|
||||
properties:
|
||||
logicalSectorSize:
|
||||
description: LogicalSectorSize is blockdevice logical-sector size in bytes
|
||||
format: int32
|
||||
type: integer
|
||||
physicalSectorSize:
|
||||
description: PhysicalSectorSize is blockdevice physical-Sector size in bytes
|
||||
format: int32
|
||||
type: integer
|
||||
storage:
|
||||
description: Storage is the blockdevice capacity in bytes
|
||||
format: int64
|
||||
type: integer
|
||||
required:
|
||||
- storage
|
||||
type: object
|
||||
claimRef:
|
||||
description: ClaimRef is the reference to the BDC which has claimed this BD
|
||||
properties:
|
||||
apiVersion:
|
||||
description: API version of the referent.
|
||||
type: string
|
||||
fieldPath:
|
||||
description: 'If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
name:
|
||||
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
|
||||
type: string
|
||||
namespace:
|
||||
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
|
||||
type: string
|
||||
resourceVersion:
|
||||
description: 'Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
|
||||
type: string
|
||||
uid:
|
||||
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
|
||||
type: string
|
||||
type: object
|
||||
details:
|
||||
description: Details contain static attributes of BD like model,serial, and so forth
|
||||
properties:
|
||||
compliance:
|
||||
description: Compliance is standards/specifications version implemented by device firmware such as SPC-1, SPC-2, etc
|
||||
type: string
|
||||
deviceType:
|
||||
description: DeviceType represents the type of device like sparse, disk, partition, lvm, crypt
|
||||
enum:
|
||||
- disk
|
||||
- partition
|
||||
- sparse
|
||||
- loop
|
||||
- lvm
|
||||
- crypt
|
||||
- dm
|
||||
- mpath
|
||||
type: string
|
||||
driveType:
|
||||
description: DriveType is the type of backing drive, HDD/SSD
|
||||
enum:
|
||||
- HDD
|
||||
- SSD
|
||||
- Unknown
|
||||
- ""
|
||||
type: string
|
||||
firmwareRevision:
|
||||
description: FirmwareRevision is the disk firmware revision
|
||||
type: string
|
||||
hardwareSectorSize:
|
||||
description: HardwareSectorSize is the hardware sector size in bytes
|
||||
format: int32
|
||||
type: integer
|
||||
logicalBlockSize:
|
||||
description: LogicalBlockSize is the logical block size in bytes reported by /sys/class/block/sda/queue/logical_block_size
|
||||
format: int32
|
||||
type: integer
|
||||
model:
|
||||
description: Model is model of disk
|
||||
type: string
|
||||
physicalBlockSize:
|
||||
description: PhysicalBlockSize is the physical block size in bytes reported by /sys/class/block/sda/queue/physical_block_size
|
||||
format: int32
|
||||
type: integer
|
||||
serial:
|
||||
description: Serial is serial number of disk
|
||||
type: string
|
||||
vendor:
|
||||
description: Vendor is vendor of disk
|
||||
type: string
|
||||
type: object
|
||||
devlinks:
|
||||
description: DevLinks contains soft links of a block device like /dev/by-id/... /dev/by-uuid/...
|
||||
items:
|
||||
description: DeviceDevLink holds the mapping between type and links like by-id type or by-path type link
|
||||
properties:
|
||||
kind:
|
||||
description: Kind is the type of link like by-id or by-path.
|
||||
enum:
|
||||
- by-id
|
||||
- by-path
|
||||
type: string
|
||||
links:
|
||||
description: Links are the soft links
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
filesystem:
|
||||
description: FileSystem contains mountpoint and filesystem type
|
||||
properties:
|
||||
fsType:
|
||||
description: Type represents the FileSystem type of the block device
|
||||
type: string
|
||||
mountPoint:
|
||||
description: MountPoint represents the mountpoint of the block device.
|
||||
type: string
|
||||
type: object
|
||||
nodeAttributes:
|
||||
description: NodeAttributes has the details of the node on which BD is attached
|
||||
properties:
|
||||
nodeName:
|
||||
description: NodeName is the name of the Kubernetes node resource on which the device is attached
|
||||
type: string
|
||||
type: object
|
||||
parentDevice:
|
||||
description: "ParentDevice was intended to store the UUID of the parent Block Device as is the case for partitioned block devices. \n For example: /dev/sda is the parent for /dev/sda1 To be deprecated"
|
||||
type: string
|
||||
partitioned:
|
||||
description: Partitioned represents if BlockDevice has partitions or not (Yes/No) Currently always default to No. To be deprecated
|
||||
enum:
|
||||
- "Yes"
|
||||
- "No"
|
||||
type: string
|
||||
path:
|
||||
description: Path contain devpath (e.g. /dev/sdb)
|
||||
type: string
|
||||
required:
|
||||
- capacity
|
||||
- devlinks
|
||||
- nodeAttributes
|
||||
- path
|
||||
type: object
|
||||
status:
|
||||
description: DeviceStatus defines the observed state of BlockDevice
|
||||
properties:
|
||||
claimState:
|
||||
description: ClaimState represents the claim state of the block device
|
||||
enum:
|
||||
- Claimed
|
||||
- Unclaimed
|
||||
- Released
|
||||
type: string
|
||||
state:
|
||||
description: State is the current state of the blockdevice (Active/Inactive/Unknown)
|
||||
enum:
|
||||
- Active
|
||||
- Inactive
|
||||
- Unknown
|
||||
type: string
|
||||
required:
|
||||
- claimState
|
||||
- state
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
|
@ -0,0 +1,144 @@
|
|||
|
||||
---
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.5.0
|
||||
creationTimestamp: null
|
||||
name: blockdeviceclaims.openebs.io
|
||||
spec:
|
||||
group: openebs.io
|
||||
names:
|
||||
kind: BlockDeviceClaim
|
||||
listKind: BlockDeviceClaimList
|
||||
plural: blockdeviceclaims
|
||||
shortNames:
|
||||
- bdc
|
||||
singular: blockdeviceclaim
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- jsonPath: .spec.blockDeviceName
|
||||
name: BlockDeviceName
|
||||
type: string
|
||||
- jsonPath: .status.phase
|
||||
name: Phase
|
||||
type: string
|
||||
- jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: BlockDeviceClaim is the Schema for the blockdeviceclaims API
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: DeviceClaimSpec defines the request details for a BlockDevice
|
||||
properties:
|
||||
blockDeviceName:
|
||||
description: BlockDeviceName is the reference to the block-device backing this claim
|
||||
type: string
|
||||
blockDeviceNodeAttributes:
|
||||
description: BlockDeviceNodeAttributes is the attributes on the node from which a BD should be selected for this claim. It can include nodename, failure domain etc.
|
||||
properties:
|
||||
hostName:
|
||||
description: HostName represents the hostname of the Kubernetes node resource where the BD should be present
|
||||
type: string
|
||||
nodeName:
|
||||
description: NodeName represents the name of the Kubernetes node resource where the BD should be present
|
||||
type: string
|
||||
type: object
|
||||
deviceClaimDetails:
|
||||
description: Details of the device to be claimed
|
||||
properties:
|
||||
allowPartition:
|
||||
description: AllowPartition represents whether to claim a full block device or a device that is a partition
|
||||
type: boolean
|
||||
blockVolumeMode:
|
||||
description: 'BlockVolumeMode represents whether to claim a device in Block mode or Filesystem mode. These are use cases of BlockVolumeMode: 1) Not specified: VolumeMode check will not be effective 2) VolumeModeBlock: BD should not have any filesystem or mountpoint 3) VolumeModeFileSystem: BD should have a filesystem and mountpoint. If DeviceFormat is specified then the format should match with the FSType in BD'
|
||||
type: string
|
||||
formatType:
|
||||
description: Format of the device required, eg:ext4, xfs
|
||||
type: string
|
||||
type: object
|
||||
deviceType:
|
||||
description: DeviceType represents the type of drive like SSD, HDD etc.,
|
||||
nullable: true
|
||||
type: string
|
||||
hostName:
|
||||
description: Node name from where blockdevice has to be claimed. To be deprecated. Use NodeAttributes.HostName instead
|
||||
type: string
|
||||
resources:
|
||||
description: Resources will help with placing claims on Capacity, IOPS
|
||||
properties:
|
||||
requests:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Requests describes the minimum resources required. eg: if storage resource of 10G is requested minimum capacity of 10G should be available TODO for validating'
|
||||
type: object
|
||||
required:
|
||||
- requests
|
||||
type: object
|
||||
selector:
|
||||
description: Selector is used to find block devices to be considered for claiming
|
||||
properties:
|
||||
matchExpressions:
|
||||
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
|
||||
items:
|
||||
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
|
||||
properties:
|
||||
key:
|
||||
description: key is the label key that the selector applies to.
|
||||
type: string
|
||||
operator:
|
||||
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
|
||||
type: string
|
||||
values:
|
||||
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
required:
|
||||
- key
|
||||
- operator
|
||||
type: object
|
||||
type: array
|
||||
matchLabels:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
|
||||
type: object
|
||||
type: object
|
||||
type: object
|
||||
status:
|
||||
description: DeviceClaimStatus defines the observed state of BlockDeviceClaim
|
||||
properties:
|
||||
phase:
|
||||
description: Phase represents the current phase of the claim
|
||||
type: string
|
||||
required:
|
||||
- phase
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
|
@ -0,0 +1,8 @@
|
|||
The OpenEBS Node Disk Manager has been installed. Check its status by running:
|
||||
$ kubectl get pods -n {{ .Release.Namespace }}
|
||||
|
||||
Use `kubectl get bd -n {{ .Release.Namespace }} ` to see the list of
|
||||
blockdevices attached to the Kubernetes cluster nodes.
|
||||
|
||||
For more information, visit our Slack at https://openebs.io/community or view
|
||||
the documentation online at http://docs.openebs.io/.
|
|
@ -0,0 +1,132 @@
|
|||
{{/* vim: set filetype=mustache: */}}
|
||||
{{/*
|
||||
Expand the name of the chart.
|
||||
This name is used for ndm daemonset
|
||||
*/}}
|
||||
{{- define "openebs-ndm.name" -}}
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create chart name and version as used by the chart label.
|
||||
*/}}
|
||||
{{- define "openebs-ndm.chart" -}}
|
||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create a default fully qualified ndm daemonset app name.
|
||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||
If release name contains chart name it will be used as a full name.
|
||||
*/}}
|
||||
{{- define "openebs-ndm.fullname" -}}
|
||||
{{- if .Values.fullnameOverride }}
|
||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||
{{- if contains .Release.Name $name }}
|
||||
{{- $name | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- define "openebs-ndm.operator.name" -}}
|
||||
{{- $ndmName := default .Chart.Name .Values.ndmOperator.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- $componentName := .Values.ndmOperator.name | trunc 63 | trimSuffix "-" }}
|
||||
{{- printf "%s-%s" $ndmName $componentName | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create a default fully qualified ndm operator app name.
|
||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||
If release name contains chart name it will be used as a full name.
|
||||
*/}}
|
||||
{{- define "openebs-ndm.operator.fullname" -}}
|
||||
{{- if .Values.ndmOperator.fullnameOverride }}
|
||||
{{- .Values.ndmOperator.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- $ndmOperatorName := include "openebs-ndm.operator.name" .}}
|
||||
|
||||
{{- $name := default $ndmOperatorName .Values.ndmOperator.nameOverride }}
|
||||
{{- if contains .Release.Name $name }}
|
||||
{{- $name | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create the name of the service account to use
|
||||
*/}}
|
||||
{{- define "openebs-ndm.serviceAccountName" -}}
|
||||
{{- if .Values.serviceAccount.create }}
|
||||
{{- default (include "openebs-ndm.fullname" .) .Values.serviceAccount.name }}
|
||||
{{- else }}
|
||||
{{- default "default" .Values.serviceAccount.name }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Define meta labels for ndm components
|
||||
*/}}
|
||||
{{- define "openebs-ndm.common.metaLabels" -}}
|
||||
chart: {{ template "openebs-ndm.chart" . }}
|
||||
heritage: {{ .Release.Service }}
|
||||
openebs.io/version: {{ .Values.release.version | quote }}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
{{/*
|
||||
Create match labels for ndm daemonset component
|
||||
*/}}
|
||||
{{- define "openebs-ndm.matchLabels" -}}
|
||||
app: {{ template "openebs-ndm.name" . }}
|
||||
release: {{ .Release.Name }}
|
||||
component: {{ .Values.ndm.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create component labels for ndm daemonset component
|
||||
*/}}
|
||||
{{- define "openebs-ndm.componentLabels" -}}
|
||||
openebs.io/component-name: {{ .Values.ndm.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
{{/*
|
||||
Create labels for ndm daemonset component
|
||||
*/}}
|
||||
{{- define "openebs-ndm.labels" -}}
|
||||
{{ include "openebs-ndm.common.metaLabels" . }}
|
||||
{{ include "openebs-ndm.matchLabels" . }}
|
||||
{{ include "openebs-ndm.componentLabels" . }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create match labels for ndm operator deployment
|
||||
*/}}
|
||||
{{- define "openebs-ndm.operator.matchLabels" -}}
|
||||
app: {{ template "openebs-ndm.operator.name" . }}
|
||||
release: {{ .Release.Name }}
|
||||
component: {{ default (include "openebs-ndm.operator.name" .) .Values.ndmOperator.componentName }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create component labels for ndm operator component
|
||||
*/}}
|
||||
{{- define "openebs-ndm.operator.componentLabels" -}}
|
||||
openebs.io/component-name: {{ default (include "openebs-ndm.operator.name" .) .Values.ndmOperator.componentName }}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
{{/*
|
||||
Create labels for ndm operator component
|
||||
*/}}
|
||||
{{- define "openebs-ndm.operator.labels" -}}
|
||||
{{ include "openebs-ndm.common.metaLabels" . }}
|
||||
{{ include "openebs-ndm.operator.matchLabels" . }}
|
||||
{{ include "openebs-ndm.operator.componentLabels" . }}
|
||||
{{- end -}}
|
|
@ -0,0 +1,38 @@
|
|||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ include "openebs-ndm.fullname" . }}-config
|
||||
data:
|
||||
# node-disk-manager-config contains config of available probes and filters.
|
||||
# Probes and Filters will initialize with default values if config for that
|
||||
# filter or probe are not present in configmap
|
||||
|
||||
# udev-probe is default or primary probe it should be enabled to run ndm
|
||||
# filterconfigs contains configs of filters. To provide a group of include
|
||||
# and exclude values add it as , separated string
|
||||
node-disk-manager.config: |
|
||||
probeconfigs:
|
||||
- key: udev-probe
|
||||
name: udev probe
|
||||
state: {{ .Values.ndm.probes.enableUdevProbe }}
|
||||
- key: seachest-probe
|
||||
name: seachest probe
|
||||
state: {{ .Values.ndm.probes.enableSeachest }}
|
||||
- key: smart-probe
|
||||
name: smart probe
|
||||
state: {{ .Values.ndm.probes.enableSmartProbe }}
|
||||
filterconfigs:
|
||||
- key: os-disk-exclude-filter
|
||||
name: os disk exclude filter
|
||||
state: {{ .Values.ndm.filters.enableOsDiskExcludeFilter }}
|
||||
exclude: "{{ .Values.ndm.filters.osDiskExcludePaths }}"
|
||||
- key: vendor-filter
|
||||
name: vendor filter
|
||||
state: {{ .Values.ndm.filters.enableVendorFilter }}
|
||||
include: ""
|
||||
exclude: "{{ .Values.ndm.filters.excludeVendors }}"
|
||||
- key: path-filter
|
||||
name: path filter
|
||||
state: {{ .Values.ndm.filters.enablePathFilter }}
|
||||
include: "{{ .Values.ndm.filters.includePaths }}"
|
||||
exclude: "{{ .Values.ndm.filters.excludePaths }}"
|
|
@ -0,0 +1,176 @@
|
|||
{{- if .Values.ndm.enabled }}
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
name: {{ template "openebs-ndm.fullname" . }}
|
||||
{{- with .Values.ndm.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "openebs-ndm.labels" . | nindent 4 }}
|
||||
spec:
|
||||
updateStrategy:
|
||||
{{ toYaml .Values.ndm.updateStrategy | indent 4 }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "openebs-ndm.matchLabels" . | nindent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
{{- with .Values.ndm.podAnnotations }}
|
||||
annotations: {{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "openebs-ndm.labels" . | nindent 8 }}
|
||||
{{- with .Values.ndm.podLabels}}
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end}}
|
||||
spec:
|
||||
serviceAccountName: {{ template "openebs-ndm.serviceAccountName" . }}
|
||||
{{- if .Values.featureGates.enabled }}
|
||||
{{- if .Values.featureGates.APIService.enabled }}
|
||||
hostPID: true
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
containers:
|
||||
- name: {{ template "openebs-ndm.name" . }}
|
||||
image: "{{ .Values.ndm.image.registry }}{{ .Values.ndm.image.repository }}:{{ .Values.ndm.image.tag }}"
|
||||
args:
|
||||
- -v=4
|
||||
{{- if .Values.featureGates.enabled }}
|
||||
{{- if .Values.featureGates.GPTBasedUUID.enabled }}
|
||||
- --feature-gates={{ .Values.featureGates.GPTBasedUUID.featureGateFlag }}
|
||||
{{- end}}
|
||||
{{- if .Values.featureGates.APIService.enabled }}
|
||||
- --feature-gates={{ .Values.featureGates.APIService.featureGateFlag }}
|
||||
- --api-service-address={{ .Values.featureGates.APIService.address }}
|
||||
{{- end}}
|
||||
{{- if .Values.featureGates.UseOSDisk.enabled }}
|
||||
- --feature-gates={{ .Values.featureGates.UseOSDisk.featureGateFlag }}
|
||||
{{- end}}
|
||||
{{- if .Values.featureGates.MountChangeDetection.enabled }}
|
||||
- --feature-gates={{ .Values.featureGates.MountChangeDetection.featureGateFlag }}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
imagePullPolicy: {{ .Values.ndm.image.pullPolicy }}
|
||||
resources:
|
||||
{{ toYaml .Values.ndm.resources | indent 12 }}
|
||||
securityContext:
|
||||
privileged: true
|
||||
env:
|
||||
# namespace in which NDM is installed will be passed to NDM Daemonset
|
||||
# as environment variable
|
||||
- name: NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
# pass hostname as env variable using downward API to the NDM container
|
||||
- name: NODE_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
{{- if .Values.ndm.sparse }}
|
||||
{{- if .Values.ndm.sparse.path }}
|
||||
# specify the directory where the sparse files need to be created.
|
||||
# if not specified, then sparse files will not be created.
|
||||
- name: SPARSE_FILE_DIR
|
||||
value: "{{ .Values.ndm.sparse.path }}"
|
||||
{{- end }}
|
||||
{{- if .Values.ndm.sparse.size }}
|
||||
# Size(bytes) of the sparse file to be created.
|
||||
- name: SPARSE_FILE_SIZE
|
||||
value: "{{ .Values.ndm.sparse.size }}"
|
||||
{{- end }}
|
||||
{{- if .Values.ndm.sparse.count }}
|
||||
# Specify the number of sparse files to be created
|
||||
- name: SPARSE_FILE_COUNT
|
||||
value: "{{ .Values.ndm.sparse.count }}"
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
# Process name used for matching is limited to the 15 characters
|
||||
# present in the pgrep output.
|
||||
# So fullname can be used here with pgrep (cmd is < 15 chars).
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- pgrep
|
||||
- "ndm"
|
||||
initialDelaySeconds: {{ .Values.ndm.healthCheck.initialDelaySeconds }}
|
||||
periodSeconds: {{ .Values.ndm.healthCheck.periodSeconds }}
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /host/node-disk-manager.config
|
||||
subPath: node-disk-manager.config
|
||||
readOnly: true
|
||||
- name: udev
|
||||
mountPath: /run/udev
|
||||
- name: procmount
|
||||
mountPath: /host/proc
|
||||
readOnly: true
|
||||
- name: devmount
|
||||
mountPath: /dev
|
||||
- name: basepath
|
||||
mountPath: /var/openebs/ndm
|
||||
{{- if .Values.ndm.sparse }}
|
||||
{{- if .Values.ndm.sparse.path }}
|
||||
- name: sparsepath
|
||||
mountPath: {{ .Values.ndm.sparse.path }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
volumes:
|
||||
- name: config
|
||||
configMap:
|
||||
name: {{ include "openebs-ndm.fullname" . }}-config
|
||||
- name: udev
|
||||
hostPath:
|
||||
path: /run/udev
|
||||
type: Directory
|
||||
# mount /proc (to access mount file of process 1 of host) inside container
|
||||
# to read mount-point of disks and partitions
|
||||
- name: procmount
|
||||
hostPath:
|
||||
path: /proc
|
||||
type: Directory
|
||||
- name: devmount
|
||||
# the /dev directory is mounted so that we have access to the devices that
|
||||
# are connected at runtime of the pod.
|
||||
hostPath:
|
||||
path: /dev
|
||||
type: Directory
|
||||
- name: basepath
|
||||
hostPath:
|
||||
path: "{{ .Values.varDirectoryPath.baseDir }}/ndm"
|
||||
type: DirectoryOrCreate
|
||||
{{- if .Values.ndm.sparse }}
|
||||
{{- if .Values.ndm.sparse.path }}
|
||||
- name: sparsepath
|
||||
hostPath:
|
||||
path: {{ .Values.ndm.sparse.path }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
# By default the node-disk-manager will be run on all kubernetes nodes
|
||||
# If you would like to limit this to only some nodes, say the nodes
|
||||
# that have storage attached, you could label those node and use
|
||||
# nodeSelector.
|
||||
#
|
||||
# e.g. label the storage nodes with - "openebs.io/nodegroup"="storage-node"
|
||||
# kubectl label node <node-name> "openebs.io/nodegroup"="storage-node"
|
||||
#nodeSelector:
|
||||
# "openebs.io/nodegroup": "storage-node"
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 6 }}
|
||||
{{- end }}
|
||||
{{- if .Values.ndm.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.ndm.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.ndm.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml .Values.ndm.tolerations | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.ndm.securityContext }}
|
||||
securityContext:
|
||||
{{ toYaml .Values.ndm.securityContext | indent 8 }}
|
||||
{{- end }}
|
||||
hostNetwork: true
|
||||
{{- end }}
|
|
@ -0,0 +1,87 @@
|
|||
{{- if .Values.ndmOperator.enabled }}
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ template "openebs-ndm.operator.fullname" . }}
|
||||
{{- with .Values.ndmOperator.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "openebs-ndm.operator.labels" . | nindent 4 }}
|
||||
spec:
|
||||
replicas: {{ .Values.ndmOperator.replicas }}
|
||||
strategy:
|
||||
type: "Recreate"
|
||||
rollingUpdate: null
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "openebs-ndm.operator.matchLabels" . | nindent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
{{- with .Values.ndmOperator.podAnnotations }}
|
||||
annotations: {{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "openebs-ndm.operator.labels" . | nindent 8 }}
|
||||
{{- with .Values.ndmOperator.podLabels}}
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end}}
|
||||
spec:
|
||||
serviceAccountName: {{ template "openebs-ndm.serviceAccountName" . }}
|
||||
containers:
|
||||
- name: {{ template "openebs-ndm.operator.fullname" . }}
|
||||
image: "{{ .Values.ndmOperator.image.registry }}{{ .Values.ndmOperator.image.repository }}:{{ .Values.ndmOperator.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.ndmOperator.image.pullPolicy }}
|
||||
resources:
|
||||
{{ toYaml .Values.ndmOperator.resources | indent 12 }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 8585
|
||||
initialDelaySeconds: {{ .Values.ndmOperator.healthCheck.initialDelaySeconds }}
|
||||
periodSeconds: {{ .Values.ndmOperator.healthCheck.periodSeconds }}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /readyz
|
||||
port: 8585
|
||||
initialDelaySeconds: {{ .Values.ndmOperator.readinessCheck.initialDelaySeconds }}
|
||||
periodSeconds: {{ .Values.ndmOperator.readinessCheck.periodSeconds }}
|
||||
env:
|
||||
- name: WATCH_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: POD_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.name
|
||||
- name: SERVICE_ACCOUNT
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.serviceAccountName
|
||||
- name: OPERATOR_NAME
|
||||
value: "node-disk-operator"
|
||||
- name: CLEANUP_JOB_IMAGE
|
||||
value: "{{ .Values.helperPod.image.registry }}{{ .Values.helperPod.image.repository }}:{{ .Values.helperPod.image.tag }}"
|
||||
{{- if .Values.imagePullSecrets }}
|
||||
- name: OPENEBS_IO_IMAGE_PULL_SECRETS
|
||||
value: "{{- range $index, $secret := .Values.imagePullSecrets}}{{if $index}},{{end}}{{ $secret.name }}{{- end}}"
|
||||
{{- end }}
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 6 }}
|
||||
{{- end }}
|
||||
{{- if .Values.ndmOperator.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.ndmOperator.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.ndmOperator.securityContext }}
|
||||
securityContext:
|
||||
{{ toYaml .Values.ndmOperator.securityContext | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.ndmOperator.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml .Values.ndmOperator.tolerations | indent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
|
@ -0,0 +1,44 @@
|
|||
{{- if .Values.serviceAccount.create -}}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ include "openebs-ndm.serviceAccountName" . }}
|
||||
{{- end }}
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: {{ include "openebs-ndm.fullname" . }}
|
||||
rules:
|
||||
- apiGroups: ["*"]
|
||||
resources: ["nodes", "pods", "events", "configmaps", "jobs"]
|
||||
verbs:
|
||||
- '*'
|
||||
- apiGroups: ["apiextensions.k8s.io"]
|
||||
resources: ["customresourcedefinitions"]
|
||||
verbs:
|
||||
- '*'
|
||||
- apiGroups:
|
||||
- openebs.io
|
||||
resources:
|
||||
- blockdevices
|
||||
- blockdeviceclaims
|
||||
verbs:
|
||||
- '*'
|
||||
---
|
||||
kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: {{ include "openebs-ndm.fullname" . }}
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ include "openebs-ndm.serviceAccountName" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
- kind: User
|
||||
name: system:serviceaccount:default:default
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: {{ include "openebs-ndm.fullname" . }}
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
|
@ -0,0 +1,121 @@
|
|||
# Default values for ndm.
|
||||
# This is a YAML-formatted file.
|
||||
# Declare variables to be passed into your templates.
|
||||
release:
|
||||
version: "1.6.0"
|
||||
|
||||
imagePullSecrets:
|
||||
# - name: "image-pull-secret"
|
||||
|
||||
ndm:
|
||||
componentName: ndm
|
||||
enabled: true
|
||||
image:
|
||||
# Make sure that registry name end with a '/'.
|
||||
# For example : quay.io/ is a correct value here and quay.io is incorrect
|
||||
registry:
|
||||
repository: openebs/node-disk-manager
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: 1.6.0
|
||||
sparse:
|
||||
path: "/var/openebs/sparse"
|
||||
size: "10737418240"
|
||||
count: "0"
|
||||
updateStrategy:
|
||||
type: RollingUpdate
|
||||
annotations: {}
|
||||
podAnnotations: {}
|
||||
resources: {}
|
||||
# limits:
|
||||
# cpu: 10m
|
||||
# memory: 32Mi
|
||||
# requests:
|
||||
# cpu: 10m
|
||||
# memory: 32Mi
|
||||
## Labels to be added to ndm daemonset pods
|
||||
podLabels:
|
||||
name: openebs-ndm
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
securityContext: {}
|
||||
filters:
|
||||
enableOsDiskExcludeFilter: true
|
||||
osDiskExcludePaths: "/,/etc/hosts,/boot"
|
||||
enableVendorFilter: true
|
||||
excludeVendors: "CLOUDBYT,OpenEBS"
|
||||
enablePathFilter: true
|
||||
includePaths: ""
|
||||
excludePaths: "loop,fd0,sr0,/dev/ram,/dev/dm-,/dev/md,/dev/rbd,/dev/zd"
|
||||
probes:
|
||||
enableSeachest: false
|
||||
enableUdevProbe: true
|
||||
enableSmartProbe: true
|
||||
healthCheck:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 60
|
||||
|
||||
ndmOperator:
|
||||
name: operator
|
||||
enabled: true
|
||||
image:
|
||||
registry:
|
||||
repository: openebs/node-disk-operator
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: 1.6.0
|
||||
podLabels:
|
||||
name: openebs-ndm-operator
|
||||
annotations: {}
|
||||
podAnnotations: {}
|
||||
nodeSelector: {}
|
||||
resources: {}
|
||||
securityContext: {}
|
||||
tolerations: []
|
||||
healthCheck:
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 20
|
||||
readinessCheck:
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
replicas: 1
|
||||
upgradeStrategy: Recreate
|
||||
|
||||
helperPod:
|
||||
image:
|
||||
registry: ""
|
||||
repository: openebs/linux-utils
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: 2.11.0
|
||||
|
||||
crd:
|
||||
enableInstall: false
|
||||
|
||||
featureGates:
|
||||
enabled: true
|
||||
GPTBasedUUID:
|
||||
enabled: true
|
||||
featureGateFlag: "GPTBasedUUID"
|
||||
APIService:
|
||||
enabled: false
|
||||
featureGateFlag: "APIService"
|
||||
address: "0.0.0.0:9115"
|
||||
UseOSDisk:
|
||||
enabled: false
|
||||
featureGateFlag: "UseOSDisk"
|
||||
MountChangeDetection:
|
||||
enabled: false
|
||||
featureGateFlag: "MountChangeDetection"
|
||||
|
||||
# Directory used by the OpenEBS to store debug information and so forth
|
||||
# that are generated in the course of running OpenEBS containers.
|
||||
varDirectoryPath:
|
||||
baseDir: "/var/openebs"
|
||||
|
||||
serviceAccount:
|
||||
# Specifies whether a service account should be created
|
||||
create: true
|
||||
# The name of the service account to use.
|
||||
# If not set and create is true, a name is generated using the fullname template
|
||||
name: openebs-ndm
|
|
@ -0,0 +1,93 @@
|
|||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.0
|
||||
creationTimestamp: null
|
||||
name: cstorbackups.cstor.openebs.io
|
||||
spec:
|
||||
group: cstor.openebs.io
|
||||
names:
|
||||
kind: CStorBackup
|
||||
listKind: CStorBackupList
|
||||
plural: cstorbackups
|
||||
shortNames:
|
||||
- cbackup
|
||||
singular: cstorbackup
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- description: Name of the volume for which this backup is destined
|
||||
jsonPath: .spec.volumeName
|
||||
name: Volume
|
||||
type: string
|
||||
- description: Name of the backup or scheduled backup
|
||||
jsonPath: .spec.backupName
|
||||
name: Backup/Schedule
|
||||
type: string
|
||||
- description: Identifies the phase of the backup
|
||||
jsonPath: .status
|
||||
name: Status
|
||||
type: string
|
||||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: CStorBackup describes a cstor backup resource created as a custom
|
||||
resource
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation
|
||||
of an object. Servers should convert recognized schemas to the latest
|
||||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this
|
||||
object represents. Servers may infer this from the endpoint the client
|
||||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: CStorBackupSpec is the spec for a CStorBackup resource
|
||||
properties:
|
||||
backupDest:
|
||||
description: BackupDest is the remote address for backup transfer
|
||||
type: string
|
||||
backupName:
|
||||
description: BackupName is the name of the backup or scheduled backup
|
||||
type: string
|
||||
localSnap:
|
||||
description: LocalSnap is the flag to enable local snapshot only
|
||||
type: boolean
|
||||
prevSnapName:
|
||||
description: PrevSnapName is the last completed-backup's snapshot
|
||||
name
|
||||
type: string
|
||||
snapName:
|
||||
description: SnapName is the name of the current backup snapshot
|
||||
type: string
|
||||
volumeName:
|
||||
description: VolumeName is the name of the volume for which this backup
|
||||
is destined
|
||||
type: string
|
||||
required:
|
||||
- backupName
|
||||
- snapName
|
||||
- volumeName
|
||||
type: object
|
||||
status:
|
||||
description: CStorBackupStatus is a string type that represents the status
|
||||
of the backup
|
||||
type: string
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
|
@ -0,0 +1,80 @@
|
|||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.0
|
||||
creationTimestamp: null
|
||||
name: cstorcompletedbackups.cstor.openebs.io
|
||||
spec:
|
||||
group: cstor.openebs.io
|
||||
names:
|
||||
kind: CStorCompletedBackup
|
||||
listKind: CStorCompletedBackupList
|
||||
plural: cstorcompletedbackups
|
||||
shortNames:
|
||||
- ccompletedbackup
|
||||
singular: cstorcompletedbackup
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- description: Volume name on which backup is performed
|
||||
jsonPath: .spec.volumeName
|
||||
name: Volume
|
||||
type: string
|
||||
- description: Name of the backup or scheduled backup
|
||||
jsonPath: .spec.backupName
|
||||
name: Backup/Schedule
|
||||
type: string
|
||||
- description: Last successfully backup snapshot
|
||||
jsonPath: .spec.lastSnapName
|
||||
name: LastSnap
|
||||
type: string
|
||||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: CStorCompletedBackup describes a cstor completed-backup resource
|
||||
created as custom resource
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation
|
||||
of an object. Servers should convert recognized schemas to the latest
|
||||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this
|
||||
object represents. Servers may infer this from the endpoint the client
|
||||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: CStorCompletedBackupSpec is the spec for a CStorBackup resource
|
||||
properties:
|
||||
backupName:
|
||||
description: BackupName is the name of backup or scheduled backup
|
||||
type: string
|
||||
lastSnapName:
|
||||
description: LastSnapName is the name of last completed-backup's snapshot
|
||||
name
|
||||
type: string
|
||||
secondLastSnapName:
|
||||
description: SecondLastSnapName is the name of second last 'successfully'
|
||||
completed-backup's snapshot
|
||||
type: string
|
||||
volumeName:
|
||||
description: VolumeName is the name of volume for which this backup
|
||||
is destined
|
||||
type: string
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
|
@ -0,0 +1,491 @@
|
|||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.0
|
||||
creationTimestamp: null
|
||||
name: cstorpoolclusters.cstor.openebs.io
|
||||
spec:
|
||||
group: cstor.openebs.io
|
||||
names:
|
||||
kind: CStorPoolCluster
|
||||
listKind: CStorPoolClusterList
|
||||
plural: cstorpoolclusters
|
||||
shortNames:
|
||||
- cspc
|
||||
singular: cstorpoolcluster
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- description: The number of healthy cStorPoolInstances
|
||||
jsonPath: .status.healthyInstances
|
||||
name: HealthyInstances
|
||||
type: integer
|
||||
- description: The number of provisioned cStorPoolInstances
|
||||
jsonPath: .status.provisionedInstances
|
||||
name: ProvisionedInstances
|
||||
type: integer
|
||||
- description: The number of desired cStorPoolInstances
|
||||
jsonPath: .status.desiredInstances
|
||||
name: DesiredInstances
|
||||
type: integer
|
||||
- description: Age of CStorPoolCluster
|
||||
jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: CStorPoolCluster describes a CStorPoolCluster custom resource.
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation
|
||||
of an object. Servers should convert recognized schemas to the latest
|
||||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this
|
||||
object represents. Servers may infer this from the endpoint the client
|
||||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: CStorPoolClusterSpec is the spec for a CStorPoolClusterSpec
|
||||
resource
|
||||
properties:
|
||||
auxResources:
|
||||
description: AuxResources are the compute resources required by the
|
||||
cstor-pool pod side car containers.
|
||||
nullable: true
|
||||
properties:
|
||||
limits:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Limits describes the maximum amount of compute resources
|
||||
allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
|
||||
type: object
|
||||
requests:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Requests describes the minimum amount of compute
|
||||
resources required. If Requests is omitted for a container,
|
||||
it defaults to Limits if that is explicitly specified, otherwise
|
||||
to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
|
||||
type: object
|
||||
type: object
|
||||
pools:
|
||||
description: Pools is the spec for pools for various nodes where it
|
||||
should be created.
|
||||
items:
|
||||
description: PoolSpec is the spec for pool on node where it should
|
||||
be created.
|
||||
properties:
|
||||
dataRaidGroups:
|
||||
description: DataRaidGroups is the raid group configuration
|
||||
for the given pool.
|
||||
items:
|
||||
description: RaidGroup contains the details of a raid group
|
||||
for the pool
|
||||
properties:
|
||||
blockDevices:
|
||||
items:
|
||||
description: CStorPoolInstanceBlockDevice contains the
|
||||
details of block devices that constitutes a raid group.
|
||||
properties:
|
||||
blockDeviceName:
|
||||
description: BlockDeviceName is the name of the
|
||||
block device.
|
||||
type: string
|
||||
capacity:
|
||||
description: Capacity is the capacity of the block
|
||||
device. It is system generated
|
||||
format: int64
|
||||
type: integer
|
||||
devLink:
|
||||
description: DevLink is the dev link for block devices
|
||||
type: string
|
||||
required:
|
||||
- blockDeviceName
|
||||
type: object
|
||||
type: array
|
||||
required:
|
||||
- blockDevices
|
||||
type: object
|
||||
type: array
|
||||
nodeSelector:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: NodeSelector is the labels that will be used to
|
||||
select a node for pool provisioning. Required field
|
||||
type: object
|
||||
poolConfig:
|
||||
description: PoolConfig is the default pool config that applies
|
||||
to the pool on node.
|
||||
properties:
|
||||
auxResources:
|
||||
description: AuxResources are the compute resources required
|
||||
by the cstor-pool pod side car containers.
|
||||
nullable: true
|
||||
properties:
|
||||
limits:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Limits describes the maximum amount of
|
||||
compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
|
||||
type: object
|
||||
requests:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Requests describes the minimum amount
|
||||
of compute resources required. If Requests is omitted
|
||||
for a container, it defaults to Limits if that is
|
||||
explicitly specified, otherwise to an implementation-defined
|
||||
value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
|
||||
type: object
|
||||
type: object
|
||||
compression:
|
||||
description: 'Compression to enable compression Optional
|
||||
-- defaults to off Possible values : lz, off'
|
||||
type: string
|
||||
dataRaidGroupType:
|
||||
description: DataRaidGroupType is the raid type.
|
||||
type: string
|
||||
priorityClassName:
|
||||
description: PriorityClassName if specified applies to this
|
||||
pool pod If left empty, DefaultPriorityClassName is applied.
|
||||
(See CStorPoolClusterSpec.DefaultPriorityClassName) If
|
||||
both are empty, not priority class is applied.
|
||||
nullable: true
|
||||
type: string
|
||||
resources:
|
||||
description: Resources are the compute resources required
|
||||
by the cstor-pool container.
|
||||
nullable: true
|
||||
properties:
|
||||
limits:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Limits describes the maximum amount of
|
||||
compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
|
||||
type: object
|
||||
requests:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Requests describes the minimum amount
|
||||
of compute resources required. If Requests is omitted
|
||||
for a container, it defaults to Limits if that is
|
||||
explicitly specified, otherwise to an implementation-defined
|
||||
value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
|
||||
type: object
|
||||
type: object
|
||||
roThresholdLimit:
|
||||
description: 'ROThresholdLimit is threshold(percentage base)
|
||||
limit for pool read only mode. If ROThresholdLimit(%)
|
||||
amount of pool storage is reached then pool will set to
|
||||
readonly. NOTE: 1. If ROThresholdLimit is set to 100 then
|
||||
entire pool storage will be used by default it will
|
||||
be set to 85%. 2. ROThresholdLimit value will be 0 <=
|
||||
ROThresholdLimit <= 100.'
|
||||
nullable: true
|
||||
type: integer
|
||||
thickProvision:
|
||||
description: ThickProvision to enable thick provisioning
|
||||
Optional -- defaults to false
|
||||
type: boolean
|
||||
tolerations:
|
||||
description: Tolerations, if specified, the pool pod's tolerations.
|
||||
items:
|
||||
description: The pod this Toleration is attached to tolerates
|
||||
any taint that matches the triple <key,value,effect>
|
||||
using the matching operator <operator>.
|
||||
properties:
|
||||
effect:
|
||||
description: Effect indicates the taint effect to
|
||||
match. Empty means match all taint effects. When
|
||||
specified, allowed values are NoSchedule, PreferNoSchedule
|
||||
and NoExecute.
|
||||
type: string
|
||||
key:
|
||||
description: Key is the taint key that the toleration
|
||||
applies to. Empty means match all taint keys. If
|
||||
the key is empty, operator must be Exists; this
|
||||
combination means to match all values and all keys.
|
||||
type: string
|
||||
operator:
|
||||
description: Operator represents a key's relationship
|
||||
to the value. Valid operators are Exists and Equal.
|
||||
Defaults to Equal. Exists is equivalent to wildcard
|
||||
for value, so that a pod can tolerate all taints
|
||||
of a particular category.
|
||||
type: string
|
||||
tolerationSeconds:
|
||||
description: TolerationSeconds represents the period
|
||||
of time the toleration (which must be of effect
|
||||
NoExecute, otherwise this field is ignored) tolerates
|
||||
the taint. By default, it is not set, which means
|
||||
tolerate the taint forever (do not evict). Zero
|
||||
and negative values will be treated as 0 (evict
|
||||
immediately) by the system.
|
||||
format: int64
|
||||
type: integer
|
||||
value:
|
||||
description: Value is the taint value the toleration
|
||||
matches to. If the operator is Exists, the value
|
||||
should be empty, otherwise just a regular string.
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
writeCacheGroupType:
|
||||
description: WriteCacheGroupType is the write cache raid
|
||||
type.
|
||||
type: string
|
||||
required:
|
||||
- dataRaidGroupType
|
||||
type: object
|
||||
writeCacheRaidGroups:
|
||||
description: WriteCacheRaidGroups is the write cache raid group.
|
||||
items:
|
||||
description: RaidGroup contains the details of a raid group
|
||||
for the pool
|
||||
properties:
|
||||
blockDevices:
|
||||
items:
|
||||
description: CStorPoolInstanceBlockDevice contains the
|
||||
details of block devices that constitutes a raid group.
|
||||
properties:
|
||||
blockDeviceName:
|
||||
description: BlockDeviceName is the name of the
|
||||
block device.
|
||||
type: string
|
||||
capacity:
|
||||
description: Capacity is the capacity of the block
|
||||
device. It is system generated
|
||||
format: int64
|
||||
type: integer
|
||||
devLink:
|
||||
description: DevLink is the dev link for block devices
|
||||
type: string
|
||||
required:
|
||||
- blockDeviceName
|
||||
type: object
|
||||
type: array
|
||||
required:
|
||||
- blockDevices
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
required:
|
||||
- dataRaidGroups
|
||||
- nodeSelector
|
||||
type: object
|
||||
type: array
|
||||
priorityClassName:
|
||||
description: DefaultPriorityClassName if specified applies to all
|
||||
the pool pods in the pool spec if the priorityClass at the pool
|
||||
level is not specified.
|
||||
type: string
|
||||
resources:
|
||||
description: DefaultResources are the compute resources required by
|
||||
the cstor-pool container. If the resources at PoolConfig is not
|
||||
specified, this is written to CSPI PoolConfig.
|
||||
nullable: true
|
||||
properties:
|
||||
limits:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Limits describes the maximum amount of compute resources
|
||||
allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
|
||||
type: object
|
||||
requests:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Requests describes the minimum amount of compute
|
||||
resources required. If Requests is omitted for a container,
|
||||
it defaults to Limits if that is explicitly specified, otherwise
|
||||
to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
|
||||
type: object
|
||||
type: object
|
||||
tolerations:
|
||||
description: Tolerations, if specified, are the pool pod's tolerations
|
||||
If tolerations at PoolConfig is empty, this is written to CSPI PoolConfig.
|
||||
items:
|
||||
description: The pod this Toleration is attached to tolerates any
|
||||
taint that matches the triple <key,value,effect> using the matching
|
||||
operator <operator>.
|
||||
properties:
|
||||
effect:
|
||||
description: Effect indicates the taint effect to match. Empty
|
||||
means match all taint effects. When specified, allowed values
|
||||
are NoSchedule, PreferNoSchedule and NoExecute.
|
||||
type: string
|
||||
key:
|
||||
description: Key is the taint key that the toleration applies
|
||||
to. Empty means match all taint keys. If the key is empty,
|
||||
operator must be Exists; this combination means to match all
|
||||
values and all keys.
|
||||
type: string
|
||||
operator:
|
||||
description: Operator represents a key's relationship to the
|
||||
value. Valid operators are Exists and Equal. Defaults to Equal.
|
||||
Exists is equivalent to wildcard for value, so that a pod
|
||||
can tolerate all taints of a particular category.
|
||||
type: string
|
||||
tolerationSeconds:
|
||||
description: TolerationSeconds represents the period of time
|
||||
the toleration (which must be of effect NoExecute, otherwise
|
||||
this field is ignored) tolerates the taint. By default, it
|
||||
is not set, which means tolerate the taint forever (do not
|
||||
evict). Zero and negative values will be treated as 0 (evict
|
||||
immediately) by the system.
|
||||
format: int64
|
||||
type: integer
|
||||
value:
|
||||
description: Value is the taint value the toleration matches
|
||||
to. If the operator is Exists, the value should be empty,
|
||||
otherwise just a regular string.
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
status:
|
||||
description: CStorPoolClusterStatus represents the latest available observations
|
||||
of a CSPC's current state.
|
||||
properties:
|
||||
conditions:
|
||||
description: Current state of CSPC.
|
||||
items:
|
||||
description: CStorPoolClusterCondition describes the state of a
|
||||
CSPC at a certain point.
|
||||
properties:
|
||||
lastTransitionTime:
|
||||
description: Last time the condition transitioned from one status
|
||||
to another.
|
||||
format: date-time
|
||||
type: string
|
||||
lastUpdateTime:
|
||||
description: The last time this condition was updated.
|
||||
format: date-time
|
||||
type: string
|
||||
message:
|
||||
description: A human readable message indicating details about
|
||||
the transition.
|
||||
type: string
|
||||
reason:
|
||||
description: The reason for the condition's last transition.
|
||||
type: string
|
||||
status:
|
||||
description: Status of the condition, one of True, False, Unknown.
|
||||
type: string
|
||||
type:
|
||||
description: Type of CSPC condition.
|
||||
type: string
|
||||
required:
|
||||
- status
|
||||
- type
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
desiredInstances:
|
||||
description: DesiredInstances is the number of CSPI(s) that should
|
||||
be provisioned.
|
||||
format: int32
|
||||
nullable: true
|
||||
type: integer
|
||||
healthyInstances:
|
||||
description: HealthyInstances is the number of CSPI(s) that are healthy.
|
||||
format: int32
|
||||
nullable: true
|
||||
type: integer
|
||||
provisionedInstances:
|
||||
description: ProvisionedInstances is the the number of CSPI present
|
||||
at the current state.
|
||||
format: int32
|
||||
nullable: true
|
||||
type: integer
|
||||
type: object
|
||||
versionDetails:
|
||||
description: VersionDetails provides the details for upgrade
|
||||
properties:
|
||||
autoUpgrade:
|
||||
description: If AutoUpgrade is set to true then the resource is upgraded
|
||||
automatically without any manual steps
|
||||
type: boolean
|
||||
desired:
|
||||
description: Desired is the version that we want to upgrade or the
|
||||
control plane version
|
||||
type: string
|
||||
status:
|
||||
description: Status gives the status of reconciliation triggered when
|
||||
the desired and current version are not same
|
||||
properties:
|
||||
current:
|
||||
description: Current is the version of resource
|
||||
type: string
|
||||
dependentsUpgraded:
|
||||
description: DependentsUpgraded gives the details whether all
|
||||
children of a resource are upgraded to desired version or not
|
||||
type: boolean
|
||||
lastUpdateTime:
|
||||
description: LastUpdateTime is the time the status was last updated
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
message:
|
||||
description: Message is a human readable message if some error
|
||||
occurs
|
||||
type: string
|
||||
reason:
|
||||
description: Reason is the actual reason for the error state
|
||||
type: string
|
||||
state:
|
||||
description: State is the state of reconciliation
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
|
@ -0,0 +1,455 @@
|
|||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.0
|
||||
creationTimestamp: null
|
||||
name: cstorpoolinstances.cstor.openebs.io
|
||||
spec:
|
||||
group: cstor.openebs.io
|
||||
names:
|
||||
kind: CStorPoolInstance
|
||||
listKind: CStorPoolInstanceList
|
||||
plural: cstorpoolinstances
|
||||
shortNames:
|
||||
- cspi
|
||||
singular: cstorpoolinstance
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- description: Host name where cstorpool instances scheduled
|
||||
jsonPath: .spec.hostName
|
||||
name: HostName
|
||||
type: string
|
||||
- description: The amount of storage space within the pool that has been physically
|
||||
allocated
|
||||
jsonPath: .status.capacity.used
|
||||
name: Allocated
|
||||
priority: 1
|
||||
type: string
|
||||
- description: The amount of usable free space available in the pool
|
||||
jsonPath: .status.capacity.free
|
||||
name: Free
|
||||
type: string
|
||||
- description: Total amount of usable space in pool
|
||||
jsonPath: .status.capacity.total
|
||||
name: Capacity
|
||||
type: string
|
||||
- description: Identifies the pool read only mode
|
||||
jsonPath: .status.readOnly
|
||||
name: ReadOnly
|
||||
type: boolean
|
||||
- description: Represents no.of replicas present in the pool
|
||||
jsonPath: .status.provisionedReplicas
|
||||
name: ProvisionedReplicas
|
||||
type: integer
|
||||
- description: Represents no.of healthy replicas present in the pool
|
||||
jsonPath: .status.healthyReplicas
|
||||
name: HealthyReplicas
|
||||
type: integer
|
||||
- description: Represents the type of the storage pool
|
||||
jsonPath: .spec.poolConfig.dataRaidGroupType
|
||||
name: Type
|
||||
priority: 1
|
||||
type: string
|
||||
- description: Identifies the current health of the pool
|
||||
jsonPath: .status.phase
|
||||
name: Status
|
||||
type: string
|
||||
- description: Age of CStorPoolInstance
|
||||
jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: CStorPoolInstance describes a cstor pool instance resource.
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation
|
||||
of an object. Servers should convert recognized schemas to the latest
|
||||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this
|
||||
object represents. Servers may infer this from the endpoint the client
|
||||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: Spec is the specification of the cstorpoolinstance resource.
|
||||
properties:
|
||||
dataRaidGroups:
|
||||
description: DataRaidGroups is the raid group configuration for the
|
||||
given pool.
|
||||
items:
|
||||
description: RaidGroup contains the details of a raid group for
|
||||
the pool
|
||||
properties:
|
||||
blockDevices:
|
||||
items:
|
||||
description: CStorPoolInstanceBlockDevice contains the details
|
||||
of block devices that constitutes a raid group.
|
||||
properties:
|
||||
blockDeviceName:
|
||||
description: BlockDeviceName is the name of the block
|
||||
device.
|
||||
type: string
|
||||
capacity:
|
||||
description: Capacity is the capacity of the block device.
|
||||
It is system generated
|
||||
format: int64
|
||||
type: integer
|
||||
devLink:
|
||||
description: DevLink is the dev link for block devices
|
||||
type: string
|
||||
required:
|
||||
- blockDeviceName
|
||||
type: object
|
||||
type: array
|
||||
required:
|
||||
- blockDevices
|
||||
type: object
|
||||
type: array
|
||||
hostName:
|
||||
description: HostName is the name of kubernetes node where the pool
|
||||
should be created.
|
||||
type: string
|
||||
nodeSelector:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: NodeSelector is the labels that will be used to select
|
||||
a node for pool provisioning. Required field
|
||||
type: object
|
||||
poolConfig:
|
||||
description: PoolConfig is the default pool config that applies to
|
||||
the pool on node.
|
||||
properties:
|
||||
auxResources:
|
||||
description: AuxResources are the compute resources required by
|
||||
the cstor-pool pod side car containers.
|
||||
nullable: true
|
||||
properties:
|
||||
limits:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Limits describes the maximum amount of compute
|
||||
resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
|
||||
type: object
|
||||
requests:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Requests describes the minimum amount of compute
|
||||
resources required. If Requests is omitted for a container,
|
||||
it defaults to Limits if that is explicitly specified, otherwise
|
||||
to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
|
||||
type: object
|
||||
type: object
|
||||
compression:
|
||||
description: 'Compression to enable compression Optional -- defaults
|
||||
to off Possible values : lz, off'
|
||||
type: string
|
||||
dataRaidGroupType:
|
||||
description: DataRaidGroupType is the raid type.
|
||||
type: string
|
||||
priorityClassName:
|
||||
description: PriorityClassName if specified applies to this pool
|
||||
pod If left empty, DefaultPriorityClassName is applied. (See
|
||||
CStorPoolClusterSpec.DefaultPriorityClassName) If both are empty,
|
||||
not priority class is applied.
|
||||
nullable: true
|
||||
type: string
|
||||
resources:
|
||||
description: Resources are the compute resources required by the
|
||||
cstor-pool container.
|
||||
nullable: true
|
||||
properties:
|
||||
limits:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Limits describes the maximum amount of compute
|
||||
resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
|
||||
type: object
|
||||
requests:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Requests describes the minimum amount of compute
|
||||
resources required. If Requests is omitted for a container,
|
||||
it defaults to Limits if that is explicitly specified, otherwise
|
||||
to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
|
||||
type: object
|
||||
type: object
|
||||
roThresholdLimit:
|
||||
description: 'ROThresholdLimit is threshold(percentage base) limit
|
||||
for pool read only mode. If ROThresholdLimit(%) amount of pool
|
||||
storage is reached then pool will set to readonly. NOTE: 1.
|
||||
If ROThresholdLimit is set to 100 then entire pool storage
|
||||
will be used by default it will be set to 85%. 2. ROThresholdLimit
|
||||
value will be 0 <= ROThresholdLimit <= 100.'
|
||||
nullable: true
|
||||
type: integer
|
||||
thickProvision:
|
||||
description: ThickProvision to enable thick provisioning Optional
|
||||
-- defaults to false
|
||||
type: boolean
|
||||
tolerations:
|
||||
description: Tolerations, if specified, the pool pod's tolerations.
|
||||
items:
|
||||
description: The pod this Toleration is attached to tolerates
|
||||
any taint that matches the triple <key,value,effect> using
|
||||
the matching operator <operator>.
|
||||
properties:
|
||||
effect:
|
||||
description: Effect indicates the taint effect to match.
|
||||
Empty means match all taint effects. When specified, allowed
|
||||
values are NoSchedule, PreferNoSchedule and NoExecute.
|
||||
type: string
|
||||
key:
|
||||
description: Key is the taint key that the toleration applies
|
||||
to. Empty means match all taint keys. If the key is empty,
|
||||
operator must be Exists; this combination means to match
|
||||
all values and all keys.
|
||||
type: string
|
||||
operator:
|
||||
description: Operator represents a key's relationship to
|
||||
the value. Valid operators are Exists and Equal. Defaults
|
||||
to Equal. Exists is equivalent to wildcard for value,
|
||||
so that a pod can tolerate all taints of a particular
|
||||
category.
|
||||
type: string
|
||||
tolerationSeconds:
|
||||
description: TolerationSeconds represents the period of
|
||||
time the toleration (which must be of effect NoExecute,
|
||||
otherwise this field is ignored) tolerates the taint.
|
||||
By default, it is not set, which means tolerate the taint
|
||||
forever (do not evict). Zero and negative values will
|
||||
be treated as 0 (evict immediately) by the system.
|
||||
format: int64
|
||||
type: integer
|
||||
value:
|
||||
description: Value is the taint value the toleration matches
|
||||
to. If the operator is Exists, the value should be empty,
|
||||
otherwise just a regular string.
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
writeCacheGroupType:
|
||||
description: WriteCacheGroupType is the write cache raid type.
|
||||
type: string
|
||||
required:
|
||||
- dataRaidGroupType
|
||||
type: object
|
||||
writeCacheRaidGroups:
|
||||
description: WriteCacheRaidGroups is the write cache raid group.
|
||||
items:
|
||||
description: RaidGroup contains the details of a raid group for
|
||||
the pool
|
||||
properties:
|
||||
blockDevices:
|
||||
items:
|
||||
description: CStorPoolInstanceBlockDevice contains the details
|
||||
of block devices that constitutes a raid group.
|
||||
properties:
|
||||
blockDeviceName:
|
||||
description: BlockDeviceName is the name of the block
|
||||
device.
|
||||
type: string
|
||||
capacity:
|
||||
description: Capacity is the capacity of the block device.
|
||||
It is system generated
|
||||
format: int64
|
||||
type: integer
|
||||
devLink:
|
||||
description: DevLink is the dev link for block devices
|
||||
type: string
|
||||
required:
|
||||
- blockDeviceName
|
||||
type: object
|
||||
type: array
|
||||
required:
|
||||
- blockDevices
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
required:
|
||||
- dataRaidGroups
|
||||
- nodeSelector
|
||||
type: object
|
||||
status:
|
||||
description: Status is the possible statuses of the cstorpoolinstance
|
||||
resource.
|
||||
properties:
|
||||
capacity:
|
||||
description: Capacity describes the capacity details of a cstor pool
|
||||
properties:
|
||||
free:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
description: Amount of usable space in the pool after excluding
|
||||
metadata and raid parity
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
total:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
description: Sum of usable capacity in all the data raidgroups
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
used:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
description: Amount of physical data (and its metadata) written
|
||||
to pool after applying compression, etc..,
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
zfs:
|
||||
description: ZFSCapacityAttributes contains advanced information
|
||||
about pool capacity details
|
||||
properties:
|
||||
logicalUsed:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
description: LogicalUsed is the amount of space that is "logically"
|
||||
consumed by this pool and all its descendents. The logical
|
||||
space ignores the effect of the compression and copies properties,
|
||||
giving a quantity closer to the amount of data that applications
|
||||
see. However, it does include space consumed by metadata.
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
required:
|
||||
- logicalUsed
|
||||
type: object
|
||||
required:
|
||||
- free
|
||||
- total
|
||||
- used
|
||||
- zfs
|
||||
type: object
|
||||
conditions:
|
||||
description: Current state of CSPI with details.
|
||||
items:
|
||||
description: CSPIConditionType describes the state of a CSPI at
|
||||
a certain point.
|
||||
properties:
|
||||
lastTransitionTime:
|
||||
description: Last time the condition transitioned from one status
|
||||
to another.
|
||||
format: date-time
|
||||
type: string
|
||||
lastUpdateTime:
|
||||
description: The last time this condition was updated.
|
||||
format: date-time
|
||||
type: string
|
||||
message:
|
||||
description: A human readable message indicating details about
|
||||
the transition.
|
||||
type: string
|
||||
reason:
|
||||
description: The reason for the condition's last transition.
|
||||
type: string
|
||||
status:
|
||||
description: Status of the condition, one of True, False, Unknown.
|
||||
type: string
|
||||
type:
|
||||
description: Type of CSPC condition.
|
||||
type: string
|
||||
required:
|
||||
- status
|
||||
- type
|
||||
type: object
|
||||
type: array
|
||||
healthyReplicas:
|
||||
description: HealthyReplicas describes the total count of healthy
|
||||
Volume Replicas in the cstor pool
|
||||
format: int32
|
||||
type: integer
|
||||
phase:
|
||||
description: ' The phase of a CStorPool is a simple, high-level summary
|
||||
of the pool state on the node.'
|
||||
type: string
|
||||
provisionedReplicas:
|
||||
description: ProvisionedReplicas describes the total count of Volume
|
||||
Replicas present in the cstor pool
|
||||
format: int32
|
||||
type: integer
|
||||
readOnly:
|
||||
description: ReadOnly if pool is readOnly or not
|
||||
type: boolean
|
||||
required:
|
||||
- healthyReplicas
|
||||
- provisionedReplicas
|
||||
- readOnly
|
||||
type: object
|
||||
versionDetails:
|
||||
description: VersionDetails is the openebs version.
|
||||
properties:
|
||||
autoUpgrade:
|
||||
description: If AutoUpgrade is set to true then the resource is upgraded
|
||||
automatically without any manual steps
|
||||
type: boolean
|
||||
desired:
|
||||
description: Desired is the version that we want to upgrade or the
|
||||
control plane version
|
||||
type: string
|
||||
status:
|
||||
description: Status gives the status of reconciliation triggered when
|
||||
the desired and current version are not same
|
||||
properties:
|
||||
current:
|
||||
description: Current is the version of resource
|
||||
type: string
|
||||
dependentsUpgraded:
|
||||
description: DependentsUpgraded gives the details whether all
|
||||
children of a resource are upgraded to desired version or not
|
||||
type: boolean
|
||||
lastUpdateTime:
|
||||
description: LastUpdateTime is the time the status was last updated
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
message:
|
||||
description: Message is a human readable message if some error
|
||||
occurs
|
||||
type: string
|
||||
reason:
|
||||
description: Reason is the actual reason for the error state
|
||||
type: string
|
||||
state:
|
||||
description: State is the state of reconciliation
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
|
@ -0,0 +1,106 @@
|
|||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.0
|
||||
creationTimestamp: null
|
||||
name: cstorrestores.cstor.openebs.io
|
||||
spec:
|
||||
group: cstor.openebs.io
|
||||
names:
|
||||
kind: CStorRestore
|
||||
listKind: CStorRestoreList
|
||||
plural: cstorrestores
|
||||
shortNames:
|
||||
- crestore
|
||||
singular: cstorrestore
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- description: Name of the snapshot which is restored
|
||||
jsonPath: .spec.restoreName
|
||||
name: Backup
|
||||
type: string
|
||||
- description: Volume on which restore is performed
|
||||
jsonPath: .spec.volumeName
|
||||
name: Volume
|
||||
type: string
|
||||
- description: Identifies the state of the restore
|
||||
jsonPath: .status
|
||||
name: Status
|
||||
type: string
|
||||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: CStorRestore describes a cstor restore resource created as a
|
||||
custom resource
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation
|
||||
of an object. Servers should convert recognized schemas to the latest
|
||||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this
|
||||
object represents. Servers may infer this from the endpoint the client
|
||||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: CStorRestoreSpec is the spec for a CStorRestore resource
|
||||
properties:
|
||||
localRestore:
|
||||
description: Local defines whether restore is from local/remote
|
||||
type: boolean
|
||||
maxretrycount:
|
||||
description: MaxRestoreRetryCount is the maximum number of attempt,
|
||||
will be performed to restore
|
||||
type: integer
|
||||
restoreName:
|
||||
description: RestoreName holds restore name
|
||||
type: string
|
||||
restoreSrc:
|
||||
description: RestoreSrc can be ip:port in case of restore from remote
|
||||
or volumeName in case of local restore
|
||||
type: string
|
||||
retrycount:
|
||||
description: RetryCount represents the number of restore attempts
|
||||
performed for the restore
|
||||
type: integer
|
||||
size:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
description: Size represents the size of a snapshot to restore
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
storageClass:
|
||||
description: StorageClass represents name of StorageClass of restore
|
||||
volume
|
||||
type: string
|
||||
volumeName:
|
||||
description: VolumeName is used to restore the data to corresponding
|
||||
volume
|
||||
type: string
|
||||
required:
|
||||
- restoreName
|
||||
- restoreSrc
|
||||
- volumeName
|
||||
type: object
|
||||
status:
|
||||
description: CStorRestoreStatus is a string type that represents the status
|
||||
of the restore
|
||||
type: string
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
|
@ -0,0 +1,271 @@
|
|||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.0
|
||||
creationTimestamp: null
|
||||
name: cstorvolumes.cstor.openebs.io
|
||||
spec:
|
||||
group: cstor.openebs.io
|
||||
names:
|
||||
kind: CStorVolume
|
||||
listKind: CStorVolumeList
|
||||
plural: cstorvolumes
|
||||
shortNames:
|
||||
- cv
|
||||
singular: cstorvolume
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- description: Current volume capacity
|
||||
jsonPath: .status.capacity
|
||||
name: Capacity
|
||||
type: string
|
||||
- description: Identifies the current health of the volume
|
||||
jsonPath: .status.phase
|
||||
name: Status
|
||||
type: string
|
||||
- description: Age of CStorVolume
|
||||
jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: CStorVolume describes a cstor volume resource created as custom
|
||||
resource
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation
|
||||
of an object. Servers should convert recognized schemas to the latest
|
||||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this
|
||||
object represents. Servers may infer this from the endpoint the client
|
||||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: CStorVolumeSpec is the spec for a CStorVolume resource
|
||||
properties:
|
||||
capacity:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
description: Capacity represents the desired size of the underlying
|
||||
volume.
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
consistencyFactor:
|
||||
description: ConsistencyFactor is minimum number of volume replicas
|
||||
i.e. `RF/2 + 1` has to be connected to the target for write operations.
|
||||
Basically more then 50% of replica has to be connected to target.
|
||||
type: integer
|
||||
desiredReplicationFactor:
|
||||
description: DesiredReplicationFactor represents maximum number of
|
||||
replicas that are allowed to connect to the target. Required for
|
||||
scale operations
|
||||
type: integer
|
||||
iqn:
|
||||
description: Target iSCSI Qualified Name.combination of nodeBase
|
||||
type: string
|
||||
replicaDetails:
|
||||
description: ReplicaDetails refers to the trusty replica information
|
||||
properties:
|
||||
knownReplicas:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: KnownReplicas represents the replicas that target
|
||||
can trust to read data
|
||||
type: object
|
||||
type: object
|
||||
replicationFactor:
|
||||
description: ReplicationFactor represents number of volume replica
|
||||
created during volume provisioning connect to the target
|
||||
type: integer
|
||||
targetIP:
|
||||
description: TargetIP IP of the iSCSI target service
|
||||
type: string
|
||||
targetPort:
|
||||
description: iSCSI Target Port typically TCP ports 3260
|
||||
type: string
|
||||
targetPortal:
|
||||
description: iSCSI Target Portal. The Portal is combination of IP:port
|
||||
(typically TCP ports 3260)
|
||||
type: string
|
||||
type: object
|
||||
status:
|
||||
description: CStorVolumeStatus is for handling status of cvr.
|
||||
properties:
|
||||
capacity:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
description: Represents the actual capacity of the underlying volume.
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
conditions:
|
||||
description: Current Condition of cstorvolume. If underlying persistent
|
||||
volume is being resized then the Condition will be set to 'ResizePending'.
|
||||
items:
|
||||
description: CStorVolumeCondition contains details about state of
|
||||
cstorvolume
|
||||
properties:
|
||||
lastProbeTime:
|
||||
description: Last time we probed the condition.
|
||||
format: date-time
|
||||
type: string
|
||||
lastTransitionTime:
|
||||
description: Last time the condition transitioned from one status
|
||||
to another.
|
||||
format: date-time
|
||||
type: string
|
||||
message:
|
||||
description: Human-readable message indicating details about
|
||||
last transition.
|
||||
type: string
|
||||
reason:
|
||||
description: Unique, this should be a short, machine understandable
|
||||
string that gives the reason for condition's last transition.
|
||||
If it reports "ResizePending" that means the underlying cstorvolume
|
||||
is being resized.
|
||||
type: string
|
||||
status:
|
||||
description: ConditionStatus states in which state condition
|
||||
is present
|
||||
type: string
|
||||
type:
|
||||
description: CStorVolumeConditionType is a valid value of CStorVolumeCondition.Type
|
||||
type: string
|
||||
required:
|
||||
- status
|
||||
- type
|
||||
type: object
|
||||
type: array
|
||||
lastTransitionTime:
|
||||
description: LastTransitionTime refers to the time when the phase
|
||||
changes
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
lastUpdateTime:
|
||||
description: LastUpdateTime refers to the time when last status updated
|
||||
due to any operations
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
message:
|
||||
description: A human-readable message indicating details about why
|
||||
the volume is in this state.
|
||||
type: string
|
||||
phase:
|
||||
description: CStorVolumePhase is to hold result of action.
|
||||
type: string
|
||||
replicaDetails:
|
||||
description: ReplicaDetails refers to the trusty replica information
|
||||
properties:
|
||||
knownReplicas:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: KnownReplicas represents the replicas that target
|
||||
can trust to read data
|
||||
type: object
|
||||
type: object
|
||||
replicaStatuses:
|
||||
items:
|
||||
description: ReplicaStatus stores the status of replicas
|
||||
properties:
|
||||
checkpointedIOSeq:
|
||||
description: Represents IO number of replica persisted on the
|
||||
disk
|
||||
type: string
|
||||
inflightRead:
|
||||
description: Ongoing reads I/O from target to replica
|
||||
type: string
|
||||
inflightSync:
|
||||
description: Ongoing sync I/O from target to replica
|
||||
type: string
|
||||
inflightWrite:
|
||||
description: ongoing writes I/O from target to replica
|
||||
type: string
|
||||
mode:
|
||||
description: Mode represents replica status i.e. Healthy, Degraded
|
||||
type: string
|
||||
quorum:
|
||||
description: 'Quorum indicates whether data wrtitten to the
|
||||
replica is lost or exists. "0" means: data has been lost(
|
||||
might be ephimeral case) and will recostruct data from other
|
||||
Healthy replicas in a write-only mode 1 means: written data
|
||||
is exists on replica'
|
||||
type: string
|
||||
replicaId:
|
||||
description: ID is replica unique identifier
|
||||
type: string
|
||||
upTime:
|
||||
description: time since the replica connected to target
|
||||
type: integer
|
||||
required:
|
||||
- checkpointedIOSeq
|
||||
- inflightRead
|
||||
- inflightSync
|
||||
- inflightWrite
|
||||
- mode
|
||||
- quorum
|
||||
- replicaId
|
||||
- upTime
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
versionDetails:
|
||||
description: VersionDetails provides the details for upgrade
|
||||
properties:
|
||||
autoUpgrade:
|
||||
description: If AutoUpgrade is set to true then the resource is upgraded
|
||||
automatically without any manual steps
|
||||
type: boolean
|
||||
desired:
|
||||
description: Desired is the version that we want to upgrade or the
|
||||
control plane version
|
||||
type: string
|
||||
status:
|
||||
description: Status gives the status of reconciliation triggered when
|
||||
the desired and current version are not same
|
||||
properties:
|
||||
current:
|
||||
description: Current is the version of resource
|
||||
type: string
|
||||
dependentsUpgraded:
|
||||
description: DependentsUpgraded gives the details whether all
|
||||
children of a resource are upgraded to desired version or not
|
||||
type: boolean
|
||||
lastUpdateTime:
|
||||
description: LastUpdateTime is the time the status was last updated
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
message:
|
||||
description: Message is a human readable message if some error
|
||||
occurs
|
||||
type: string
|
||||
reason:
|
||||
description: Reason is the actual reason for the error state
|
||||
type: string
|
||||
state:
|
||||
description: State is the state of reconciliation
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
|
@ -0,0 +1,130 @@
|
|||
---
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.0
|
||||
creationTimestamp: null
|
||||
name: cstorvolumeattachments.cstor.openebs.io
|
||||
spec:
|
||||
group: cstor.openebs.io
|
||||
names:
|
||||
kind: CStorVolumeAttachment
|
||||
listKind: CStorVolumeAttachmentList
|
||||
plural: cstorvolumeattachments
|
||||
shortNames:
|
||||
- cva
|
||||
singular: cstorvolumeattachment
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: CStorVolumeAttachment represents a CSI based volume
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation
|
||||
of an object. Servers should convert recognized schemas to the latest
|
||||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this
|
||||
object represents. Servers may infer this from the endpoint the client
|
||||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: CStorVolumeAttachmentSpec is the spec for a CStorVolume resource
|
||||
properties:
|
||||
iscsi:
|
||||
description: ISCSIInfo specific to ISCSI protocol, this is filled
|
||||
only if the volume type is iSCSI
|
||||
properties:
|
||||
iqn:
|
||||
description: Iqn of this volume
|
||||
type: string
|
||||
iscsiInterface:
|
||||
description: IscsiInterface of this volume
|
||||
type: string
|
||||
lun:
|
||||
description: 'Lun specify the lun number 0, 1.. on iSCSI Volume.
|
||||
(default: 0)'
|
||||
type: string
|
||||
targetPortal:
|
||||
description: TargetPortal holds the target portal of this volume
|
||||
type: string
|
||||
type: object
|
||||
volume:
|
||||
description: Volume specific info
|
||||
properties:
|
||||
accessModes:
|
||||
description: AccessMode of a volume will hold the access mode
|
||||
of the volume
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
accessType:
|
||||
description: AccessType of a volume will indicate if the volume
|
||||
will be used as a block device or mounted on a path
|
||||
type: string
|
||||
capacity:
|
||||
description: Capacity of the volume
|
||||
type: string
|
||||
devicePath:
|
||||
description: Device Path specifies the device path which is returned
|
||||
when the iSCSI login is successful
|
||||
type: string
|
||||
fsType:
|
||||
description: FSType of a volume will specify the format type -
|
||||
ext4(default), xfs of PV
|
||||
type: string
|
||||
mountOptions:
|
||||
description: MountOptions specifies the options with which mount
|
||||
needs to be attempted
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
name:
|
||||
description: Name of the CSI volume
|
||||
type: string
|
||||
ownerNodeID:
|
||||
description: OwnerNodeID is the Node ID which is also the owner
|
||||
of this Volume
|
||||
type: string
|
||||
readOnly:
|
||||
description: ReadOnly specifies if the volume needs to be mounted
|
||||
in ReadOnly mode
|
||||
type: boolean
|
||||
stagingTargetPath:
|
||||
description: StagingPath of the volume will hold the path on which
|
||||
the volume is mounted on that node
|
||||
type: string
|
||||
targetPath:
|
||||
description: TargetPath of the volume will hold the path on which
|
||||
the volume is bind mounted on that node
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
- ownerNodeID
|
||||
type: object
|
||||
required:
|
||||
- iscsi
|
||||
- volume
|
||||
type: object
|
||||
status:
|
||||
description: CStorVolumeAttachmentStatus status represents the current
|
||||
mount status of the volume
|
||||
type: string
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
||||
---
|
|
@ -0,0 +1,639 @@
|
|||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.0
|
||||
creationTimestamp: null
|
||||
name: cstorvolumeconfigs.cstor.openebs.io
|
||||
spec:
|
||||
group: cstor.openebs.io
|
||||
names:
|
||||
kind: CStorVolumeConfig
|
||||
listKind: CStorVolumeConfigList
|
||||
plural: cstorvolumeconfigs
|
||||
shortNames:
|
||||
- cvc
|
||||
singular: cstorvolumeconfig
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- description: Identifies the volume capacity
|
||||
jsonPath: .status.capacity.storage
|
||||
name: Capacity
|
||||
type: string
|
||||
- description: Identifies the volume provisioning status
|
||||
jsonPath: .status.phase
|
||||
name: Status
|
||||
type: string
|
||||
- description: Age of CStorVolumeReplica
|
||||
jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: CStorVolumeConfig describes a cstor volume config resource created
|
||||
as custom resource. CStorVolumeConfig is a request for creating cstor volume
|
||||
related resources like deployment, svc etc.
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation
|
||||
of an object. Servers should convert recognized schemas to the latest
|
||||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this
|
||||
object represents. Servers may infer this from the endpoint the client
|
||||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
publish:
|
||||
description: Publish contains info related to attachment of a volume to
|
||||
a node. i.e. NodeId etc.
|
||||
properties:
|
||||
nodeId:
|
||||
description: NodeID contains publish info related to attachment of
|
||||
a volume to a node.
|
||||
type: string
|
||||
type: object
|
||||
spec:
|
||||
description: Spec defines a specification of a cstor volume config required
|
||||
to provisione cstor volume resources
|
||||
properties:
|
||||
capacity:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: Capacity represents the actual resources of the underlying
|
||||
cstor volume.
|
||||
type: object
|
||||
cstorVolumeRef:
|
||||
description: CStorVolumeRef has the information about where CstorVolumeClaim
|
||||
is created from.
|
||||
properties:
|
||||
apiVersion:
|
||||
description: API version of the referent.
|
||||
type: string
|
||||
fieldPath:
|
||||
description: 'If referring to a piece of an object instead of
|
||||
an entire object, this string should contain a valid JSON/Go
|
||||
field access statement, such as desiredState.manifest.containers[2].
|
||||
For example, if the object reference is to a container within
|
||||
a pod, this would take on a value like: "spec.containers{name}"
|
||||
(where "name" refers to the name of the container that triggered
|
||||
the event) or if no container name is specified "spec.containers[2]"
|
||||
(container with index 2 in this pod). This syntax is chosen
|
||||
only to have some well-defined way of referencing a part of
|
||||
an object. TODO: this design is not final and this field is
|
||||
subject to change in the future.'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
name:
|
||||
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
|
||||
type: string
|
||||
namespace:
|
||||
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
|
||||
type: string
|
||||
resourceVersion:
|
||||
description: 'Specific resourceVersion to which this reference
|
||||
is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
|
||||
type: string
|
||||
uid:
|
||||
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
|
||||
type: string
|
||||
type: object
|
||||
cstorVolumeSource:
|
||||
description: CStorVolumeSource contains the source volumeName@snapShotname
|
||||
combaination. This will be filled only if it is a clone creation.
|
||||
type: string
|
||||
policy:
|
||||
description: Policy contains volume specific required policies target
|
||||
and replicas
|
||||
properties:
|
||||
provision:
|
||||
description: replicaAffinity is set to true then volume replica
|
||||
resources need to be distributed across the pool instances
|
||||
properties:
|
||||
blockSize:
|
||||
description: BlockSize is the logical block size in multiple
|
||||
of 512 bytes BlockSize specifies the block size of the volume.
|
||||
The blocksize cannot be changed once the volume has been
|
||||
written, so it should be set at volume creation time. The
|
||||
default blocksize for volumes is 4 Kbytes. Any power of
|
||||
2 from 512 bytes to 128 Kbytes is valid.
|
||||
format: int32
|
||||
type: integer
|
||||
replicaAffinity:
|
||||
description: replicaAffinity is set to true then volume replica
|
||||
resources need to be distributed across the cstor pool instances
|
||||
based on the given topology
|
||||
type: boolean
|
||||
required:
|
||||
- replicaAffinity
|
||||
type: object
|
||||
replica:
|
||||
description: ReplicaSpec represents configuration related to replicas
|
||||
resources
|
||||
properties:
|
||||
compression:
|
||||
description: The zle compression algorithm compresses runs
|
||||
of zeros.
|
||||
type: string
|
||||
zvolWorkers:
|
||||
description: IOWorkers represents number of threads that executes
|
||||
client IOs
|
||||
type: string
|
||||
type: object
|
||||
replicaPoolInfo:
|
||||
description: 'ReplicaPoolInfo holds the pool information of volume
|
||||
replicas. Ex: If volume is provisioned on which CStor pool volume
|
||||
replicas exist'
|
||||
items:
|
||||
description: ReplicaPoolInfo represents the pool information
|
||||
of volume replica
|
||||
properties:
|
||||
poolName:
|
||||
description: PoolName represents the pool name where volume
|
||||
replica exists
|
||||
type: string
|
||||
required:
|
||||
- poolName
|
||||
type: object
|
||||
type: array
|
||||
target:
|
||||
description: TargetSpec represents configuration related to cstor
|
||||
target and its resources
|
||||
properties:
|
||||
affinity:
|
||||
description: PodAffinity if specified, are the target pod's
|
||||
affinities
|
||||
properties:
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
description: The scheduler will prefer to schedule pods
|
||||
to nodes that satisfy the affinity expressions specified
|
||||
by this field, but it may choose a node that violates
|
||||
one or more of the expressions. The node that is most
|
||||
preferred is the one with the greatest sum of weights,
|
||||
i.e. for each node that meets all of the scheduling
|
||||
requirements (resource request, requiredDuringScheduling
|
||||
affinity expressions, etc.), compute a sum by iterating
|
||||
through the elements of this field and adding "weight"
|
||||
to the sum if the node has pods which matches the corresponding
|
||||
podAffinityTerm; the node(s) with the highest sum are
|
||||
the most preferred.
|
||||
items:
|
||||
description: The weights of all of the matched WeightedPodAffinityTerm
|
||||
fields are added per-node to find the most preferred
|
||||
node(s)
|
||||
properties:
|
||||
podAffinityTerm:
|
||||
description: Required. A pod affinity term, associated
|
||||
with the corresponding weight.
|
||||
properties:
|
||||
labelSelector:
|
||||
description: A label query over a set of resources,
|
||||
in this case pods.
|
||||
properties:
|
||||
matchExpressions:
|
||||
description: matchExpressions is a list
|
||||
of label selector requirements. The requirements
|
||||
are ANDed.
|
||||
items:
|
||||
description: A label selector requirement
|
||||
is a selector that contains values,
|
||||
a key, and an operator that relates
|
||||
the key and values.
|
||||
properties:
|
||||
key:
|
||||
description: key is the label key
|
||||
that the selector applies to.
|
||||
type: string
|
||||
operator:
|
||||
description: operator represents a
|
||||
key's relationship to a set of values.
|
||||
Valid operators are In, NotIn, Exists
|
||||
and DoesNotExist.
|
||||
type: string
|
||||
values:
|
||||
description: values is an array of
|
||||
string values. If the operator is
|
||||
In or NotIn, the values array must
|
||||
be non-empty. If the operator is
|
||||
Exists or DoesNotExist, the values
|
||||
array must be empty. This array
|
||||
is replaced during a strategic merge
|
||||
patch.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
required:
|
||||
- key
|
||||
- operator
|
||||
type: object
|
||||
type: array
|
||||
matchLabels:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: matchLabels is a map of {key,value}
|
||||
pairs. A single {key,value} in the matchLabels
|
||||
map is equivalent to an element of matchExpressions,
|
||||
whose key field is "key", the operator
|
||||
is "In", and the values array contains
|
||||
only "value". The requirements are ANDed.
|
||||
type: object
|
||||
type: object
|
||||
namespaces:
|
||||
description: namespaces specifies which namespaces
|
||||
the labelSelector applies to (matches against);
|
||||
null or empty list means "this pod's namespace"
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
topologyKey:
|
||||
description: This pod should be co-located (affinity)
|
||||
or not co-located (anti-affinity) with the
|
||||
pods matching the labelSelector in the specified
|
||||
namespaces, where co-located is defined as
|
||||
running on a node whose value of the label
|
||||
with key topologyKey matches that of any node
|
||||
on which any of the selected pods is running.
|
||||
Empty topologyKey is not allowed.
|
||||
type: string
|
||||
required:
|
||||
- topologyKey
|
||||
type: object
|
||||
weight:
|
||||
description: weight associated with matching the
|
||||
corresponding podAffinityTerm, in the range 1-100.
|
||||
format: int32
|
||||
type: integer
|
||||
required:
|
||||
- podAffinityTerm
|
||||
- weight
|
||||
type: object
|
||||
type: array
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
description: If the affinity requirements specified by
|
||||
this field are not met at scheduling time, the pod will
|
||||
not be scheduled onto the node. If the affinity requirements
|
||||
specified by this field cease to be met at some point
|
||||
during pod execution (e.g. due to a pod label update),
|
||||
the system may or may not try to eventually evict the
|
||||
pod from its node. When there are multiple elements,
|
||||
the lists of nodes corresponding to each podAffinityTerm
|
||||
are intersected, i.e. all terms must be satisfied.
|
||||
items:
|
||||
description: Defines a set of pods (namely those matching
|
||||
the labelSelector relative to the given namespace(s))
|
||||
that this pod should be co-located (affinity) or not
|
||||
co-located (anti-affinity) with, where co-located
|
||||
is defined as running on a node whose value of the
|
||||
label with key <topologyKey> matches that of any node
|
||||
on which a pod of the set of pods is running
|
||||
properties:
|
||||
labelSelector:
|
||||
description: A label query over a set of resources,
|
||||
in this case pods.
|
||||
properties:
|
||||
matchExpressions:
|
||||
description: matchExpressions is a list of label
|
||||
selector requirements. The requirements are
|
||||
ANDed.
|
||||
items:
|
||||
description: A label selector requirement
|
||||
is a selector that contains values, a key,
|
||||
and an operator that relates the key and
|
||||
values.
|
||||
properties:
|
||||
key:
|
||||
description: key is the label key that
|
||||
the selector applies to.
|
||||
type: string
|
||||
operator:
|
||||
description: operator represents a key's
|
||||
relationship to a set of values. Valid
|
||||
operators are In, NotIn, Exists and
|
||||
DoesNotExist.
|
||||
type: string
|
||||
values:
|
||||
description: values is an array of string
|
||||
values. If the operator is In or NotIn,
|
||||
the values array must be non-empty.
|
||||
If the operator is Exists or DoesNotExist,
|
||||
the values array must be empty. This
|
||||
array is replaced during a strategic
|
||||
merge patch.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
required:
|
||||
- key
|
||||
- operator
|
||||
type: object
|
||||
type: array
|
||||
matchLabels:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: matchLabels is a map of {key,value}
|
||||
pairs. A single {key,value} in the matchLabels
|
||||
map is equivalent to an element of matchExpressions,
|
||||
whose key field is "key", the operator is
|
||||
"In", and the values array contains only "value".
|
||||
The requirements are ANDed.
|
||||
type: object
|
||||
type: object
|
||||
namespaces:
|
||||
description: namespaces specifies which namespaces
|
||||
the labelSelector applies to (matches against);
|
||||
null or empty list means "this pod's namespace"
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
topologyKey:
|
||||
description: This pod should be co-located (affinity)
|
||||
or not co-located (anti-affinity) with the pods
|
||||
matching the labelSelector in the specified namespaces,
|
||||
where co-located is defined as running on a node
|
||||
whose value of the label with key topologyKey
|
||||
matches that of any node on which any of the selected
|
||||
pods is running. Empty topologyKey is not allowed.
|
||||
type: string
|
||||
required:
|
||||
- topologyKey
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
auxResources:
|
||||
description: AuxResources are the compute resources required
|
||||
by the cstor-target pod side car containers.
|
||||
properties:
|
||||
limits:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Limits describes the maximum amount of compute
|
||||
resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
|
||||
type: object
|
||||
requests:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Requests describes the minimum amount of
|
||||
compute resources required. If Requests is omitted for
|
||||
a container, it defaults to Limits if that is explicitly
|
||||
specified, otherwise to an implementation-defined value.
|
||||
More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
|
||||
type: object
|
||||
type: object
|
||||
luWorkers:
|
||||
description: IOWorkers sets the number of threads that are
|
||||
working on above queue
|
||||
format: int64
|
||||
type: integer
|
||||
monitor:
|
||||
description: Monitor enables or disables the target exporter
|
||||
sidecar
|
||||
type: boolean
|
||||
nodeSelector:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: NodeSelector is the labels that will be used
|
||||
to select a node for target pod scheduleing Required field
|
||||
type: object
|
||||
priorityClassName:
|
||||
description: PriorityClassName if specified applies to this
|
||||
target pod If left empty, no priority class is applied.
|
||||
type: string
|
||||
queueDepth:
|
||||
description: QueueDepth sets the queue size at iSCSI target
|
||||
which limits the ongoing IO count from client
|
||||
type: string
|
||||
replicationFactor:
|
||||
description: ReplicationFactor represents maximum number of
|
||||
replicas that are allowed to connect to the target
|
||||
format: int64
|
||||
type: integer
|
||||
resources:
|
||||
description: Resources are the compute resources required
|
||||
by the cstor-target container.
|
||||
properties:
|
||||
limits:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Limits describes the maximum amount of compute
|
||||
resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
|
||||
type: object
|
||||
requests:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Requests describes the minimum amount of
|
||||
compute resources required. If Requests is omitted for
|
||||
a container, it defaults to Limits if that is explicitly
|
||||
specified, otherwise to an implementation-defined value.
|
||||
More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
|
||||
type: object
|
||||
type: object
|
||||
tolerations:
|
||||
description: Tolerations, if specified, are the target pod's
|
||||
tolerations
|
||||
items:
|
||||
description: The pod this Toleration is attached to tolerates
|
||||
any taint that matches the triple <key,value,effect> using
|
||||
the matching operator <operator>.
|
||||
properties:
|
||||
effect:
|
||||
description: Effect indicates the taint effect to match.
|
||||
Empty means match all taint effects. When specified,
|
||||
allowed values are NoSchedule, PreferNoSchedule and
|
||||
NoExecute.
|
||||
type: string
|
||||
key:
|
||||
description: Key is the taint key that the toleration
|
||||
applies to. Empty means match all taint keys. If the
|
||||
key is empty, operator must be Exists; this combination
|
||||
means to match all values and all keys.
|
||||
type: string
|
||||
operator:
|
||||
description: Operator represents a key's relationship
|
||||
to the value. Valid operators are Exists and Equal.
|
||||
Defaults to Equal. Exists is equivalent to wildcard
|
||||
for value, so that a pod can tolerate all taints of
|
||||
a particular category.
|
||||
type: string
|
||||
tolerationSeconds:
|
||||
description: TolerationSeconds represents the period
|
||||
of time the toleration (which must be of effect NoExecute,
|
||||
otherwise this field is ignored) tolerates the taint.
|
||||
By default, it is not set, which means tolerate the
|
||||
taint forever (do not evict). Zero and negative values
|
||||
will be treated as 0 (evict immediately) by the system.
|
||||
format: int64
|
||||
type: integer
|
||||
value:
|
||||
description: Value is the taint value the toleration
|
||||
matches to. If the operator is Exists, the value should
|
||||
be empty, otherwise just a regular string.
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
type: object
|
||||
provision:
|
||||
description: Provision represents the initial volume configuration
|
||||
for the underlying cstor volume based on the persistent volume request
|
||||
by user. Provision properties are immutable
|
||||
properties:
|
||||
capacity:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: Capacity represents initial capacity of volume replica
|
||||
required during volume clone operations to maintain some metadata
|
||||
info related to child resources like snapshot, cloned volumes.
|
||||
type: object
|
||||
replicaCount:
|
||||
description: ReplicaCount represents initial cstor volume replica
|
||||
count, its will not be updated later on based on scale up/down
|
||||
operations, only readonly operations and validations.
|
||||
type: integer
|
||||
required:
|
||||
- capacity
|
||||
- replicaCount
|
||||
type: object
|
||||
required:
|
||||
- capacity
|
||||
- policy
|
||||
- provision
|
||||
type: object
|
||||
status:
|
||||
description: Status represents the current information/status for the
|
||||
cstor volume config, populated by the controller.
|
||||
properties:
|
||||
capacity:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: Capacity the actual resources of the underlying volume.
|
||||
type: object
|
||||
condition:
|
||||
items:
|
||||
description: CStorVolumeConfigCondition contains details about state
|
||||
of cstor volume
|
||||
properties:
|
||||
lastProbeTime:
|
||||
description: Last time we probed the condition.
|
||||
format: date-time
|
||||
type: string
|
||||
lastTransitionTime:
|
||||
description: Last time the condition transitioned from one status
|
||||
to another.
|
||||
format: date-time
|
||||
type: string
|
||||
message:
|
||||
description: Human-readable message indicating details about
|
||||
last transition.
|
||||
type: string
|
||||
reason:
|
||||
description: Reason is a brief CamelCase string that describes
|
||||
any failure
|
||||
type: string
|
||||
type:
|
||||
description: Current Condition of cstor volume config. If underlying
|
||||
persistent volume is being resized then the Condition will
|
||||
be set to 'ResizeStarted' etc
|
||||
type: string
|
||||
required:
|
||||
- message
|
||||
- reason
|
||||
- type
|
||||
type: object
|
||||
type: array
|
||||
phase:
|
||||
description: Phase represents the current phase of CStorVolumeConfig.
|
||||
type: string
|
||||
poolInfo:
|
||||
description: PoolInfo represents current pool names where volume replicas
|
||||
exists
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
versionDetails:
|
||||
description: VersionDetails provides the details for upgrade
|
||||
properties:
|
||||
autoUpgrade:
|
||||
description: If AutoUpgrade is set to true then the resource is upgraded
|
||||
automatically without any manual steps
|
||||
type: boolean
|
||||
desired:
|
||||
description: Desired is the version that we want to upgrade or the
|
||||
control plane version
|
||||
type: string
|
||||
status:
|
||||
description: Status gives the status of reconciliation triggered when
|
||||
the desired and current version are not same
|
||||
properties:
|
||||
current:
|
||||
description: Current is the version of resource
|
||||
type: string
|
||||
dependentsUpgraded:
|
||||
description: DependentsUpgraded gives the details whether all
|
||||
children of a resource are upgraded to desired version or not
|
||||
type: boolean
|
||||
lastUpdateTime:
|
||||
description: LastUpdateTime is the time the status was last updated
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
message:
|
||||
description: Message is a human readable message if some error
|
||||
occurs
|
||||
type: string
|
||||
reason:
|
||||
description: Reason is the actual reason for the error state
|
||||
type: string
|
||||
state:
|
||||
description: State is the state of reconciliation
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
- status
|
||||
- versionDetails
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
|
@ -0,0 +1,425 @@
|
|||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.0
|
||||
creationTimestamp: null
|
||||
name: cstorvolumepolicies.cstor.openebs.io
|
||||
spec:
|
||||
group: cstor.openebs.io
|
||||
names:
|
||||
kind: CStorVolumePolicy
|
||||
listKind: CStorVolumePolicyList
|
||||
plural: cstorvolumepolicies
|
||||
shortNames:
|
||||
- cvp
|
||||
singular: cstorvolumepolicy
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: CStorVolumePolicy describes a configuration required for cstor
|
||||
volume resources
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation
|
||||
of an object. Servers should convert recognized schemas to the latest
|
||||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this
|
||||
object represents. Servers may infer this from the endpoint the client
|
||||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: Spec defines a configuration info of a cstor volume required
|
||||
to provisione cstor volume resources
|
||||
properties:
|
||||
provision:
|
||||
description: replicaAffinity is set to true then volume replica resources
|
||||
need to be distributed across the pool instances
|
||||
properties:
|
||||
blockSize:
|
||||
description: BlockSize is the logical block size in multiple of
|
||||
512 bytes BlockSize specifies the block size of the volume.
|
||||
The blocksize cannot be changed once the volume has been written,
|
||||
so it should be set at volume creation time. The default blocksize
|
||||
for volumes is 4 Kbytes. Any power of 2 from 512 bytes to 128
|
||||
Kbytes is valid.
|
||||
format: int32
|
||||
type: integer
|
||||
replicaAffinity:
|
||||
description: replicaAffinity is set to true then volume replica
|
||||
resources need to be distributed across the cstor pool instances
|
||||
based on the given topology
|
||||
type: boolean
|
||||
required:
|
||||
- replicaAffinity
|
||||
type: object
|
||||
replica:
|
||||
description: ReplicaSpec represents configuration related to replicas
|
||||
resources
|
||||
properties:
|
||||
compression:
|
||||
description: The zle compression algorithm compresses runs of
|
||||
zeros.
|
||||
type: string
|
||||
zvolWorkers:
|
||||
description: IOWorkers represents number of threads that executes
|
||||
client IOs
|
||||
type: string
|
||||
type: object
|
||||
replicaPoolInfo:
|
||||
description: 'ReplicaPoolInfo holds the pool information of volume
|
||||
replicas. Ex: If volume is provisioned on which CStor pool volume
|
||||
replicas exist'
|
||||
items:
|
||||
description: ReplicaPoolInfo represents the pool information of
|
||||
volume replica
|
||||
properties:
|
||||
poolName:
|
||||
description: PoolName represents the pool name where volume
|
||||
replica exists
|
||||
type: string
|
||||
required:
|
||||
- poolName
|
||||
type: object
|
||||
type: array
|
||||
target:
|
||||
description: TargetSpec represents configuration related to cstor
|
||||
target and its resources
|
||||
properties:
|
||||
affinity:
|
||||
description: PodAffinity if specified, are the target pod's affinities
|
||||
properties:
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
description: The scheduler will prefer to schedule pods to
|
||||
nodes that satisfy the affinity expressions specified by
|
||||
this field, but it may choose a node that violates one or
|
||||
more of the expressions. The node that is most preferred
|
||||
is the one with the greatest sum of weights, i.e. for each
|
||||
node that meets all of the scheduling requirements (resource
|
||||
request, requiredDuringScheduling affinity expressions,
|
||||
etc.), compute a sum by iterating through the elements of
|
||||
this field and adding "weight" to the sum if the node has
|
||||
pods which matches the corresponding podAffinityTerm; the
|
||||
node(s) with the highest sum are the most preferred.
|
||||
items:
|
||||
description: The weights of all of the matched WeightedPodAffinityTerm
|
||||
fields are added per-node to find the most preferred node(s)
|
||||
properties:
|
||||
podAffinityTerm:
|
||||
description: Required. A pod affinity term, associated
|
||||
with the corresponding weight.
|
||||
properties:
|
||||
labelSelector:
|
||||
description: A label query over a set of resources,
|
||||
in this case pods.
|
||||
properties:
|
||||
matchExpressions:
|
||||
description: matchExpressions is a list of label
|
||||
selector requirements. The requirements are
|
||||
ANDed.
|
||||
items:
|
||||
description: A label selector requirement
|
||||
is a selector that contains values, a key,
|
||||
and an operator that relates the key and
|
||||
values.
|
||||
properties:
|
||||
key:
|
||||
description: key is the label key that
|
||||
the selector applies to.
|
||||
type: string
|
||||
operator:
|
||||
description: operator represents a key's
|
||||
relationship to a set of values. Valid
|
||||
operators are In, NotIn, Exists and
|
||||
DoesNotExist.
|
||||
type: string
|
||||
values:
|
||||
description: values is an array of string
|
||||
values. If the operator is In or NotIn,
|
||||
the values array must be non-empty.
|
||||
If the operator is Exists or DoesNotExist,
|
||||
the values array must be empty. This
|
||||
array is replaced during a strategic
|
||||
merge patch.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
required:
|
||||
- key
|
||||
- operator
|
||||
type: object
|
||||
type: array
|
||||
matchLabels:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: matchLabels is a map of {key,value}
|
||||
pairs. A single {key,value} in the matchLabels
|
||||
map is equivalent to an element of matchExpressions,
|
||||
whose key field is "key", the operator is
|
||||
"In", and the values array contains only "value".
|
||||
The requirements are ANDed.
|
||||
type: object
|
||||
type: object
|
||||
namespaces:
|
||||
description: namespaces specifies which namespaces
|
||||
the labelSelector applies to (matches against);
|
||||
null or empty list means "this pod's namespace"
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
topologyKey:
|
||||
description: This pod should be co-located (affinity)
|
||||
or not co-located (anti-affinity) with the pods
|
||||
matching the labelSelector in the specified namespaces,
|
||||
where co-located is defined as running on a node
|
||||
whose value of the label with key topologyKey
|
||||
matches that of any node on which any of the selected
|
||||
pods is running. Empty topologyKey is not allowed.
|
||||
type: string
|
||||
required:
|
||||
- topologyKey
|
||||
type: object
|
||||
weight:
|
||||
description: weight associated with matching the corresponding
|
||||
podAffinityTerm, in the range 1-100.
|
||||
format: int32
|
||||
type: integer
|
||||
required:
|
||||
- podAffinityTerm
|
||||
- weight
|
||||
type: object
|
||||
type: array
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
description: If the affinity requirements specified by this
|
||||
field are not met at scheduling time, the pod will not be
|
||||
scheduled onto the node. If the affinity requirements specified
|
||||
by this field cease to be met at some point during pod execution
|
||||
(e.g. due to a pod label update), the system may or may
|
||||
not try to eventually evict the pod from its node. When
|
||||
there are multiple elements, the lists of nodes corresponding
|
||||
to each podAffinityTerm are intersected, i.e. all terms
|
||||
must be satisfied.
|
||||
items:
|
||||
description: Defines a set of pods (namely those matching
|
||||
the labelSelector relative to the given namespace(s))
|
||||
that this pod should be co-located (affinity) or not co-located
|
||||
(anti-affinity) with, where co-located is defined as running
|
||||
on a node whose value of the label with key <topologyKey>
|
||||
matches that of any node on which a pod of the set of
|
||||
pods is running
|
||||
properties:
|
||||
labelSelector:
|
||||
description: A label query over a set of resources,
|
||||
in this case pods.
|
||||
properties:
|
||||
matchExpressions:
|
||||
description: matchExpressions is a list of label
|
||||
selector requirements. The requirements are ANDed.
|
||||
items:
|
||||
description: A label selector requirement is a
|
||||
selector that contains values, a key, and an
|
||||
operator that relates the key and values.
|
||||
properties:
|
||||
key:
|
||||
description: key is the label key that the
|
||||
selector applies to.
|
||||
type: string
|
||||
operator:
|
||||
description: operator represents a key's relationship
|
||||
to a set of values. Valid operators are
|
||||
In, NotIn, Exists and DoesNotExist.
|
||||
type: string
|
||||
values:
|
||||
description: values is an array of string
|
||||
values. If the operator is In or NotIn,
|
||||
the values array must be non-empty. If the
|
||||
operator is Exists or DoesNotExist, the
|
||||
values array must be empty. This array is
|
||||
replaced during a strategic merge patch.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
required:
|
||||
- key
|
||||
- operator
|
||||
type: object
|
||||
type: array
|
||||
matchLabels:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: matchLabels is a map of {key,value}
|
||||
pairs. A single {key,value} in the matchLabels
|
||||
map is equivalent to an element of matchExpressions,
|
||||
whose key field is "key", the operator is "In",
|
||||
and the values array contains only "value". The
|
||||
requirements are ANDed.
|
||||
type: object
|
||||
type: object
|
||||
namespaces:
|
||||
description: namespaces specifies which namespaces the
|
||||
labelSelector applies to (matches against); null or
|
||||
empty list means "this pod's namespace"
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
topologyKey:
|
||||
description: This pod should be co-located (affinity)
|
||||
or not co-located (anti-affinity) with the pods matching
|
||||
the labelSelector in the specified namespaces, where
|
||||
co-located is defined as running on a node whose value
|
||||
of the label with key topologyKey matches that of
|
||||
any node on which any of the selected pods is running.
|
||||
Empty topologyKey is not allowed.
|
||||
type: string
|
||||
required:
|
||||
- topologyKey
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
auxResources:
|
||||
description: AuxResources are the compute resources required by
|
||||
the cstor-target pod side car containers.
|
||||
properties:
|
||||
limits:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Limits describes the maximum amount of compute
|
||||
resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
|
||||
type: object
|
||||
requests:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Requests describes the minimum amount of compute
|
||||
resources required. If Requests is omitted for a container,
|
||||
it defaults to Limits if that is explicitly specified, otherwise
|
||||
to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
|
||||
type: object
|
||||
type: object
|
||||
luWorkers:
|
||||
description: IOWorkers sets the number of threads that are working
|
||||
on above queue
|
||||
format: int64
|
||||
type: integer
|
||||
monitor:
|
||||
description: Monitor enables or disables the target exporter sidecar
|
||||
type: boolean
|
||||
nodeSelector:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: NodeSelector is the labels that will be used to select
|
||||
a node for target pod scheduleing Required field
|
||||
type: object
|
||||
priorityClassName:
|
||||
description: PriorityClassName if specified applies to this target
|
||||
pod If left empty, no priority class is applied.
|
||||
type: string
|
||||
queueDepth:
|
||||
description: QueueDepth sets the queue size at iSCSI target which
|
||||
limits the ongoing IO count from client
|
||||
type: string
|
||||
replicationFactor:
|
||||
description: ReplicationFactor represents maximum number of replicas
|
||||
that are allowed to connect to the target
|
||||
format: int64
|
||||
type: integer
|
||||
resources:
|
||||
description: Resources are the compute resources required by the
|
||||
cstor-target container.
|
||||
properties:
|
||||
limits:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Limits describes the maximum amount of compute
|
||||
resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
|
||||
type: object
|
||||
requests:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Requests describes the minimum amount of compute
|
||||
resources required. If Requests is omitted for a container,
|
||||
it defaults to Limits if that is explicitly specified, otherwise
|
||||
to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
|
||||
type: object
|
||||
type: object
|
||||
tolerations:
|
||||
description: Tolerations, if specified, are the target pod's tolerations
|
||||
items:
|
||||
description: The pod this Toleration is attached to tolerates
|
||||
any taint that matches the triple <key,value,effect> using
|
||||
the matching operator <operator>.
|
||||
properties:
|
||||
effect:
|
||||
description: Effect indicates the taint effect to match.
|
||||
Empty means match all taint effects. When specified, allowed
|
||||
values are NoSchedule, PreferNoSchedule and NoExecute.
|
||||
type: string
|
||||
key:
|
||||
description: Key is the taint key that the toleration applies
|
||||
to. Empty means match all taint keys. If the key is empty,
|
||||
operator must be Exists; this combination means to match
|
||||
all values and all keys.
|
||||
type: string
|
||||
operator:
|
||||
description: Operator represents a key's relationship to
|
||||
the value. Valid operators are Exists and Equal. Defaults
|
||||
to Equal. Exists is equivalent to wildcard for value,
|
||||
so that a pod can tolerate all taints of a particular
|
||||
category.
|
||||
type: string
|
||||
tolerationSeconds:
|
||||
description: TolerationSeconds represents the period of
|
||||
time the toleration (which must be of effect NoExecute,
|
||||
otherwise this field is ignored) tolerates the taint.
|
||||
By default, it is not set, which means tolerate the taint
|
||||
forever (do not evict). Zero and negative values will
|
||||
be treated as 0 (evict immediately) by the system.
|
||||
format: int64
|
||||
type: integer
|
||||
value:
|
||||
description: Value is the taint value the toleration matches
|
||||
to. If the operator is Exists, the value should be empty,
|
||||
otherwise just a regular string.
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
type: object
|
||||
status:
|
||||
description: CStorVolumePolicyStatus is for handling status of CstorVolumePolicy
|
||||
properties:
|
||||
phase:
|
||||
type: string
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
|
@ -0,0 +1,216 @@
|
|||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.0
|
||||
creationTimestamp: null
|
||||
name: cstorvolumereplicas.cstor.openebs.io
|
||||
spec:
|
||||
group: cstor.openebs.io
|
||||
names:
|
||||
kind: CStorVolumeReplica
|
||||
listKind: CStorVolumeReplicaList
|
||||
plural: cstorvolumereplicas
|
||||
shortNames:
|
||||
- cvr
|
||||
singular: cstorvolumereplica
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- description: The amount of disk space consumed by a dataset and all its descendents
|
||||
jsonPath: .status.capacity.total
|
||||
name: Allocated
|
||||
type: string
|
||||
- description: The amount of space that is logically consumed by this dataset
|
||||
jsonPath: .status.capacity.used
|
||||
name: Used
|
||||
type: string
|
||||
- description: Identifies the current state of the replicas
|
||||
jsonPath: .status.phase
|
||||
name: Status
|
||||
type: string
|
||||
- description: Age of CStorVolumeReplica
|
||||
jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: CStorVolumeReplica describes a cstor volume resource created
|
||||
as custom resource
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation
|
||||
of an object. Servers should convert recognized schemas to the latest
|
||||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this
|
||||
object represents. Servers may infer this from the endpoint the client
|
||||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: CStorVolumeReplicaSpec is the spec for a CStorVolumeReplica
|
||||
resource
|
||||
properties:
|
||||
blockSize:
|
||||
description: BlockSize is the logical block size in multiple of 512
|
||||
bytes BlockSize specifies the block size of the volume. The blocksize
|
||||
cannot be changed once the volume has been written, so it should
|
||||
be set at volume creation time. The default blocksize for volumes
|
||||
is 4 Kbytes. Any power of 2 from 512 bytes to 128 Kbytes is valid.
|
||||
format: int32
|
||||
type: integer
|
||||
capacity:
|
||||
description: Represents the actual capacity of the underlying volume
|
||||
type: string
|
||||
compression:
|
||||
description: 'Controls the compression algorithm used for this volumes
|
||||
examples: on|off|gzip|gzip-N|lz4|lzjb|zle'
|
||||
type: string
|
||||
replicaid:
|
||||
description: ReplicaID is unique number to identify the replica
|
||||
type: string
|
||||
targetIP:
|
||||
description: TargetIP represents iscsi target IP through which replica
|
||||
cummunicates IO workloads and other volume operations like snapshot
|
||||
and resize requests
|
||||
type: string
|
||||
zvolWorkers:
|
||||
description: ZvolWorkers represents number of threads that executes
|
||||
client IOs
|
||||
type: string
|
||||
type: object
|
||||
status:
|
||||
description: CStorVolumeReplicaStatus is for handling status of cvr.
|
||||
properties:
|
||||
capacity:
|
||||
description: CStorVolumeCapacityDetails represents capacity info of
|
||||
replica
|
||||
properties:
|
||||
total:
|
||||
description: The amount of space consumed by this volume replica
|
||||
and all its descendents
|
||||
type: string
|
||||
used:
|
||||
description: The amount of space that is "logically" accessible
|
||||
by this dataset. The logical space ignores the effect of the
|
||||
compression and copies properties, giving a quantity closer
|
||||
to the amount of data that applications see. However, it does
|
||||
include space consumed by metadata
|
||||
type: string
|
||||
required:
|
||||
- total
|
||||
- used
|
||||
type: object
|
||||
lastTransitionTime:
|
||||
description: LastTransitionTime refers to the time when the phase
|
||||
changes
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
lastUpdateTime:
|
||||
description: The last updated time
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
message:
|
||||
description: A human readable message indicating details about the
|
||||
transition.
|
||||
type: string
|
||||
pendingSnapshots:
|
||||
additionalProperties:
|
||||
description: CStorSnapshotInfo represents the snapshot information
|
||||
related to particular snapshot
|
||||
properties:
|
||||
logicalReferenced:
|
||||
description: LogicalReferenced describes the amount of space
|
||||
that is "logically" accessible by this snapshot. This logical
|
||||
space ignores the effect of the compression and copies properties,
|
||||
giving a quantity closer to the amount of data that application
|
||||
see. It also includes space consumed by metadata.
|
||||
format: int64
|
||||
type: integer
|
||||
required:
|
||||
- logicalReferenced
|
||||
type: object
|
||||
description: PendingSnapshots contains list of pending snapshots that
|
||||
are not yet available on this replica
|
||||
type: object
|
||||
phase:
|
||||
description: CStorVolumeReplicaPhase is to holds different phases
|
||||
of replica
|
||||
type: string
|
||||
snapshots:
|
||||
additionalProperties:
|
||||
description: CStorSnapshotInfo represents the snapshot information
|
||||
related to particular snapshot
|
||||
properties:
|
||||
logicalReferenced:
|
||||
description: LogicalReferenced describes the amount of space
|
||||
that is "logically" accessible by this snapshot. This logical
|
||||
space ignores the effect of the compression and copies properties,
|
||||
giving a quantity closer to the amount of data that application
|
||||
see. It also includes space consumed by metadata.
|
||||
format: int64
|
||||
type: integer
|
||||
required:
|
||||
- logicalReferenced
|
||||
type: object
|
||||
description: Snapshots contains list of snapshots, and their properties,
|
||||
created on CVR
|
||||
type: object
|
||||
type: object
|
||||
versionDetails:
|
||||
description: VersionDetails provides the details for upgrade
|
||||
properties:
|
||||
autoUpgrade:
|
||||
description: If AutoUpgrade is set to true then the resource is upgraded
|
||||
automatically without any manual steps
|
||||
type: boolean
|
||||
desired:
|
||||
description: Desired is the version that we want to upgrade or the
|
||||
control plane version
|
||||
type: string
|
||||
status:
|
||||
description: Status gives the status of reconciliation triggered when
|
||||
the desired and current version are not same
|
||||
properties:
|
||||
current:
|
||||
description: Current is the version of resource
|
||||
type: string
|
||||
dependentsUpgraded:
|
||||
description: DependentsUpgraded gives the details whether all
|
||||
children of a resource are upgraded to desired version or not
|
||||
type: boolean
|
||||
lastUpdateTime:
|
||||
description: LastUpdateTime is the time the status was last updated
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
message:
|
||||
description: Message is a human readable message if some error
|
||||
occurs
|
||||
type: string
|
||||
reason:
|
||||
description: Reason is the actual reason for the error state
|
||||
type: string
|
||||
state:
|
||||
description: State is the state of reconciliation
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
|
@ -0,0 +1,128 @@
|
|||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.0
|
||||
creationTimestamp: null
|
||||
name: migrationtasks.openebs.io
|
||||
spec:
|
||||
group: openebs.io
|
||||
names:
|
||||
kind: MigrationTask
|
||||
listKind: MigrationTaskList
|
||||
plural: migrationtasks
|
||||
shortNames:
|
||||
- mtask
|
||||
singular: migrationtask
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: MigrationTask represents an migration task
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation
|
||||
of an object. Servers should convert recognized schemas to the latest
|
||||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this
|
||||
object represents. Servers may infer this from the endpoint the client
|
||||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: Spec i.e. specifications of the MigrationTask
|
||||
properties:
|
||||
cstorPool:
|
||||
description: MigrateCStorPool contains the details of the cstor pool
|
||||
to be migrated
|
||||
properties:
|
||||
rename:
|
||||
description: If a CSPC with the same name as SPC already exists
|
||||
then we can rename SPC during migration using Rename
|
||||
type: string
|
||||
spcName:
|
||||
description: SPCName contains the name of the storage pool claim
|
||||
to be migrated
|
||||
type: string
|
||||
type: object
|
||||
cstorVolume:
|
||||
description: MigrateCStorVolume contains the details of the cstor
|
||||
volume to be migrated
|
||||
properties:
|
||||
pvName:
|
||||
description: PVName contains the name of the pv associated with
|
||||
the cstor volume to be migrated
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
status:
|
||||
description: Status of MigrationTask
|
||||
properties:
|
||||
completedTime:
|
||||
description: CompletedTime of Migrate
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
migrationDetailedStatuses:
|
||||
description: MigrationDetailedStatuses contains the list of statuses
|
||||
of each step
|
||||
items:
|
||||
description: MigrationDetailedStatuses represents the latest available
|
||||
observations of a MigrationTask current state.
|
||||
properties:
|
||||
lastUpdatedAt:
|
||||
description: LastUpdatedTime of a MigrateStep
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
message:
|
||||
description: A human-readable message indicating details about
|
||||
why the migrationStep is in this state
|
||||
type: string
|
||||
phase:
|
||||
description: Phase indicates if the MigrateStep is waiting,
|
||||
errored or completed.
|
||||
type: string
|
||||
reason:
|
||||
description: Reason is a brief CamelCase string that describes
|
||||
any failure and is meant for machine parsing and tidy display
|
||||
in the CLI
|
||||
type: string
|
||||
startTime:
|
||||
description: StartTime of a MigrateStep
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
step:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
phase:
|
||||
description: Phase indicates if a migrationTask is started, success
|
||||
or errored
|
||||
type: string
|
||||
retries:
|
||||
description: Retries is the number of times the job attempted to migration
|
||||
the resource
|
||||
type: integer
|
||||
startTime:
|
||||
description: StartTime of Migrate
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
|
@ -0,0 +1,257 @@
|
|||
---
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.0
|
||||
creationTimestamp: null
|
||||
name: upgradetasks.openebs.io
|
||||
spec:
|
||||
group: openebs.io
|
||||
names:
|
||||
kind: UpgradeTask
|
||||
listKind: UpgradeTaskList
|
||||
plural: upgradetasks
|
||||
singular: upgradetask
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: UpgradeTask represents an upgrade task
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation
|
||||
of an object. Servers should convert recognized schemas to the latest
|
||||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this
|
||||
object represents. Servers may infer this from the endpoint the client
|
||||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: Spec i.e. specifications of the UpgradeTask
|
||||
properties:
|
||||
cstorPool:
|
||||
description: CStorPool contains the details of the cstor pool to be
|
||||
upgraded
|
||||
properties:
|
||||
options:
|
||||
description: Options can be used to change the default behaviour
|
||||
of upgrade
|
||||
properties:
|
||||
ignoreStepsOnError:
|
||||
description: IgnoreStepsOnError allows to ignore steps which
|
||||
failed
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
poolName:
|
||||
description: PoolName contains the name of the cstor pool to be
|
||||
upgraded
|
||||
type: string
|
||||
type: object
|
||||
cstorPoolCluster:
|
||||
description: CStorPoolCluster contains the details of the storage
|
||||
pool claim to be upgraded
|
||||
properties:
|
||||
cspcName:
|
||||
description: CSPCName contains the name of the storage pool claim
|
||||
to be upgraded
|
||||
type: string
|
||||
options:
|
||||
description: Options can be used to change the default behaviour
|
||||
of upgrade
|
||||
properties:
|
||||
ignoreStepsOnError:
|
||||
description: IgnoreStepsOnError allows to ignore steps which
|
||||
failed
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
type: object
|
||||
cstorPoolInstance:
|
||||
description: CStorPoolInstance contains the details of the cstor pool
|
||||
to be upgraded
|
||||
properties:
|
||||
cspiName:
|
||||
description: CSPCName contains the name of the storage pool claim
|
||||
to be upgraded
|
||||
type: string
|
||||
options:
|
||||
description: Options can be used to change the default behaviour
|
||||
of upgrade
|
||||
properties:
|
||||
ignoreStepsOnError:
|
||||
description: IgnoreStepsOnError allows to ignore steps which
|
||||
failed
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
type: object
|
||||
cstorVolume:
|
||||
description: CStorVolume contains the details of the cstor volume
|
||||
to be upgraded
|
||||
properties:
|
||||
options:
|
||||
description: Options can be used to change the default behaviour
|
||||
of upgrade
|
||||
properties:
|
||||
ignoreStepsOnError:
|
||||
description: IgnoreStepsOnError allows to ignore steps which
|
||||
failed
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
pvName:
|
||||
description: PVName contains the name of the pv associated with
|
||||
the cstor volume
|
||||
type: string
|
||||
type: object
|
||||
fromVersion:
|
||||
description: FromVersion is the current version of the resource.
|
||||
type: string
|
||||
imagePrefix:
|
||||
description: ImagePrefix contains the url prefix of the image url.
|
||||
This field is optional. If not present upgrade takes the previously
|
||||
present ImagePrefix.
|
||||
type: string
|
||||
imageTag:
|
||||
description: ImageTag contains the customized tag for ToVersion if
|
||||
any. This field is optional. If not present upgrade takes the ToVersion
|
||||
as the ImageTag
|
||||
type: string
|
||||
jivaVolume:
|
||||
description: JivaVolume contains the details of the jiva volume to
|
||||
be upgraded
|
||||
properties:
|
||||
options:
|
||||
description: Options can be used to change the default behaviour
|
||||
of upgrade
|
||||
properties:
|
||||
ignoreStepsOnError:
|
||||
description: IgnoreStepsOnError allows to ignore steps which
|
||||
failed
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
pvName:
|
||||
description: PVName contains the name of the pv associated with
|
||||
the jiva volume
|
||||
type: string
|
||||
type: object
|
||||
options:
|
||||
description: Options contains the optional flags that can be passed
|
||||
during upgrade.
|
||||
properties:
|
||||
timeout:
|
||||
description: Timeout is maximum seconds to wait at any given step
|
||||
in the upgrade
|
||||
type: integer
|
||||
type: object
|
||||
storagePoolClaim:
|
||||
description: StoragePoolClaim contains the details of the storage
|
||||
pool claim to be upgraded
|
||||
properties:
|
||||
options:
|
||||
description: Options can be used to change the default behaviour
|
||||
of upgrade
|
||||
properties:
|
||||
ignoreStepsOnError:
|
||||
description: IgnoreStepsOnError allows to ignore steps which
|
||||
failed
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
spcName:
|
||||
description: SPCName contains the name of the storage pool claim
|
||||
to be upgraded
|
||||
type: string
|
||||
type: object
|
||||
toVersion:
|
||||
description: ToVersion is the upgraded version of the resource. It
|
||||
should be same as the version of control plane components version.
|
||||
type: string
|
||||
required:
|
||||
- fromVersion
|
||||
- toVersion
|
||||
type: object
|
||||
status:
|
||||
description: Status of UpgradeTask
|
||||
properties:
|
||||
completedTime:
|
||||
description: CompletedTime of Upgrade
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
phase:
|
||||
description: Phase indicates if a upgradeTask is started, success
|
||||
or errored
|
||||
type: string
|
||||
retries:
|
||||
description: Retries is the number of times the job attempted to upgrade
|
||||
the resource
|
||||
type: integer
|
||||
startTime:
|
||||
description: StartTime of Upgrade
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
upgradeDetailedStatuses:
|
||||
description: UpgradeDetailedStatuses contains the list of statuses
|
||||
of each step
|
||||
items:
|
||||
description: UpgradeDetailedStatuses represents the latest available
|
||||
observations of a UpgradeTask current state.
|
||||
properties:
|
||||
lastUpdatedAt:
|
||||
description: LastUpdatedTime of a UpgradeStep
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
message:
|
||||
description: A human-readable message indicating details about
|
||||
why the upgradeStep is in this state
|
||||
type: string
|
||||
phase:
|
||||
description: Phase indicates if the UpgradeStep is waiting,
|
||||
errored or completed.
|
||||
type: string
|
||||
reason:
|
||||
description: Reason is a brief CamelCase string that describes
|
||||
any failure and is meant for machine parsing and tidy display
|
||||
in the CLI
|
||||
type: string
|
||||
startTime:
|
||||
description: StartTime of a UpgradeStep
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
step:
|
||||
description: UpgradeStep is the current step being performed
|
||||
for a particular resource upgrade
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
||||
---
|
|
@ -0,0 +1,226 @@
|
|||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.0
|
||||
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/419"
|
||||
creationTimestamp: null
|
||||
name: volumesnapshots.snapshot.storage.k8s.io
|
||||
spec:
|
||||
group: snapshot.storage.k8s.io
|
||||
names:
|
||||
kind: VolumeSnapshot
|
||||
listKind: VolumeSnapshotList
|
||||
plural: volumesnapshots
|
||||
singular: volumesnapshot
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- description: Indicates if the snapshot is ready to be used to restore a volume.
|
||||
jsonPath: .status.readyToUse
|
||||
name: ReadyToUse
|
||||
type: boolean
|
||||
- description: If a new snapshot needs to be created, this contains the name of the source PVC from which this snapshot was (or will be) created.
|
||||
jsonPath: .spec.source.persistentVolumeClaimName
|
||||
name: SourcePVC
|
||||
type: string
|
||||
- description: If a snapshot already exists, this contains the name of the existing VolumeSnapshotContent object representing the existing snapshot.
|
||||
jsonPath: .spec.source.volumeSnapshotContentName
|
||||
name: SourceSnapshotContent
|
||||
type: string
|
||||
- description: Represents the minimum size of volume required to rehydrate from this snapshot.
|
||||
jsonPath: .status.restoreSize
|
||||
name: RestoreSize
|
||||
type: string
|
||||
- description: The name of the VolumeSnapshotClass requested by the VolumeSnapshot.
|
||||
jsonPath: .spec.volumeSnapshotClassName
|
||||
name: SnapshotClass
|
||||
type: string
|
||||
- description: Name of the VolumeSnapshotContent object to which the VolumeSnapshot object intends to bind to. Please note that verification of binding actually requires checking both VolumeSnapshot and VolumeSnapshotContent to ensure both are pointing at each other. Binding MUST be verified prior to usage of this object.
|
||||
jsonPath: .status.boundVolumeSnapshotContentName
|
||||
name: SnapshotContent
|
||||
type: string
|
||||
- description: Timestamp when the point-in-time snapshot was taken by the underlying storage system.
|
||||
jsonPath: .status.creationTime
|
||||
name: CreationTime
|
||||
type: date
|
||||
- jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: VolumeSnapshot is a user's request for either creating a point-in-time snapshot of a persistent volume, or binding to a pre-existing snapshot.
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
spec:
|
||||
description: 'spec defines the desired characteristics of a snapshot requested by a user. More info: https://kubernetes.io/docs/concepts/storage/volume-snapshots#volumesnapshots Required.'
|
||||
properties:
|
||||
source:
|
||||
description: source specifies where a snapshot will be created from. This field is immutable after creation. Required.
|
||||
properties:
|
||||
persistentVolumeClaimName:
|
||||
description: persistentVolumeClaimName specifies the name of the PersistentVolumeClaim object representing the volume from which a snapshot should be created. This PVC is assumed to be in the same namespace as the VolumeSnapshot object. This field should be set if the snapshot does not exists, and needs to be created. This field is immutable.
|
||||
type: string
|
||||
volumeSnapshotContentName:
|
||||
description: volumeSnapshotContentName specifies the name of a pre-existing VolumeSnapshotContent object representing an existing volume snapshot. This field should be set if the snapshot already exists and only needs a representation in Kubernetes. This field is immutable.
|
||||
type: string
|
||||
type: object
|
||||
oneOf:
|
||||
- required: ["persistentVolumeClaimName"]
|
||||
- required: ["volumeSnapshotContentName"]
|
||||
volumeSnapshotClassName:
|
||||
description: 'VolumeSnapshotClassName is the name of the VolumeSnapshotClass requested by the VolumeSnapshot. VolumeSnapshotClassName may be left nil to indicate that the default SnapshotClass should be used. A given cluster may have multiple default Volume SnapshotClasses: one default per CSI Driver. If a VolumeSnapshot does not specify a SnapshotClass, VolumeSnapshotSource will be checked to figure out what the associated CSI Driver is, and the default VolumeSnapshotClass associated with that CSI Driver will be used. If more than one VolumeSnapshotClass exist for a given CSI Driver and more than one have been marked as default, CreateSnapshot will fail and generate an event. Empty string is not allowed for this field.'
|
||||
type: string
|
||||
required:
|
||||
- source
|
||||
type: object
|
||||
status:
|
||||
description: status represents the current information of a snapshot. Consumers must verify binding between VolumeSnapshot and VolumeSnapshotContent objects is successful (by validating that both VolumeSnapshot and VolumeSnapshotContent point at each other) before using this object.
|
||||
properties:
|
||||
boundVolumeSnapshotContentName:
|
||||
description: 'boundVolumeSnapshotContentName is the name of the VolumeSnapshotContent object to which this VolumeSnapshot object intends to bind to. If not specified, it indicates that the VolumeSnapshot object has not been successfully bound to a VolumeSnapshotContent object yet. NOTE: To avoid possible security issues, consumers must verify binding between VolumeSnapshot and VolumeSnapshotContent objects is successful (by validating that both VolumeSnapshot and VolumeSnapshotContent point at each other) before using this object.'
|
||||
type: string
|
||||
creationTime:
|
||||
description: creationTime is the timestamp when the point-in-time snapshot is taken by the underlying storage system. In dynamic snapshot creation case, this field will be filled in by the snapshot controller with the "creation_time" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "creation_time" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. If not specified, it may indicate that the creation time of the snapshot is unknown.
|
||||
format: date-time
|
||||
type: string
|
||||
error:
|
||||
description: error is the last observed error during snapshot creation, if any. This field could be helpful to upper level controllers(i.e., application controller) to decide whether they should continue on waiting for the snapshot to be created based on the type of error reported. The snapshot controller will keep retrying when an error occurs during the snapshot creation. Upon success, this error field will be cleared.
|
||||
properties:
|
||||
message:
|
||||
description: 'message is a string detailing the encountered error during snapshot creation if specified. NOTE: message may be logged, and it should not contain sensitive information.'
|
||||
type: string
|
||||
time:
|
||||
description: time is the timestamp when the error was encountered.
|
||||
format: date-time
|
||||
type: string
|
||||
type: object
|
||||
readyToUse:
|
||||
description: readyToUse indicates if the snapshot is ready to be used to restore a volume. In dynamic snapshot creation case, this field will be filled in by the snapshot controller with the "ready_to_use" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "ready_to_use" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it, otherwise, this field will be set to "True". If not specified, it means the readiness of a snapshot is unknown.
|
||||
type: boolean
|
||||
restoreSize:
|
||||
type: string
|
||||
description: restoreSize represents the minimum size of volume required to create a volume from this snapshot. In dynamic snapshot creation case, this field will be filled in by the snapshot controller with the "size_bytes" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "size_bytes" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. When restoring a volume from this snapshot, the size of the volume MUST NOT be smaller than the restoreSize if it is specified, otherwise the restoration will fail. If not specified, it indicates that the size is unknown.
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: false
|
||||
subresources:
|
||||
status: {}
|
||||
- additionalPrinterColumns:
|
||||
- description: Indicates if the snapshot is ready to be used to restore a volume.
|
||||
jsonPath: .status.readyToUse
|
||||
name: ReadyToUse
|
||||
type: boolean
|
||||
- description: If a new snapshot needs to be created, this contains the name of the source PVC from which this snapshot was (or will be) created.
|
||||
jsonPath: .spec.source.persistentVolumeClaimName
|
||||
name: SourcePVC
|
||||
type: string
|
||||
- description: If a snapshot already exists, this contains the name of the existing VolumeSnapshotContent object representing the existing snapshot.
|
||||
jsonPath: .spec.source.volumeSnapshotContentName
|
||||
name: SourceSnapshotContent
|
||||
type: string
|
||||
- description: Represents the minimum size of volume required to rehydrate from this snapshot.
|
||||
jsonPath: .status.restoreSize
|
||||
name: RestoreSize
|
||||
type: string
|
||||
- description: The name of the VolumeSnapshotClass requested by the VolumeSnapshot.
|
||||
jsonPath: .spec.volumeSnapshotClassName
|
||||
name: SnapshotClass
|
||||
type: string
|
||||
- description: Name of the VolumeSnapshotContent object to which the VolumeSnapshot object intends to bind to. Please note that verification of binding actually requires checking both VolumeSnapshot and VolumeSnapshotContent to ensure both are pointing at each other. Binding MUST be verified prior to usage of this object.
|
||||
jsonPath: .status.boundVolumeSnapshotContentName
|
||||
name: SnapshotContent
|
||||
type: string
|
||||
- description: Timestamp when the point-in-time snapshot was taken by the underlying storage system.
|
||||
jsonPath: .status.creationTime
|
||||
name: CreationTime
|
||||
type: date
|
||||
- jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1beta1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: VolumeSnapshot is a user's request for either creating a point-in-time snapshot of a persistent volume, or binding to a pre-existing snapshot.
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
spec:
|
||||
description: 'spec defines the desired characteristics of a snapshot requested by a user. More info: https://kubernetes.io/docs/concepts/storage/volume-snapshots#volumesnapshots Required.'
|
||||
properties:
|
||||
source:
|
||||
description: source specifies where a snapshot will be created from. This field is immutable after creation. Required.
|
||||
properties:
|
||||
persistentVolumeClaimName:
|
||||
description: persistentVolumeClaimName specifies the name of the PersistentVolumeClaim object representing the volume from which a snapshot should be created. This PVC is assumed to be in the same namespace as the VolumeSnapshot object. This field should be set if the snapshot does not exists, and needs to be created. This field is immutable.
|
||||
type: string
|
||||
volumeSnapshotContentName:
|
||||
description: volumeSnapshotContentName specifies the name of a pre-existing VolumeSnapshotContent object representing an existing volume snapshot. This field should be set if the snapshot already exists and only needs a representation in Kubernetes. This field is immutable.
|
||||
type: string
|
||||
type: object
|
||||
volumeSnapshotClassName:
|
||||
description: 'VolumeSnapshotClassName is the name of the VolumeSnapshotClass requested by the VolumeSnapshot. VolumeSnapshotClassName may be left nil to indicate that the default SnapshotClass should be used. A given cluster may have multiple default Volume SnapshotClasses: one default per CSI Driver. If a VolumeSnapshot does not specify a SnapshotClass, VolumeSnapshotSource will be checked to figure out what the associated CSI Driver is, and the default VolumeSnapshotClass associated with that CSI Driver will be used. If more than one VolumeSnapshotClass exist for a given CSI Driver and more than one have been marked as default, CreateSnapshot will fail and generate an event. Empty string is not allowed for this field.'
|
||||
type: string
|
||||
required:
|
||||
- source
|
||||
type: object
|
||||
status:
|
||||
description: status represents the current information of a snapshot. Consumers must verify binding between VolumeSnapshot and VolumeSnapshotContent objects is successful (by validating that both VolumeSnapshot and VolumeSnapshotContent point at each other) before using this object.
|
||||
properties:
|
||||
boundVolumeSnapshotContentName:
|
||||
description: 'boundVolumeSnapshotContentName is the name of the VolumeSnapshotContent object to which this VolumeSnapshot object intends to bind to. If not specified, it indicates that the VolumeSnapshot object has not been successfully bound to a VolumeSnapshotContent object yet. NOTE: To avoid possible security issues, consumers must verify binding between VolumeSnapshot and VolumeSnapshotContent objects is successful (by validating that both VolumeSnapshot and VolumeSnapshotContent point at each other) before using this object.'
|
||||
type: string
|
||||
creationTime:
|
||||
description: creationTime is the timestamp when the point-in-time snapshot is taken by the underlying storage system. In dynamic snapshot creation case, this field will be filled in by the snapshot controller with the "creation_time" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "creation_time" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. If not specified, it may indicate that the creation time of the snapshot is unknown.
|
||||
format: date-time
|
||||
type: string
|
||||
error:
|
||||
description: error is the last observed error during snapshot creation, if any. This field could be helpful to upper level controllers(i.e., application controller) to decide whether they should continue on waiting for the snapshot to be created based on the type of error reported. The snapshot controller will keep retrying when an error occurs during the snapshot creation. Upon success, this error field will be cleared.
|
||||
properties:
|
||||
message:
|
||||
description: 'message is a string detailing the encountered error during snapshot creation if specified. NOTE: message may be logged, and it should not contain sensitive information.'
|
||||
type: string
|
||||
time:
|
||||
description: time is the timestamp when the error was encountered.
|
||||
format: date-time
|
||||
type: string
|
||||
type: object
|
||||
readyToUse:
|
||||
description: readyToUse indicates if the snapshot is ready to be used to restore a volume. In dynamic snapshot creation case, this field will be filled in by the snapshot controller with the "ready_to_use" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "ready_to_use" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it, otherwise, this field will be set to "True". If not specified, it means the readiness of a snapshot is unknown.
|
||||
type: boolean
|
||||
restoreSize:
|
||||
type: string
|
||||
description: restoreSize represents the minimum size of volume required to create a volume from this snapshot. In dynamic snapshot creation case, this field will be filled in by the snapshot controller with the "size_bytes" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "size_bytes" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. When restoring a volume from this snapshot, the size of the volume MUST NOT be smaller than the restoreSize if it is specified, otherwise the restoration will fail. If not specified, it indicates that the size is unknown.
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources:
|
||||
status: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
||||
|
||||
---
|
|
@ -0,0 +1,111 @@
|
|||
---
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.0
|
||||
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/419"
|
||||
creationTimestamp: null
|
||||
name: volumesnapshotclasses.snapshot.storage.k8s.io
|
||||
spec:
|
||||
group: snapshot.storage.k8s.io
|
||||
names:
|
||||
kind: VolumeSnapshotClass
|
||||
listKind: VolumeSnapshotClassList
|
||||
plural: volumesnapshotclasses
|
||||
singular: volumesnapshotclass
|
||||
scope: Cluster
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- jsonPath: .driver
|
||||
name: Driver
|
||||
type: string
|
||||
- description: Determines whether a VolumeSnapshotContent created through the VolumeSnapshotClass should be deleted when its bound VolumeSnapshot is deleted.
|
||||
jsonPath: .deletionPolicy
|
||||
name: DeletionPolicy
|
||||
type: string
|
||||
- jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: VolumeSnapshotClass specifies parameters that a underlying storage system uses when creating a volume snapshot. A specific VolumeSnapshotClass is used by specifying its name in a VolumeSnapshot object. VolumeSnapshotClasses are non-namespaced
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
deletionPolicy:
|
||||
description: deletionPolicy determines whether a VolumeSnapshotContent created through the VolumeSnapshotClass should be deleted when its bound VolumeSnapshot is deleted. Supported values are "Retain" and "Delete". "Retain" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are kept. "Delete" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are deleted. Required.
|
||||
enum:
|
||||
- Delete
|
||||
- Retain
|
||||
type: string
|
||||
driver:
|
||||
description: driver is the name of the storage driver that handles this VolumeSnapshotClass. Required.
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
parameters:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: parameters is a key-value map with storage driver specific parameters for creating snapshots. These values are opaque to Kubernetes.
|
||||
type: object
|
||||
required:
|
||||
- deletionPolicy
|
||||
- driver
|
||||
type: object
|
||||
served: true
|
||||
storage: false
|
||||
subresources: {}
|
||||
- additionalPrinterColumns:
|
||||
- jsonPath: .driver
|
||||
name: Driver
|
||||
type: string
|
||||
- description: Determines whether a VolumeSnapshotContent created through the VolumeSnapshotClass should be deleted when its bound VolumeSnapshot is deleted.
|
||||
jsonPath: .deletionPolicy
|
||||
name: DeletionPolicy
|
||||
type: string
|
||||
- jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1beta1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: VolumeSnapshotClass specifies parameters that a underlying storage system uses when creating a volume snapshot. A specific VolumeSnapshotClass is used by specifying its name in a VolumeSnapshot object. VolumeSnapshotClasses are non-namespaced
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
deletionPolicy:
|
||||
description: deletionPolicy determines whether a VolumeSnapshotContent created through the VolumeSnapshotClass should be deleted when its bound VolumeSnapshot is deleted. Supported values are "Retain" and "Delete". "Retain" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are kept. "Delete" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are deleted. Required.
|
||||
enum:
|
||||
- Delete
|
||||
- Retain
|
||||
type: string
|
||||
driver:
|
||||
description: driver is the name of the storage driver that handles this VolumeSnapshotClass. Required.
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
parameters:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: parameters is a key-value map with storage driver specific parameters for creating snapshots. These values are opaque to Kubernetes.
|
||||
type: object
|
||||
required:
|
||||
- deletionPolicy
|
||||
- driver
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
||||
---
|
|
@ -0,0 +1,291 @@
|
|||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.0
|
||||
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/419"
|
||||
creationTimestamp: null
|
||||
name: volumesnapshotcontents.snapshot.storage.k8s.io
|
||||
spec:
|
||||
group: snapshot.storage.k8s.io
|
||||
names:
|
||||
kind: VolumeSnapshotContent
|
||||
listKind: VolumeSnapshotContentList
|
||||
plural: volumesnapshotcontents
|
||||
singular: volumesnapshotcontent
|
||||
scope: Cluster
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- description: Indicates if the snapshot is ready to be used to restore a volume.
|
||||
jsonPath: .status.readyToUse
|
||||
name: ReadyToUse
|
||||
type: boolean
|
||||
- description: Represents the complete size of the snapshot in bytes
|
||||
jsonPath: .status.restoreSize
|
||||
name: RestoreSize
|
||||
type: integer
|
||||
- description: Determines whether this VolumeSnapshotContent and its physical snapshot on the underlying storage system should be deleted when its bound VolumeSnapshot is deleted.
|
||||
jsonPath: .spec.deletionPolicy
|
||||
name: DeletionPolicy
|
||||
type: string
|
||||
- description: Name of the CSI driver used to create the physical snapshot on the underlying storage system.
|
||||
jsonPath: .spec.driver
|
||||
name: Driver
|
||||
type: string
|
||||
- description: Name of the VolumeSnapshotClass to which this snapshot belongs.
|
||||
jsonPath: .spec.volumeSnapshotClassName
|
||||
name: VolumeSnapshotClass
|
||||
type: string
|
||||
- description: Name of the VolumeSnapshot object to which this VolumeSnapshotContent object is bound.
|
||||
jsonPath: .spec.volumeSnapshotRef.name
|
||||
name: VolumeSnapshot
|
||||
type: string
|
||||
- jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: VolumeSnapshotContent represents the actual "on-disk" snapshot object in the underlying storage system
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
spec:
|
||||
description: spec defines properties of a VolumeSnapshotContent created by the underlying storage system. Required.
|
||||
properties:
|
||||
deletionPolicy:
|
||||
description: deletionPolicy determines whether this VolumeSnapshotContent and its physical snapshot on the underlying storage system should be deleted when its bound VolumeSnapshot is deleted. Supported values are "Retain" and "Delete". "Retain" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are kept. "Delete" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are deleted. For dynamically provisioned snapshots, this field will automatically be filled in by the CSI snapshotter sidecar with the "DeletionPolicy" field defined in the corresponding VolumeSnapshotClass. For pre-existing snapshots, users MUST specify this field when creating the VolumeSnapshotContent object. Required.
|
||||
enum:
|
||||
- Delete
|
||||
- Retain
|
||||
type: string
|
||||
driver:
|
||||
description: driver is the name of the CSI driver used to create the physical snapshot on the underlying storage system. This MUST be the same as the name returned by the CSI GetPluginName() call for that driver. Required.
|
||||
type: string
|
||||
source:
|
||||
description: source specifies whether the snapshot is (or should be) dynamically provisioned or already exists, and just requires a Kubernetes object representation. This field is immutable after creation. Required.
|
||||
properties:
|
||||
snapshotHandle:
|
||||
description: snapshotHandle specifies the CSI "snapshot_id" of a pre-existing snapshot on the underlying storage system for which a Kubernetes object representation was (or should be) created. This field is immutable.
|
||||
type: string
|
||||
volumeHandle:
|
||||
description: volumeHandle specifies the CSI "volume_id" of the volume from which a snapshot should be dynamically taken from. This field is immutable.
|
||||
type: string
|
||||
type: object
|
||||
oneOf:
|
||||
- required: ["snapshotHandle"]
|
||||
- required: ["volumeHandle"]
|
||||
volumeSnapshotClassName:
|
||||
description: name of the VolumeSnapshotClass from which this snapshot was (or will be) created. Note that after provisioning, the VolumeSnapshotClass may be deleted or recreated with different set of values, and as such, should not be referenced post-snapshot creation.
|
||||
type: string
|
||||
volumeSnapshotRef:
|
||||
description: volumeSnapshotRef specifies the VolumeSnapshot object to which this VolumeSnapshotContent object is bound. VolumeSnapshot.Spec.VolumeSnapshotContentName field must reference to this VolumeSnapshotContent's name for the bidirectional binding to be valid. For a pre-existing VolumeSnapshotContent object, name and namespace of the VolumeSnapshot object MUST be provided for binding to happen. This field is immutable after creation. Required.
|
||||
properties:
|
||||
apiVersion:
|
||||
description: API version of the referent.
|
||||
type: string
|
||||
fieldPath:
|
||||
description: 'If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
name:
|
||||
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
|
||||
type: string
|
||||
namespace:
|
||||
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
|
||||
type: string
|
||||
resourceVersion:
|
||||
description: 'Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
|
||||
type: string
|
||||
uid:
|
||||
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
|
||||
type: string
|
||||
type: object
|
||||
required:
|
||||
- deletionPolicy
|
||||
- driver
|
||||
- source
|
||||
- volumeSnapshotRef
|
||||
type: object
|
||||
status:
|
||||
description: status represents the current information of a snapshot.
|
||||
properties:
|
||||
creationTime:
|
||||
description: creationTime is the timestamp when the point-in-time snapshot is taken by the underlying storage system. In dynamic snapshot creation case, this field will be filled in by the CSI snapshotter sidecar with the "creation_time" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "creation_time" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. If not specified, it indicates the creation time is unknown. The format of this field is a Unix nanoseconds time encoded as an int64. On Unix, the command `date +%s%N` returns the current time in nanoseconds since 1970-01-01 00:00:00 UTC.
|
||||
format: int64
|
||||
type: integer
|
||||
error:
|
||||
description: error is the last observed error during snapshot creation, if any. Upon success after retry, this error field will be cleared.
|
||||
properties:
|
||||
message:
|
||||
description: 'message is a string detailing the encountered error during snapshot creation if specified. NOTE: message may be logged, and it should not contain sensitive information.'
|
||||
type: string
|
||||
time:
|
||||
description: time is the timestamp when the error was encountered.
|
||||
format: date-time
|
||||
type: string
|
||||
type: object
|
||||
readyToUse:
|
||||
description: readyToUse indicates if a snapshot is ready to be used to restore a volume. In dynamic snapshot creation case, this field will be filled in by the CSI snapshotter sidecar with the "ready_to_use" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "ready_to_use" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it, otherwise, this field will be set to "True". If not specified, it means the readiness of a snapshot is unknown.
|
||||
type: boolean
|
||||
restoreSize:
|
||||
description: restoreSize represents the complete size of the snapshot in bytes. In dynamic snapshot creation case, this field will be filled in by the CSI snapshotter sidecar with the "size_bytes" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "size_bytes" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. When restoring a volume from this snapshot, the size of the volume MUST NOT be smaller than the restoreSize if it is specified, otherwise the restoration will fail. If not specified, it indicates that the size is unknown.
|
||||
format: int64
|
||||
minimum: 0
|
||||
type: integer
|
||||
snapshotHandle:
|
||||
description: snapshotHandle is the CSI "snapshot_id" of a snapshot on the underlying storage system. If not specified, it indicates that dynamic snapshot creation has either failed or it is still in progress.
|
||||
type: string
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: false
|
||||
subresources:
|
||||
status: {}
|
||||
- additionalPrinterColumns:
|
||||
- description: Indicates if the snapshot is ready to be used to restore a volume.
|
||||
jsonPath: .status.readyToUse
|
||||
name: ReadyToUse
|
||||
type: boolean
|
||||
- description: Represents the complete size of the snapshot in bytes
|
||||
jsonPath: .status.restoreSize
|
||||
name: RestoreSize
|
||||
type: integer
|
||||
- description: Determines whether this VolumeSnapshotContent and its physical snapshot on the underlying storage system should be deleted when its bound VolumeSnapshot is deleted.
|
||||
jsonPath: .spec.deletionPolicy
|
||||
name: DeletionPolicy
|
||||
type: string
|
||||
- description: Name of the CSI driver used to create the physical snapshot on the underlying storage system.
|
||||
jsonPath: .spec.driver
|
||||
name: Driver
|
||||
type: string
|
||||
- description: Name of the VolumeSnapshotClass to which this snapshot belongs.
|
||||
jsonPath: .spec.volumeSnapshotClassName
|
||||
name: VolumeSnapshotClass
|
||||
type: string
|
||||
- description: Name of the VolumeSnapshot object to which this VolumeSnapshotContent object is bound.
|
||||
jsonPath: .spec.volumeSnapshotRef.name
|
||||
name: VolumeSnapshot
|
||||
type: string
|
||||
- jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1beta1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: VolumeSnapshotContent represents the actual "on-disk" snapshot object in the underlying storage system
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
spec:
|
||||
description: spec defines properties of a VolumeSnapshotContent created by the underlying storage system. Required.
|
||||
properties:
|
||||
deletionPolicy:
|
||||
description: deletionPolicy determines whether this VolumeSnapshotContent and its physical snapshot on the underlying storage system should be deleted when its bound VolumeSnapshot is deleted. Supported values are "Retain" and "Delete". "Retain" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are kept. "Delete" means that the VolumeSnapshotContent and its physical snapshot on underlying storage system are deleted. For dynamically provisioned snapshots, this field will automatically be filled in by the CSI snapshotter sidecar with the "DeletionPolicy" field defined in the corresponding VolumeSnapshotClass. For pre-existing snapshots, users MUST specify this field when creating the VolumeSnapshotContent object. Required.
|
||||
enum:
|
||||
- Delete
|
||||
- Retain
|
||||
type: string
|
||||
driver:
|
||||
description: driver is the name of the CSI driver used to create the physical snapshot on the underlying storage system. This MUST be the same as the name returned by the CSI GetPluginName() call for that driver. Required.
|
||||
type: string
|
||||
source:
|
||||
description: source specifies whether the snapshot is (or should be) dynamically provisioned or already exists, and just requires a Kubernetes object representation. This field is immutable after creation. Required.
|
||||
properties:
|
||||
snapshotHandle:
|
||||
description: snapshotHandle specifies the CSI "snapshot_id" of a pre-existing snapshot on the underlying storage system for which a Kubernetes object representation was (or should be) created. This field is immutable.
|
||||
type: string
|
||||
volumeHandle:
|
||||
description: volumeHandle specifies the CSI "volume_id" of the volume from which a snapshot should be dynamically taken from. This field is immutable.
|
||||
type: string
|
||||
type: object
|
||||
volumeSnapshotClassName:
|
||||
description: name of the VolumeSnapshotClass from which this snapshot was (or will be) created. Note that after provisioning, the VolumeSnapshotClass may be deleted or recreated with different set of values, and as such, should not be referenced post-snapshot creation.
|
||||
type: string
|
||||
volumeSnapshotRef:
|
||||
description: volumeSnapshotRef specifies the VolumeSnapshot object to which this VolumeSnapshotContent object is bound. VolumeSnapshot.Spec.VolumeSnapshotContentName field must reference to this VolumeSnapshotContent's name for the bidirectional binding to be valid. For a pre-existing VolumeSnapshotContent object, name and namespace of the VolumeSnapshot object MUST be provided for binding to happen. This field is immutable after creation. Required.
|
||||
properties:
|
||||
apiVersion:
|
||||
description: API version of the referent.
|
||||
type: string
|
||||
fieldPath:
|
||||
description: 'If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
name:
|
||||
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
|
||||
type: string
|
||||
namespace:
|
||||
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
|
||||
type: string
|
||||
resourceVersion:
|
||||
description: 'Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
|
||||
type: string
|
||||
uid:
|
||||
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
|
||||
type: string
|
||||
type: object
|
||||
required:
|
||||
- deletionPolicy
|
||||
- driver
|
||||
- source
|
||||
- volumeSnapshotRef
|
||||
type: object
|
||||
status:
|
||||
description: status represents the current information of a snapshot.
|
||||
properties:
|
||||
creationTime:
|
||||
description: creationTime is the timestamp when the point-in-time snapshot is taken by the underlying storage system. In dynamic snapshot creation case, this field will be filled in by the CSI snapshotter sidecar with the "creation_time" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "creation_time" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. If not specified, it indicates the creation time is unknown. The format of this field is a Unix nanoseconds time encoded as an int64. On Unix, the command `date +%s%N` returns the current time in nanoseconds since 1970-01-01 00:00:00 UTC.
|
||||
format: int64
|
||||
type: integer
|
||||
error:
|
||||
description: error is the last observed error during snapshot creation, if any. Upon success after retry, this error field will be cleared.
|
||||
properties:
|
||||
message:
|
||||
description: 'message is a string detailing the encountered error during snapshot creation if specified. NOTE: message may be logged, and it should not contain sensitive information.'
|
||||
type: string
|
||||
time:
|
||||
description: time is the timestamp when the error was encountered.
|
||||
format: date-time
|
||||
type: string
|
||||
type: object
|
||||
readyToUse:
|
||||
description: readyToUse indicates if a snapshot is ready to be used to restore a volume. In dynamic snapshot creation case, this field will be filled in by the CSI snapshotter sidecar with the "ready_to_use" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "ready_to_use" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it, otherwise, this field will be set to "True". If not specified, it means the readiness of a snapshot is unknown.
|
||||
type: boolean
|
||||
restoreSize:
|
||||
description: restoreSize represents the complete size of the snapshot in bytes. In dynamic snapshot creation case, this field will be filled in by the CSI snapshotter sidecar with the "size_bytes" value returned from CSI "CreateSnapshot" gRPC call. For a pre-existing snapshot, this field will be filled with the "size_bytes" value returned from the CSI "ListSnapshots" gRPC call if the driver supports it. When restoring a volume from this snapshot, the size of the volume MUST NOT be smaller than the restoreSize if it is specified, otherwise the restoration will fail. If not specified, it indicates that the size is unknown.
|
||||
format: int64
|
||||
minimum: 0
|
||||
type: integer
|
||||
snapshotHandle:
|
||||
description: snapshotHandle is the CSI "snapshot_id" of a snapshot on the underlying storage system. If not specified, it indicates that dynamic snapshot creation has either failed or it is still in progress.
|
||||
type: string
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources:
|
||||
status: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
||||
---
|
|
@ -0,0 +1,11 @@
|
|||
The OpenEBS cstor has been installed check its status by running:
|
||||
$ kubectl get pods -n {{ .Release.Namespace }}
|
||||
|
||||
Use `kubectl get bd -n {{ .Release.Namespace }} ` to see the list of
|
||||
blockdevices attached to the Kubernetes cluster nodes.
|
||||
|
||||
For more information, visit our Slack at https://openebs.io/community or view
|
||||
the documentation online at http://docs.openebs.io/.
|
||||
|
||||
For more information related to cstor pool and volume provisioning, visit
|
||||
https://github.com/openebs/cstor-operators/tree/master/docs .
|
|
@ -0,0 +1,217 @@
|
|||
{{/* vim: set filetype=mustache: */}}
|
||||
{{/*
|
||||
Expand the name of the chart.
|
||||
*/}}
|
||||
{{- define "cstor.name" -}}
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create a default fully qualified app name.
|
||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||
If release name contains chart name it will be used as a full name.
|
||||
*/}}
|
||||
{{- define "cstor.fullname" -}}
|
||||
{{- if .Values.fullnameOverride }}
|
||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||
{{- if contains $name .Release.Name }}
|
||||
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create chart name and version as used by the chart label.
|
||||
*/}}
|
||||
{{- define "cstor.chart" -}}
|
||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create the name of the service account to use
|
||||
*/}}
|
||||
{{- define "cstor.serviceAccountName" -}}
|
||||
{{- if .Values.serviceAccount.create }}
|
||||
{{- default (include "cstor.fullname" .) .Values.serviceAccount.name }}
|
||||
{{- else }}
|
||||
{{- default "default" .Values.serviceAccount.name }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Define meta labels for cstor components
|
||||
*/}}
|
||||
{{- define "cstor.common.metaLabels" -}}
|
||||
chart: {{ template "cstor.chart" . }}
|
||||
heritage: {{ .Release.Service }}
|
||||
openebs.io/version: {{ .Values.release.version | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create match labels for cstor admission server
|
||||
*/}}
|
||||
{{- define "cstor.admissionServer.matchLabels" -}}
|
||||
app: {{ .Values.admissionServer.componentName | quote }}
|
||||
release: {{ .Release.Name }}
|
||||
component: {{ .Values.admissionServer.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create component labels for cstor admission server
|
||||
*/}}
|
||||
{{- define "cstor.admissionServer.componentLabels" -}}
|
||||
openebs.io/component-name: {{ .Values.admissionServer.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create labels for cstor admission server
|
||||
*/}}
|
||||
{{- define "cstor.admissionServer.labels" -}}
|
||||
{{ include "cstor.common.metaLabels" . }}
|
||||
{{ include "cstor.admissionServer.matchLabels" . }}
|
||||
{{ include "cstor.admissionServer.componentLabels" . }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create match labels for cstor cspc operator
|
||||
*/}}
|
||||
{{- define "cstor.cspcOperator.matchLabels" -}}
|
||||
name: {{ .Values.cspcOperator.componentName | quote }}
|
||||
release: {{ .Release.Name }}
|
||||
component: {{ .Values.cspcOperator.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create component labels cstor cspc operator
|
||||
*/}}
|
||||
{{- define "cstor.cspcOperator.componentLabels" -}}
|
||||
openebs.io/component-name: {{ .Values.cspcOperator.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
{{/*
|
||||
Create labels for cstor cspc operator
|
||||
*/}}
|
||||
{{- define "cstor.cspcOperator.labels" -}}
|
||||
{{ include "cstor.common.metaLabels" . }}
|
||||
{{ include "cstor.cspcOperator.matchLabels" . }}
|
||||
{{ include "cstor.cspcOperator.componentLabels" . }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create match labels for cstor cvc operator
|
||||
*/}}
|
||||
{{- define "cstor.cvcOperator.matchLabels" -}}
|
||||
name: {{ .Values.cvcOperator.componentName | quote }}
|
||||
release: {{ .Release.Name }}
|
||||
component: {{ .Values.cvcOperator.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create component labels cstor cvc operator
|
||||
*/}}
|
||||
{{- define "cstor.cvcOperator.componentLabels" -}}
|
||||
openebs.io/component-name: {{ .Values.cvcOperator.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create component labels cstor cvc operator service
|
||||
*/}}
|
||||
{{- define "cstor.cvcOperatorService.componentLabels" -}}
|
||||
openebs.io/component-name: {{ printf "%s-svc" .Values.cvcOperator.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
{{/*
|
||||
Create labels for cstor cvc operator
|
||||
*/}}
|
||||
{{- define "cstor.cvcOperator.labels" -}}
|
||||
{{ include "cstor.common.metaLabels" . }}
|
||||
{{ include "cstor.cvcOperator.matchLabels" . }}
|
||||
{{ include "cstor.cvcOperator.componentLabels" . }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create labels for cstor cvc operator service
|
||||
*/}}
|
||||
{{- define "cstor.cvcOperatorService.labels" -}}
|
||||
{{ include "cstor.common.metaLabels" . }}
|
||||
{{ include "cstor.cvcOperator.matchLabels" . }}
|
||||
{{ include "cstor.cvcOperatorService.componentLabels" . }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create match labels for cstor csi node operator
|
||||
*/}}
|
||||
{{- define "cstor.csiNode.matchLabels" -}}
|
||||
name: {{ .Values.csiNode.componentName | quote }}
|
||||
release: {{ .Release.Name }}
|
||||
component: {{ .Values.csiNode.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create component labels cstor csi node operator
|
||||
*/}}
|
||||
{{- define "cstor.csiNode.componentLabels" -}}
|
||||
openebs.io/component-name: {{ .Values.csiNode.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create labels for cstor csi node operator
|
||||
*/}}
|
||||
{{- define "cstor.csiNode.labels" -}}
|
||||
{{ include "cstor.common.metaLabels" . }}
|
||||
{{ include "cstor.csiNode.matchLabels" . }}
|
||||
{{ include "cstor.csiNode.componentLabels" . }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create match labels for cstor csi controller
|
||||
*/}}
|
||||
{{- define "cstor.csiController.matchLabels" -}}
|
||||
name: {{ .Values.csiController.componentName | quote }}
|
||||
release: {{ .Release.Name }}
|
||||
component: {{ .Values.csiController.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create component labels cstor csi controller
|
||||
*/}}
|
||||
{{- define "cstor.csiController.componentLabels" -}}
|
||||
openebs.io/component-name: {{ .Values.csiController.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create labels for cstor csi controller
|
||||
*/}}
|
||||
{{- define "cstor.csiController.labels" -}}
|
||||
{{ include "cstor.common.metaLabels" . }}
|
||||
{{ include "cstor.csiController.matchLabels" . }}
|
||||
{{ include "cstor.csiController.componentLabels" . }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create the name of the priority class for csi node plugin
|
||||
*/}}
|
||||
{{- define "cstor.csiNode.priorityClassName" -}}
|
||||
{{- if .Values.csiNode.priorityClass.create }}
|
||||
{{- printf "%s-%s" .Release.Name .Values.csiNode.priorityClass.name | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- printf "%s" .Values.csiNode.priorityClass.name | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create the name of the priority class for csi controller plugin
|
||||
*/}}
|
||||
{{- define "cstor.csiController.priorityClassName" -}}
|
||||
{{- if .Values.csiController.priorityClass.create }}
|
||||
{{- printf "%s-%s" .Release.Name .Values.csiController.priorityClass.name | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- printf "%s" .Values.csiController.priorityClass.name | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
|
@ -0,0 +1,59 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ template "cstor.fullname" . }}-admission-server
|
||||
{{- with .Values.admissionServer.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "cstor.admissionServer.labels" . | nindent 4 }}
|
||||
spec:
|
||||
replicas: {{ .Values.admissionServer.replicas }}
|
||||
strategy:
|
||||
type: Recreate
|
||||
rollingUpdate: null
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "cstor.admissionServer.matchLabels" . | nindent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "cstor.admissionServer.labels" . | nindent 8 }}
|
||||
{{- if .Values.admissionServer.podLabels }}
|
||||
{{ toYaml .Values.admissionServer.podLabels | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
serviceAccountName: {{ .Values.serviceAccount.cstorOperator.name }}
|
||||
containers:
|
||||
- name: {{ template "cstor.fullname" . }}-admission-webhook
|
||||
image: "{{ .Values.admissionServer.image.registry }}{{ .Values.admissionServer.image.repository }}:{{ .Values.admissionServer.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.admissionServer.image.pullPolicy }}
|
||||
resources:
|
||||
{{ toYaml .Values.admissionServer.resources | indent 12 }}
|
||||
args:
|
||||
- -alsologtostderr
|
||||
- -v=2
|
||||
- 2>&1
|
||||
env:
|
||||
- name: OPENEBS_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: ADMISSION_WEBHOOK_FAILURE_POLICY
|
||||
value: {{ .Values.admissionServer.failurePolicy }}
|
||||
{{- if .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{ toYaml .Values.imagePullSecrets | indent 2 }}
|
||||
{{- end }}
|
||||
{{- if .Values.admissionServer.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.admissionServer.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.admissionServer.securityContext }}
|
||||
securityContext:
|
||||
{{ toYaml .Values.admissionServer.securityContext | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.admissionServer.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml .Values.admissionServer.tolerations | indent 8 }}
|
||||
{{- end }}
|
|
@ -0,0 +1,39 @@
|
|||
# HELM first deletes RBAC, then it tries to delete other resources like CSPC and PVC.
|
||||
# We've got validating webhook on CSPC and PVC.
|
||||
# But even that the policy of this webhook is Ignore, it fails because the ServiceAccount
|
||||
# does not have permission to access resources like BDC anymore which are used for validation.
|
||||
# Therefore we first need to delete webhook so we can delete the rest of the deployments.
|
||||
{{- $kubeMinor := .Capabilities.KubeVersion.Minor | replace "+" "" }}
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: {{ template "cstor.fullname" . }}-webhook-cleanup
|
||||
namespace: {{ .Release.Namespace }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-delete
|
||||
"helm.sh/hook-delete-policy": hook-succeeded
|
||||
labels:
|
||||
app: {{ template "cstor.name" . }}
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
name: {{ template "cstor.fullname" . }}-webhook-cleanup
|
||||
labels:
|
||||
app: {{ template "cstor.name" . }}
|
||||
spec:
|
||||
serviceAccountName: {{ .Values.serviceAccount.cstorOperator.name }}
|
||||
containers:
|
||||
- name: kubectl
|
||||
{{- /* bitnami maintains an image for all k8s versions */}}
|
||||
{{- /* see: https://hub.docker.com/r/bitnami/kubectl */}}
|
||||
{{- if .Values.cleanup.image.tag }}
|
||||
image: "{{ .Values.cleanup.image.registry }}{{ .Values.cleanup.image.repository }}:{{ .Values.cleanup.image.tag }}"
|
||||
{{- else }}
|
||||
image: "{{ .Values.cleanup.image.registry }}{{ .Values.cleanup.image.repository }}:{{ .Capabilities.KubeVersion.Major }}.{{ $kubeMinor }}"
|
||||
{{- end }}
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- >
|
||||
kubectl delete validatingWebhookConfiguration openebs-cstor-validation-webhook || true;
|
||||
restartPolicy: OnFailure
|
|
@ -0,0 +1,196 @@
|
|||
{{- if .Values.serviceAccount.csiController.create -}}
|
||||
kind: ServiceAccount
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: {{ .Values.serviceAccount.csiController.name }}
|
||||
labels:
|
||||
{{- include "cstor.csiController.labels" . | nindent 4 }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- end }}
|
||||
{{- if .Values.rbac.create }}
|
||||
---
|
||||
# cstor csi roles and bindings
|
||||
kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-cstor-csi-snapshotter-binding
|
||||
labels:
|
||||
{{- include "cstor.csiController.labels" . | nindent 4 }}
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ .Values.serviceAccount.csiController.name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: openebs-cstor-csi-snapshotter-role
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-cstor-csi-snapshotter-role
|
||||
labels:
|
||||
{{- include "cstor.csiController.labels" . | nindent 4 }}
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumes"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumeclaims"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: ["storage.k8s.io"]
|
||||
resources: ["storageclasses"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["list", "watch", "create", "update", "patch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets"]
|
||||
verbs: ["get", "list"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshotclasses"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshotcontents"]
|
||||
verbs: ["create", "get", "list", "watch", "update", "delete"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshotcontents/status"]
|
||||
verbs: ["update"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshots"]
|
||||
verbs: ["get", "list", "watch", "update"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshots/status"]
|
||||
verbs: ["update"]
|
||||
- apiGroups: ["coordination.k8s.io"]
|
||||
resources: ["leases"]
|
||||
verbs: ["get", "watch", "list", "delete", "update", "create"]
|
||||
- apiGroups: ["apiextensions.k8s.io"]
|
||||
resources: ["customresourcedefinitions"]
|
||||
verbs: ["create", "list", "watch", "delete", "get", "update"]
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-cstor-csi-provisioner-role
|
||||
labels:
|
||||
{{- include "cstor.csiController.labels" . | nindent 4 }}
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets","namespaces"]
|
||||
verbs: ["get", "list"]
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "pods" ]
|
||||
verbs: [ "get", "list", "watch" ]
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumes", "services"]
|
||||
verbs: ["get", "list", "watch", "create", "delete", "update", "patch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumeclaims"]
|
||||
verbs: ["get", "list", "watch", "update"]
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumeclaims/status"]
|
||||
verbs: ["update", "patch"]
|
||||
- apiGroups: ["storage.k8s.io"]
|
||||
resources: ["storageclasses", "csinodes"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["list", "watch", "create", "update", "patch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshots"]
|
||||
verbs: ["get", "list"]
|
||||
- apiGroups: ["storage.k8s.io"]
|
||||
resources: ["volumeattachments"]
|
||||
verbs: ["get", "list", "watch", "create", "delete", "update", "patch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshotcontents"]
|
||||
verbs: ["get", "list"]
|
||||
- apiGroups: ["coordination.k8s.io"]
|
||||
resources: ["leases"]
|
||||
verbs: ["*"]
|
||||
- apiGroups: ["*"]
|
||||
resources: ["cstorvolumeattachments", "cstorvolumes","cstorvolumeconfigs"]
|
||||
verbs: ["*"]
|
||||
---
|
||||
kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-cstor-csi-provisioner-binding
|
||||
labels:
|
||||
{{- include "cstor.csiController.labels" . | nindent 4 }}
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ .Values.serviceAccount.csiController.name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: openebs-cstor-csi-provisioner-role
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
############################## CSI- Attacher #######################
|
||||
# Attacher must be able to work with PVs, nodes and VolumeAttachments
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-cstor-csi-attacher-role
|
||||
labels:
|
||||
{{- include "cstor.csiController.labels" . | nindent 4 }}
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumes"]
|
||||
verbs: ["get", "list", "watch", "update"]
|
||||
- apiGroups: [""]
|
||||
resources: ["nodes"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: ["csi.storage.k8s.io"]
|
||||
resources: ["csinodeinfos"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: ["storage.k8s.io"]
|
||||
resources: ["volumeattachments", "csinodes"]
|
||||
verbs: ["get", "list", "watch", "update"]
|
||||
- apiGroups: [ "storage.k8s.io" ]
|
||||
resources: [ "volumeattachments/status" ]
|
||||
verbs: [ "patch" ]
|
||||
---
|
||||
kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-cstor-csi-attacher-binding
|
||||
labels:
|
||||
{{- include "cstor.csiController.labels" . | nindent 4 }}
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ .Values.serviceAccount.csiController.name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: openebs-cstor-csi-attacher-role
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-cstor-csi-cluster-registrar-role
|
||||
labels:
|
||||
{{- include "cstor.csiController.labels" . | nindent 4 }}
|
||||
rules:
|
||||
- apiGroups: ["csi.storage.k8s.io"]
|
||||
resources: ["csidrivers"]
|
||||
verbs: ["create", "delete"]
|
||||
---
|
||||
kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-cstor-csi-cluster-registrar-binding
|
||||
labels:
|
||||
{{- include "cstor.csiController.labels" . | nindent 4 }}
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ .Values.serviceAccount.csiController.name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: openebs-cstor-csi-cluster-registrar-role
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
{{- end }}
|
|
@ -0,0 +1,137 @@
|
|||
kind: StatefulSet
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: {{ template "cstor.fullname" . }}-csi-controller
|
||||
{{- with .Values.csiController.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "cstor.csiController.labels" . | nindent 4 }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "cstor.csiController.matchLabels" . | nindent 6 }}
|
||||
serviceName: "openebs-csi"
|
||||
replicas: {{ .Values.csiController.replicas }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "cstor.csiController.labels" . | nindent 8 }}
|
||||
{{- if .Values.csiController.podLabels }}
|
||||
{{ toYaml .Values.csiController.podLabels | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
priorityClassName: {{ template "cstor.csiController.priorityClassName" . }}
|
||||
serviceAccount: {{ .Values.serviceAccount.csiController.name }}
|
||||
containers:
|
||||
- name: {{ .Values.csiController.resizer.name }}
|
||||
image: "{{ .Values.csiController.resizer.image.registry }}{{ .Values.csiController.resizer.image.repository }}:{{ .Values.csiController.resizer.image.tag }}"
|
||||
resources:
|
||||
{{ toYaml .Values.csiController.resources | indent 12 }}
|
||||
args:
|
||||
- "--v=5"
|
||||
- "--csi-address=$(ADDRESS)"
|
||||
- "--leader-election"
|
||||
env:
|
||||
- name: ADDRESS
|
||||
value: /var/lib/csi/sockets/pluginproxy/csi.sock
|
||||
imagePullPolicy: {{ .Values.csiController.resizer.image.pullPolicy }}
|
||||
volumeMounts:
|
||||
- name: socket-dir
|
||||
mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||
- name: {{ .Values.csiController.snapshotter.name }}
|
||||
image: "{{ .Values.csiController.snapshotter.image.registry }}{{ .Values.csiController.snapshotter.image.repository }}:{{ .Values.csiController.snapshotter.image.tag }}"
|
||||
args:
|
||||
- "--csi-address=$(ADDRESS)"
|
||||
env:
|
||||
- name: ADDRESS
|
||||
value: /var/lib/csi/sockets/pluginproxy/csi.sock
|
||||
imagePullPolicy: {{ .Values.csiController.snapshotter.image.pullPolicy }}
|
||||
volumeMounts:
|
||||
- name: socket-dir
|
||||
mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||
- name: {{ .Values.csiController.snapshotController.name }}
|
||||
image: "{{ .Values.csiController.snapshotController.image.registry }}{{ .Values.csiController.snapshotController.image.repository }}:{{ .Values.csiController.snapshotController.image.tag }}"
|
||||
args:
|
||||
- "--v=5"
|
||||
- "--leader-election=false"
|
||||
imagePullPolicy: {{ .Values.csiController.snapshotController.image.pullPolicy }}
|
||||
- name: {{ .Values.csiController.provisioner.name }}
|
||||
image: "{{ .Values.csiController.provisioner.image.registry }}{{ .Values.csiController.provisioner.image.repository }}:{{ .Values.csiController.provisioner.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.csiController.provisioner.image.pullPolicy }}
|
||||
args:
|
||||
- "--csi-address=$(ADDRESS)"
|
||||
- "--v=5"
|
||||
- "--feature-gates=Topology=true"
|
||||
- "--extra-create-metadata=true"
|
||||
- "--metrics-address=:22011"
|
||||
- "--timeout=250s"
|
||||
- "--default-fstype=ext4"
|
||||
env:
|
||||
- name: MY_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.name
|
||||
- name: ADDRESS
|
||||
value: /var/lib/csi/sockets/pluginproxy/csi.sock
|
||||
volumeMounts:
|
||||
- name: socket-dir
|
||||
mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||
- name: {{ .Values.csiController.attacher.name }}
|
||||
image: "{{ .Values.csiController.attacher.image.registry }}{{ .Values.csiController.attacher.image.repository }}:{{ .Values.csiController.attacher.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.csiController.attacher.image.pullPolicy }}
|
||||
args:
|
||||
- "--v=5"
|
||||
- "--csi-address=$(ADDRESS)"
|
||||
env:
|
||||
- name: ADDRESS
|
||||
value: /var/lib/csi/sockets/pluginproxy/csi.sock
|
||||
volumeMounts:
|
||||
- name: socket-dir
|
||||
mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||
- name: {{ .Values.cstorCSIPlugin.name }}
|
||||
image: "{{ .Values.cstorCSIPlugin.image.registry }}{{ .Values.cstorCSIPlugin.image.repository }}:{{ .Values.cstorCSIPlugin.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.cstorCSIPlugin.image.pullPolicy }}
|
||||
env:
|
||||
- name: OPENEBS_CONTROLLER_DRIVER
|
||||
value: controller
|
||||
- name: OPENEBS_CSI_ENDPOINT
|
||||
value: unix:///var/lib/csi/sockets/pluginproxy/csi.sock
|
||||
- name: OPENEBS_CSI_API_URL
|
||||
value: https://openebs.io
|
||||
# OpenEBS namespace where the openebs cstor operator components
|
||||
# has been installed
|
||||
- name: OPENEBS_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: OPENEBS_IO_INSTALLER_TYPE
|
||||
value: "cstor-helm"
|
||||
- name: OPENEBS_IO_ENABLE_ANALYTICS
|
||||
value: "{{ .Values.analytics.enabled }}"
|
||||
args :
|
||||
- "--endpoint=$(OPENEBS_CSI_ENDPOINT)"
|
||||
- "--url=$(OPENEBS_CSI_API_URL)"
|
||||
- "--plugin=$(OPENEBS_CONTROLLER_DRIVER)"
|
||||
volumeMounts:
|
||||
- name: socket-dir
|
||||
mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||
volumes:
|
||||
- name: socket-dir
|
||||
emptyDir: {}
|
||||
{{- if .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{ toYaml .Values.imagePullSecrets | indent 2 }}
|
||||
{{- end }}
|
||||
{{- if .Values.csiController.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.csiController.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.csiController.securityContext }}
|
||||
securityContext:
|
||||
{{ toYaml .Values.csiController.securityContext | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.csiController.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml .Values.csiController.tolerations | indent 8 }}
|
||||
{{- end }}
|
|
@ -0,0 +1,16 @@
|
|||
{{- if .Values.csiDriver.create -}}
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: CSIDriver
|
||||
metadata:
|
||||
name: cstor.csi.openebs.io
|
||||
spec:
|
||||
# Supports persistent inline volumes.
|
||||
volumeLifecycleModes:
|
||||
- Persistent
|
||||
# Not yet supported but added just to support upgrade control plane seamlessly
|
||||
- Ephemeral
|
||||
# To determine at runtime which mode a volume uses, pod info and its
|
||||
# "csi.storage.k8s.io/ephemeral" entry are needed.
|
||||
podInfoOnMount: {{ .Values.csiDriver.podInfoOnMount }}
|
||||
attachRequired: {{ .Values.csiDriver.attachRequired }}
|
||||
{{- end }}
|
|
@ -0,0 +1,18 @@
|
|||
kind: ConfigMap
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: openebs-cstor-csi-iscsiadm
|
||||
data:
|
||||
iscsiadm: |
|
||||
#!/bin/sh
|
||||
if [ -x /host/sbin/iscsiadm ]; then
|
||||
chroot /host /sbin/iscsiadm "$@"
|
||||
elif [ -x /host/usr/local/sbin/iscsiadm ]; then
|
||||
chroot /host /usr/local/sbin/iscsiadm "$@"
|
||||
elif [ -x /host/bin/iscsiadm ]; then
|
||||
chroot /host /bin/iscsiadm "$@"
|
||||
elif [ -x /host/usr/local/bin/iscsiadm ]; then
|
||||
chroot /host /usr/local/bin/iscsiadm "$@"
|
||||
else
|
||||
chroot /host iscsiadm "$@"
|
||||
fi
|
|
@ -0,0 +1,73 @@
|
|||
{{- if .Values.serviceAccount.csiNode.create -}}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ .Values.serviceAccount.csiNode.name }}
|
||||
labels:
|
||||
{{- include "cstor.csiNode.labels" . | nindent 4 }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- end }}
|
||||
{{- if .Values.rbac.create }}
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-cstor-csi-registrar-role
|
||||
labels:
|
||||
{{- include "cstor.csiNode.labels" . | nindent 4 }}
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["get", "list", "watch", "create", "update", "patch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumes", "nodes", "services"]
|
||||
verbs: ["get", "list", "patch"]
|
||||
- apiGroups: ["*"]
|
||||
resources: ["cstorvolumeattachments", "cstorvolumes","cstorvolumeconfigs"]
|
||||
verbs: ["get", "list", "watch", "create", "update", "delete", "patch"]
|
||||
---
|
||||
kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-cstor-csi-registrar-binding
|
||||
labels:
|
||||
{{- include "cstor.csiNode.labels" . | nindent 4 }}
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ .Values.serviceAccount.csiNode.name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: openebs-cstor-csi-registrar-role
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
{{- if .Values.rbac.pspEnabled }}
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-cstor-csi-node-role
|
||||
labels:
|
||||
{{- include "cstor.csiNode.labels" . | nindent 4 }}
|
||||
rules:
|
||||
- apiGroups: ['policy']
|
||||
resources: ['podsecuritypolicies']
|
||||
verbs: ['use']
|
||||
resourceNames:
|
||||
- openebs-cstor-csi-node-psp
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: openebs-cstor-csi-node-binding
|
||||
labels:
|
||||
{{- include "cstor.csiNode.labels" . | nindent 4 }}
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: openebs-cstor-csi-node-role
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ .Values.serviceAccount.csiNode.name }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
{{- end }}
|
||||
{{- end }}
|
|
@ -0,0 +1,143 @@
|
|||
kind: DaemonSet
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: {{ template "cstor.fullname" . }}-csi-node
|
||||
{{- with .Values.csiNode.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "cstor.csiNode.labels" . | nindent 4 }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "cstor.csiNode.matchLabels" . | nindent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "cstor.csiNode.labels" . | nindent 8 }}
|
||||
{{- if .Values.csiNode.podLabels }}
|
||||
{{ toYaml .Values.csiNode.podLabels | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
priorityClassName: {{ template "cstor.csiNode.priorityClassName" . }}
|
||||
serviceAccount: {{ .Values.serviceAccount.csiNode.name }}
|
||||
hostNetwork: true
|
||||
containers:
|
||||
- name: {{ .Values.csiNode.driverRegistrar.name }}
|
||||
image: "{{ .Values.csiNode.driverRegistrar.image.registry }}{{ .Values.csiNode.driverRegistrar.image.repository }}:{{ .Values.csiNode.driverRegistrar.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.csiNode.driverRegistrar.image.pullPolicy }}
|
||||
resources:
|
||||
{{ toYaml .Values.csiNode.resources | indent 12 }}
|
||||
args:
|
||||
- "--v=5"
|
||||
- "--csi-address=$(ADDRESS)"
|
||||
- "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
|
||||
lifecycle:
|
||||
preStop:
|
||||
exec:
|
||||
command: ["/bin/sh", "-c", "rm -rf /registration/cstor.csi.openebs.io /registration/cstor.csi.openebs.io-reg.sock"]
|
||||
env:
|
||||
- name: ADDRESS
|
||||
value: /plugin/csi.sock
|
||||
- name: DRIVER_REG_SOCK_PATH
|
||||
value: {{ .Values.csiNode.kubeletDir }}plugins/cstor.csi.openebs.io/csi.sock
|
||||
- name: KUBE_NODE_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
- name: NODE_DRIVER
|
||||
value: openebs-cstor-csi
|
||||
volumeMounts:
|
||||
- name: plugin-dir
|
||||
mountPath: /plugin
|
||||
- name: registration-dir
|
||||
mountPath: /registration
|
||||
- name: {{ .Values.cstorCSIPlugin.name }}
|
||||
securityContext:
|
||||
privileged: true
|
||||
allowPrivilegeEscalation: true
|
||||
image: "{{ .Values.cstorCSIPlugin.image.registry }}{{ .Values.cstorCSIPlugin.image.repository }}:{{ .Values.cstorCSIPlugin.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.cstorCSIPlugin.image.pullPolicy }}
|
||||
args:
|
||||
- "--nodeid=$(OPENEBS_NODE_ID)"
|
||||
- "--endpoint=$(OPENEBS_CSI_ENDPOINT)"
|
||||
- "--url=$(OPENEBS_CSI_API_URL)"
|
||||
- "--plugin=$(OPENEBS_NODE_DRIVER)"
|
||||
env:
|
||||
- name: OPENEBS_NODE_ID
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
- name: OPENEBS_CSI_ENDPOINT
|
||||
value: unix:///plugin/csi.sock
|
||||
- name: OPENEBS_NODE_DRIVER
|
||||
value: node
|
||||
- name: OPENEBS_CSI_API_URL
|
||||
value: https://openebs.io
|
||||
# OpenEBS namespace where the openebs cstor operator components
|
||||
# has been installed
|
||||
- name: OPENEBS_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
# Enable/Disable auto-remount feature, when volumes
|
||||
# recovers from the read-only state
|
||||
- name: REMOUNT
|
||||
value: "{{ .Values.cstorCSIPlugin.remount }}"
|
||||
volumeMounts:
|
||||
- name: plugin-dir
|
||||
mountPath: /plugin
|
||||
- name: device-dir
|
||||
mountPath: /dev
|
||||
- name: pods-mount-dir
|
||||
mountPath: {{ .Values.csiNode.kubeletDir }}
|
||||
# needed so that any mounts setup inside this container are
|
||||
# propagated back to the host machine.
|
||||
mountPropagation: "Bidirectional"
|
||||
- name: host-root
|
||||
mountPath: /host
|
||||
mountPropagation: "HostToContainer"
|
||||
- name: chroot-iscsiadm
|
||||
mountPath: /sbin/iscsiadm
|
||||
subPath: iscsiadm
|
||||
volumes:
|
||||
- name: device-dir
|
||||
hostPath:
|
||||
path: /dev
|
||||
type: Directory
|
||||
- name: registration-dir
|
||||
hostPath:
|
||||
path: {{ .Values.csiNode.kubeletDir }}plugins_registry/
|
||||
type: DirectoryOrCreate
|
||||
- name: plugin-dir
|
||||
hostPath:
|
||||
path: {{ .Values.csiNode.kubeletDir }}plugins/cstor.csi.openebs.io/
|
||||
type: DirectoryOrCreate
|
||||
- name: pods-mount-dir
|
||||
hostPath:
|
||||
path: {{ .Values.csiNode.kubeletDir }}
|
||||
type: Directory
|
||||
- name: chroot-iscsiadm
|
||||
configMap:
|
||||
defaultMode: 0555
|
||||
name: openebs-cstor-csi-iscsiadm
|
||||
- name: host-root
|
||||
hostPath:
|
||||
path: /
|
||||
type: Directory
|
||||
{{- if .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{ toYaml .Values.imagePullSecrets | indent 2 }}
|
||||
{{- end }}
|
||||
{{- if .Values.csiNode.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.csiNode.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.csiNode.securityContext }}
|
||||
securityContext:
|
||||
{{ toYaml .Values.csiNode.securityContext | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.csiNode.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml .Values.csiNode.tolerations | indent 8 }}
|
||||
{{- end }}
|
|
@ -0,0 +1,86 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ template "cstor.fullname" . }}-cspc-operator
|
||||
{{- with .Values.cspcOperator.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "cstor.cspcOperator.labels" . | nindent 4 }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "cstor.cspcOperator.matchLabels" . | nindent 6 }}
|
||||
replicas: {{ .Values.cspcOperator.replicas }}
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
{{- with .Values.cspcOperator.podAnnotations }}
|
||||
annotations: {{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "cstor.cspcOperator.labels" . | nindent 8 }}
|
||||
{{- if .Values.cspcOperator.podLabels }}
|
||||
{{ toYaml .Values.cspcOperator.podLabels | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
serviceAccountName: {{ .Values.serviceAccount.cstorOperator.name }}
|
||||
containers:
|
||||
- name: {{ template "cstor.fullname" . }}-cspc-operator
|
||||
imagePullPolicy: {{ .Values.cspcOperator.image.pullPolicy }}
|
||||
image: "{{ .Values.cspcOperator.image.registry }}{{ .Values.cspcOperator.image.repository }}:{{ .Values.cspcOperator.image.tag }}"
|
||||
resources:
|
||||
{{ toYaml .Values.cspcOperator.resources | indent 12 }}
|
||||
env:
|
||||
- name: OPENEBS_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: OPENEBS_SERVICEACCOUNT_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.serviceAccountName
|
||||
- name: CSPC_OPERATOR_POD_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.name
|
||||
# OPENEBS_IO_BASE_DIR is used to configure base directory for openebs on host path.
|
||||
# Where OpenEBS can store required files. Default base path will be /var/openebs
|
||||
# - name: OPENEBS_IO_BASE_DIR
|
||||
# value: "/var/openebs"
|
||||
# OPENEBS_IO_CSTOR_POOL_SPARSE_DIR can be used to specify the hostpath
|
||||
# to be used for saving the shared content between the side cars
|
||||
# of cstor pool pod. This ENV is also used to indicate the location
|
||||
# of the sparse devices.
|
||||
# The default path used is /var/openebs/sparse
|
||||
#- name: OPENEBS_IO_CSTOR_POOL_SPARSE_DIR
|
||||
# value: "/var/openebs/sparse"
|
||||
- name: OPENEBS_IO_CSPI_MGMT_IMAGE
|
||||
value: "{{ .Values.cspcOperator.poolManager.image.registry }}{{ .Values.cspcOperator.poolManager.image.repository }}:{{ .Values.cspcOperator.poolManager.image.tag }}"
|
||||
- name: OPENEBS_IO_CSTOR_POOL_IMAGE
|
||||
value: "{{ .Values.cspcOperator.cstorPool.image.registry }}{{ .Values.cspcOperator.cstorPool.image.repository }}:{{ .Values.cspcOperator.cstorPool.image.tag }}"
|
||||
- name: OPENEBS_IO_CSTOR_POOL_EXPORTER_IMAGE
|
||||
value: "{{ .Values.cspcOperator.cstorPoolExporter.image.registry }}{{ .Values.cspcOperator.cstorPoolExporter.image.repository }}:{{ .Values.cspcOperator.cstorPoolExporter.image.tag }}"
|
||||
- name: RESYNC_INTERVAL
|
||||
value: "{{ .Values.cspcOperator.resyncInterval }}"
|
||||
{{- if .Values.imagePullSecrets }}
|
||||
- name: OPENEBS_IO_IMAGE_PULL_SECRETS
|
||||
value: "{{- range $.Values.imagePullSecrets }}{{ .name }},{{- end }}"
|
||||
{{- end }}
|
||||
{{- if .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{ toYaml .Values.imagePullSecrets | indent 2 }}
|
||||
{{- end }}
|
||||
{{- if .Values.cspcOperator.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.cspcOperator.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.cspcOperator.securityContext }}
|
||||
securityContext:
|
||||
{{ toYaml .Values.cspcOperator.securityContext | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.cspcOperator.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml .Values.cspcOperator.tolerations | indent 8 }}
|
||||
{{- end }}
|
|
@ -0,0 +1,15 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ template "cstor.fullname" . }}-cvc-operator-svc
|
||||
labels:
|
||||
{{- include "cstor.cvcOperatorService.labels" . | nindent 4 }}
|
||||
spec:
|
||||
ports:
|
||||
- name: api
|
||||
port: 5757
|
||||
protocol: TCP
|
||||
targetPort: 5757
|
||||
selector:
|
||||
name: cvc-operator
|
||||
sessionAffinity: None
|
|
@ -0,0 +1,83 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ template "cstor.fullname" . }}-cvc-operator
|
||||
{{- with .Values.cvcOperator.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "cstor.cvcOperator.labels" . | nindent 4 }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "cstor.cvcOperator.matchLabels" . | nindent 6 }}
|
||||
replicas: {{ .Values.cvcOperator.replicas }}
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "cstor.cvcOperator.labels" . | nindent 8 }}
|
||||
{{- if .Values.cvcOperator.podLabels }}
|
||||
{{ toYaml .Values.cvcOperator.podLabels | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
serviceAccountName: {{ .Values.serviceAccount.cstorOperator.name }}
|
||||
containers:
|
||||
- name: {{ template "cstor.fullname" . }}-cvc-operator
|
||||
imagePullPolicy: {{ .Values.cvcOperator.image.pullPolicy }}
|
||||
image: "{{ .Values.cvcOperator.image.registry }}{{ .Values.cvcOperator.image.repository }}:{{ .Values.cvcOperator.image.tag }}"
|
||||
args:
|
||||
- "--v=2"
|
||||
- "--leader-election=false"
|
||||
- "--bind=$(OPENEBS_CVC_POD_IP)"
|
||||
resources:
|
||||
{{ toYaml .Values.cvcOperator.resources | indent 12 }}
|
||||
env:
|
||||
# OPENEBS_IO_BASE_DIR is used to configure base directory for openebs on host path.
|
||||
# Where OpenEBS can store required files. Default base path will be /var/openebs
|
||||
# - name: OPENEBS_IO_BASE_DIR
|
||||
# value: "/var/openebs"
|
||||
# OPENEBS_IO_CSTOR_TARGET_DIR can be used to specify the hostpath
|
||||
# that to be used for saving the core dump of cstor volume pod.
|
||||
# The default path used is /var/openebs/sparse
|
||||
#- name: OPENEBS_IO_CSTOR_TARGET_DIR
|
||||
# value: "/var/openebs/sparse"
|
||||
- name: OPENEBS_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: OPENEBS_SERVICEACCOUNT_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.serviceAccountName
|
||||
- name: OPENEBS_CVC_POD_IP
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: status.podIP
|
||||
- name: OPENEBS_IO_CSTOR_TARGET_IMAGE
|
||||
value: "{{ .Values.cvcOperator.target.image.registry }}{{ .Values.cvcOperator.target.image.repository }}:{{ .Values.cvcOperator.target.image.tag }}"
|
||||
- name: OPENEBS_IO_CSTOR_VOLUME_MGMT_IMAGE
|
||||
value: "{{ .Values.cvcOperator.volumeMgmt.image.registry }}{{ .Values.cvcOperator.volumeMgmt.image.repository }}:{{ .Values.cvcOperator.volumeMgmt.image.tag }}"
|
||||
- name: OPENEBS_IO_VOLUME_MONITOR_IMAGE
|
||||
value: "{{ .Values.cvcOperator.volumeExporter.image.registry }}{{ .Values.cvcOperator.volumeExporter.image.repository }}:{{ .Values.cvcOperator.volumeExporter.image.tag }}"
|
||||
{{- if .Values.imagePullSecrets }}
|
||||
- name: OPENEBS_IO_IMAGE_PULL_SECRETS
|
||||
value: "{{- range $.Values.imagePullSecrets }}{{ .name }},{{- end }}"
|
||||
{{- end }}
|
||||
{{- if .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{ toYaml .Values.imagePullSecrets | indent 2 }}
|
||||
{{- end }}
|
||||
{{- if .Values.cvcOperator.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.cvcOperator.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.cvcOperator.securityContext }}
|
||||
securityContext:
|
||||
{{ toYaml .Values.cvcOperator.securityContext | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.cvcOperator.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml .Values.cvcOperator.tolerations | indent 8 }}
|
||||
{{- end }}
|
|
@ -0,0 +1,19 @@
|
|||
{{- if .Values.csiController.priorityClass.create }}
|
||||
apiVersion: scheduling.k8s.io/v1
|
||||
kind: PriorityClass
|
||||
metadata:
|
||||
name: {{ template "cstor.csiController.priorityClassName" . }}
|
||||
value: 900000000
|
||||
globalDefault: false
|
||||
description: "This priority class should be used for the CStor CSI driver controller deployment only."
|
||||
{{- end }}
|
||||
---
|
||||
{{- if .Values.csiNode.priorityClass.create }}
|
||||
apiVersion: scheduling.k8s.io/v1
|
||||
kind: PriorityClass
|
||||
metadata:
|
||||
name: {{ template "cstor.csiNode.priorityClassName" . }}
|
||||
value: 900001000
|
||||
globalDefault: false
|
||||
description: "This priority class should be used for the CStor CSI driver node deployment only."
|
||||
{{- end }}
|
|
@ -0,0 +1,24 @@
|
|||
{{- if .Values.rbac.pspEnabled }}
|
||||
apiVersion: policy/v1beta1
|
||||
kind: PodSecurityPolicy
|
||||
metadata:
|
||||
name: openebs-cstor-csi-node-psp
|
||||
labels:
|
||||
{{- include "cstor.csiNode.labels" . | nindent 4 }}
|
||||
spec:
|
||||
privileged: true
|
||||
allowPrivilegeEscalation: true
|
||||
allowedCapabilities: ['*']
|
||||
volumes: ['*']
|
||||
hostNetwork: true
|
||||
hostIPC: true
|
||||
hostPID: true
|
||||
runAsUser:
|
||||
rule: 'RunAsAny'
|
||||
seLinux:
|
||||
rule: 'RunAsAny'
|
||||
supplementalGroups:
|
||||
rule: 'RunAsAny'
|
||||
fsGroup:
|
||||
rule: 'RunAsAny'
|
||||
{{- end }}
|
|
@ -0,0 +1,117 @@
|
|||
{{- if .Values.serviceAccount.cstorOperator.create -}}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ .Values.serviceAccount.cstorOperator.name }}
|
||||
labels:
|
||||
{{- include "cstor.common.metaLabels" . | nindent 4 }}
|
||||
{{- with .Values.serviceAccount.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.rbac.create }}
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-cstor-operator
|
||||
{{- with .Values.serviceAccount.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "cstor.common.metaLabels" . | nindent 4 }}
|
||||
rules:
|
||||
- apiGroups: ["*"]
|
||||
resources: ["nodes", "nodes/proxy"]
|
||||
verbs: ["*"]
|
||||
- apiGroups: ["*"]
|
||||
resources: ["namespaces", "services", "pods", "deployments", "deployments/finalizers", "replicationcontrollers", "replicasets", "events", "endpoints", "configmaps", "secrets", "jobs", "cronjobs"]
|
||||
verbs: ["*"]
|
||||
- apiGroups: ["*"]
|
||||
resources: ["statefulsets", "daemonsets"]
|
||||
verbs: ["*"]
|
||||
- apiGroups: ["*"]
|
||||
resources: ["resourcequotas", "limitranges"]
|
||||
verbs: ["list", "watch"]
|
||||
- apiGroups: ["*"]
|
||||
resources: ["certificatesigningrequests"]
|
||||
verbs: ["list", "watch"]
|
||||
- apiGroups: ["*"]
|
||||
resources: ["storageclasses", "persistentvolumeclaims", "persistentvolumes"]
|
||||
verbs: ["*"]
|
||||
- apiGroups: ["apiextensions.k8s.io"]
|
||||
resources: ["customresourcedefinitions"]
|
||||
verbs: [ "get", "list", "create", "update", "delete", "patch"]
|
||||
- apiGroups: ["openebs.io"]
|
||||
resources: ["*"]
|
||||
verbs: ["*" ]
|
||||
- apiGroups: ["cstor.openebs.io"]
|
||||
resources: ["*"]
|
||||
verbs: ["*" ]
|
||||
- apiGroups: ["coordination.k8s.io"]
|
||||
resources: ["leases"]
|
||||
verbs: ["get", "watch", "list", "delete", "update", "create"]
|
||||
- apiGroups: ["admissionregistration.k8s.io"]
|
||||
resources: ["validatingwebhookconfigurations", "mutatingwebhookconfigurations"]
|
||||
verbs: ["get", "create", "list", "delete", "update", "patch"]
|
||||
- nonResourceURLs: ["/metrics"]
|
||||
verbs: ["get"]
|
||||
- apiGroups: ["*"]
|
||||
resources: ["upgradetasks","migrationtasks"]
|
||||
verbs: ["*"]
|
||||
- apiGroups: ["*"]
|
||||
resources: ["poddisruptionbudgets"]
|
||||
verbs: ["get", "list", "create", "delete", "watch"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: openebs-cstor-operator
|
||||
{{- with .Values.serviceAccount.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "cstor.common.metaLabels" . | nindent 4 }}
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: openebs-cstor-operator
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ .Values.serviceAccount.cstorOperator.name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
---
|
||||
# Define Role that allows operations required for migration of snapshots
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-cstor-migration
|
||||
labels:
|
||||
{{- include "cstor.common.metaLabels" . | nindent 4 }}
|
||||
rules:
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshotclasses"]
|
||||
verbs: ["get", "list"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshotcontents"]
|
||||
verbs: ["create", "get", "list"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshots"]
|
||||
verbs: ["create", "get", "list"]
|
||||
---
|
||||
kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-cstor-migration
|
||||
labels:
|
||||
{{- include "cstor.common.metaLabels" . | nindent 4 }}
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ .Values.serviceAccount.cstorOperator.name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: openebs-cstor-migration
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
{{- end }}
|
|
@ -0,0 +1,8 @@
|
|||
kind: VolumeSnapshotClass
|
||||
apiVersion: snapshot.storage.k8s.io/v1
|
||||
metadata:
|
||||
name: csi-cstor-snapshotclass
|
||||
annotations:
|
||||
snapshot.storage.kubernetes.io/is-default-class: "true"
|
||||
driver: cstor.csi.openebs.io
|
||||
deletionPolicy: Delete
|
|
@ -0,0 +1,248 @@
|
|||
# Default values for cstor-operators.
|
||||
# This is a YAML-formatted file.
|
||||
# Declare variables to be passed into your templates.
|
||||
|
||||
release:
|
||||
version: "2.11.0"
|
||||
|
||||
# If false, openebs NDM sub-chart will not be installed
|
||||
openebsNDM:
|
||||
enabled: true
|
||||
|
||||
rbac:
|
||||
# rbac.create: `true` if rbac resources should be created
|
||||
create: true
|
||||
# rbac.pspEnabled: `true` if PodSecurityPolicy resources should be created
|
||||
pspEnabled: false
|
||||
|
||||
imagePullSecrets:
|
||||
# - name: "image-pull-secret"
|
||||
|
||||
cspcOperator:
|
||||
componentName: cspc-operator
|
||||
poolManager:
|
||||
image:
|
||||
registry:
|
||||
repository: openebs/cstor-pool-manager
|
||||
tag: 2.11.0
|
||||
cstorPool:
|
||||
image:
|
||||
registry:
|
||||
repository: openebs/cstor-pool
|
||||
tag: 2.11.0
|
||||
cstorPoolExporter:
|
||||
image:
|
||||
registry:
|
||||
repository: openebs/m-exporter
|
||||
tag: 2.11.0
|
||||
image:
|
||||
# Make sure that registry name end with a '/'.
|
||||
# For example : quay.io/ is a correct value here and quay.io is incorrect
|
||||
registry:
|
||||
repository: openebs/cspc-operator
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: 2.11.0
|
||||
annotations: {}
|
||||
resyncInterval: "30"
|
||||
podAnnotations: {}
|
||||
podLabels: {}
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
resources: {}
|
||||
securityContext: {}
|
||||
|
||||
cvcOperator:
|
||||
componentName: cvc-operator
|
||||
target:
|
||||
image:
|
||||
registry:
|
||||
repository: openebs/cstor-istgt
|
||||
tag: 2.11.0
|
||||
volumeMgmt:
|
||||
image:
|
||||
registry:
|
||||
repository: openebs/cstor-volume-manager
|
||||
tag: 2.11.0
|
||||
volumeExporter:
|
||||
image:
|
||||
registry:
|
||||
repository: openebs/m-exporter
|
||||
tag: 2.11.0
|
||||
image:
|
||||
# Make sure that registry name end with a '/'.
|
||||
# For example : quay.io/ is a correct value here and quay.io is incorrect
|
||||
registry:
|
||||
repository: openebs/cvc-operator
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: 2.11.0
|
||||
annotations: {}
|
||||
resyncInterval: "30"
|
||||
podAnnotations: {}
|
||||
podLabels: {}
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
resources: {}
|
||||
securityContext: {}
|
||||
|
||||
csiController:
|
||||
priorityClass:
|
||||
create: true
|
||||
name: cstor-csi-controller-critical
|
||||
componentName: "openebs-cstor-csi-controller"
|
||||
resizer:
|
||||
name: "csi-resizer"
|
||||
image:
|
||||
# Make sure that registry name end with a '/'.
|
||||
# For example : quay.io/ is a correct value here and quay.io is incorrect
|
||||
registry: k8s.gcr.io/
|
||||
repository: sig-storage/csi-resizer
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: v1.1.0
|
||||
snapshotter:
|
||||
name: "csi-snapshotter"
|
||||
image:
|
||||
# Make sure that registry name end with a '/'.
|
||||
# For example : quay.io/ is a correct value here and quay.io is incorrect
|
||||
registry: k8s.gcr.io/
|
||||
repository: sig-storage/csi-snapshotter
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: v3.0.3
|
||||
snapshotController:
|
||||
name: "snapshot-controller"
|
||||
image:
|
||||
# Make sure that registry name end with a '/'.
|
||||
# For example : quay.io/ is a correct value here and quay.io is incorrect
|
||||
registry: k8s.gcr.io/
|
||||
repository: sig-storage/snapshot-controller
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: v3.0.3
|
||||
attacher:
|
||||
name: "csi-attacher"
|
||||
image:
|
||||
# Make sure that registry name end with a '/'.
|
||||
# For example : quay.io/ is a correct value here and quay.io is incorrect
|
||||
registry: k8s.gcr.io/
|
||||
repository: sig-storage/csi-attacher
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: v3.1.0
|
||||
provisioner:
|
||||
name: "csi-provisioner"
|
||||
image:
|
||||
# Make sure that registry name end with a '/'.
|
||||
# For example : quay.io/ is a correct value here and quay.io is incorrect
|
||||
registry: k8s.gcr.io/
|
||||
repository: sig-storage/csi-provisioner
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: v2.1.0
|
||||
annotations: {}
|
||||
podAnnotations: {}
|
||||
podLabels: {}
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
resources: {}
|
||||
securityContext: {}
|
||||
|
||||
cstorCSIPlugin:
|
||||
name: cstor-csi-plugin
|
||||
image:
|
||||
# Make sure that registry name end with a '/'.
|
||||
# For example : quay.io/ is a correct value here and quay.io is incorrect
|
||||
registry:
|
||||
repository: openebs/cstor-csi-driver
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: 2.11.0
|
||||
remount: "true"
|
||||
|
||||
csiNode:
|
||||
priorityClass:
|
||||
create: true
|
||||
name: cstor-csi-node-critical
|
||||
componentName: "openebs-cstor-csi-node"
|
||||
driverRegistrar:
|
||||
name: "csi-node-driver-registrar"
|
||||
image:
|
||||
registry: k8s.gcr.io/
|
||||
repository: sig-storage/csi-node-driver-registrar
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: v2.1.0
|
||||
updateStrategy:
|
||||
type: RollingUpdate
|
||||
annotations: {}
|
||||
podAnnotations: {}
|
||||
resources: {}
|
||||
# limits:
|
||||
# cpu: 10m
|
||||
# memory: 32Mi
|
||||
# requests:
|
||||
# cpu: 10m
|
||||
# memory: 32Mi
|
||||
## Labels to be added to openebs-cstor-csi-node pods
|
||||
podLabels: {}
|
||||
# kubeletDir path can be configured to run on various different k8s distributions like
|
||||
# microk8s where kubelet root dir is not (/var/lib/kubelet/). For example microk8s,
|
||||
# we need to change the kubelet directory to `/var/snap/microk8s/common/var/lib/kubelet/`
|
||||
kubeletDir: "/var/lib/kubelet/"
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
securityContext: {}
|
||||
|
||||
csiDriver:
|
||||
create: true
|
||||
podInfoOnMount: true
|
||||
attachRequired: false
|
||||
|
||||
admissionServer:
|
||||
componentName: cstor-admission-webhook
|
||||
image:
|
||||
# Make sure that registry name end with a '/'.
|
||||
# For example : quay.io/ is a correct value here and quay.io is incorrect
|
||||
registry:
|
||||
repository: openebs/cstor-webhook
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: 2.11.0
|
||||
failurePolicy: "Fail"
|
||||
annotations: {}
|
||||
podAnnotations: {}
|
||||
podLabels: {}
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
resources: {}
|
||||
securityContext: {}
|
||||
|
||||
serviceAccount:
|
||||
# Annotations to add to the service account
|
||||
annotations: {}
|
||||
cstorOperator:
|
||||
create: true
|
||||
name: openebs-cstor-operator
|
||||
csiController:
|
||||
# Specifies whether a service account should be created
|
||||
create: true
|
||||
name: openebs-cstor-csi-controller-sa
|
||||
csiNode:
|
||||
# Specifies whether a service account should be created
|
||||
create: true
|
||||
name: openebs-cstor-csi-node-sa
|
||||
|
||||
analytics:
|
||||
enabled: true
|
||||
# Specify in hours the duration after which a ping event needs to be sent.
|
||||
pingInterval: "24h"
|
||||
|
||||
cleanup:
|
||||
image:
|
||||
# Make sure that registry name end with a '/'.
|
||||
# For example : quay.io/ is a correct value here and quay.io is incorrect
|
||||
registry:
|
||||
repository: bitnami/kubectl
|
||||
tag:
|
|
@ -0,0 +1,23 @@
|
|||
# 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/
|
|
@ -0,0 +1,6 @@
|
|||
dependencies:
|
||||
- name: localpv-provisioner
|
||||
repository: https://openebs.github.io/dynamic-localpv-provisioner
|
||||
version: 2.11.0
|
||||
digest: sha256:947f9f89e8ce4efb17f542729a44d6be93c87441acde7f866fd420402a086f72
|
||||
generated: "2021-07-16T06:37:41.704645964Z"
|
|
@ -0,0 +1,27 @@
|
|||
apiVersion: v2
|
||||
appVersion: 2.11.0
|
||||
dependencies:
|
||||
- condition: openebsLocalpv.enabled
|
||||
name: localpv-provisioner
|
||||
repository: https://openebs.github.io/dynamic-localpv-provisioner
|
||||
version: 2.11.0
|
||||
description: Jiva-Operator helm chart for Kubernetes
|
||||
home: http://www.openebs.io/
|
||||
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/openebs/icon/color/openebs-icon-color.png
|
||||
keywords:
|
||||
- cloud-native-storage
|
||||
- block-storage
|
||||
- iSCSI
|
||||
- storage
|
||||
- jiva
|
||||
- jiva-operator
|
||||
maintainers:
|
||||
- email: prateek.pandey@mayadata.io
|
||||
name: prateekpandey14
|
||||
- email: shubham.bajpai@mayadata.io
|
||||
name: shubham14bajpai
|
||||
name: jiva
|
||||
sources:
|
||||
- https://github.com/openebs/jiva-operator
|
||||
type: application
|
||||
version: 2.11.0
|
|
@ -0,0 +1,207 @@
|
|||
|
||||
# OpenEBS Jiva
|
||||
|
||||
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
|
||||
![Release Charts](https://github.com/openebs/jiva-operator/workflows/Release%20Charts/badge.svg?branch=master)
|
||||
![Chart Lint and Test](https://github.com/openebs/jiva-operator/workflows/Chart%20Lint%20and%20Test/badge.svg)
|
||||
|
||||
OpenEBS Jiva helm chart for Kubernetes. This chart bootstraps OpenEBS jiva operators and csi driver deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager
|
||||
|
||||
**Homepage:** <http://www.openebs.io/>
|
||||
|
||||
## Maintainers
|
||||
|
||||
| Name | Email | Url |
|
||||
| ---- | ------ | --- |
|
||||
| prateekpandey14 | prateek.pandey@mayadata.io | |
|
||||
| shubham14bajpai | shubham.bajpai@mayadata.io | |
|
||||
|
||||
## Get Repo Info
|
||||
|
||||
```console
|
||||
helm repo add openebs-jiva https://openebs.github.io/jiva-operator
|
||||
helm repo update
|
||||
```
|
||||
|
||||
_See [helm repo](https://helm.sh/docs/helm/helm_repo/) for command documentation._
|
||||
|
||||
## Install Chart
|
||||
|
||||
Please visit the [link](https://openebs.github.io/jiva-operator) for install instructions via helm3.
|
||||
|
||||
```console
|
||||
# Helm
|
||||
helm install [RELEASE_NAME] openebs-jiva/jiva --namespace [NAMESPACE] --create-namespace
|
||||
```
|
||||
|
||||
_See [configuration](#configuration) below._
|
||||
|
||||
_See [helm install](https://helm.sh/docs/helm/helm_install/) for command documentation._
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
By default this chart installs additional, dependent charts:
|
||||
|
||||
| Repository | Name | Version |
|
||||
|------------|------|---------|
|
||||
| https://openebs.github.io/dynamic-localpv-provisioner | localpv-provisioner | 2.11.0 |
|
||||
|
||||
**Note:** Find detailed Dynamic LocalPV Provisioner Helm chart configuration options [here](https://github.com/openebs/dynamic-localpv-provisioner/blob/develop/deploy/helm/charts/README.md).
|
||||
|
||||
To disable the dependency during installation, set `openebsLocalpv.enabled` to `false`.
|
||||
|
||||
```console
|
||||
helm install <your-relase-name> openebs-jiva/jiva --namespace <namespace> --create-namespace --set openebsLocalpv.enabled=false
|
||||
```
|
||||
|
||||
For more details on dependency see [Jiva chart readme](https://github.com/openebs/jiva-operator/blob/master/deploy/helm/charts/README.md).
|
||||
|
||||
_See [helm dependency](https://helm.sh/docs/helm/helm_dependency/) for command documentation._
|
||||
|
||||
## Uninstall Chart
|
||||
|
||||
```console
|
||||
# Helm
|
||||
helm uninstall [RELEASE_NAME] --namespace [NAMESPACE]
|
||||
```
|
||||
|
||||
This removes all the Kubernetes components associated with the chart and deletes the release.
|
||||
|
||||
_See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall/) for command documentation._
|
||||
|
||||
## Upgrading Chart
|
||||
|
||||
```console
|
||||
# Helm
|
||||
helm upgrade [RELEASE_NAME] [CHART] --install --namespace [NAMESPACE]
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
The following table lists the configurable parameters of the OpenEBS Jiva chart and their default values.
|
||||
You can modify different parameters by specifying the desired value in the helm install command by using the `--set` and/or the `--set-string` flag(s). You can modify the parameters of the [Dynamic LocalPV Provisioner chart](https://openebs.github.io/dynamic-localpv-provisioner) by adding `localpv-provisioner` before the desired parameter in the helm install command.
|
||||
|
||||
In the following sample command we modify `csiNode.nodeSelector` from the Jiva chart to only use the NodeSelector label `openebs.io/data-plane=true` to schedule the openebs-jiva-csi-node DaemonSet pods, and we also modify `hostpathClass.basePath` from the localpv-provisioner chart to change the BasePath directory to '/data' used by the openebs-hostpath StorageClass.
|
||||
|
||||
```console
|
||||
helm install openebs-jiva openebs-jiva/jiva -n openebs --create-namespace \
|
||||
--set-string csiNode.nodeSelector."openebs\.io/data-plane"=true \
|
||||
--set-string localpv-provisioner.hostpathClass.basePath="/data"
|
||||
```
|
||||
|
||||
The Dynamic LocalPV Provisioner helm chart (this is a dependency for the Jiva helm chart) includes the [Node Disk Manager (NDM)](https://openebs.github.io/node-disk-manager/) helm chart. This NDM helm chart is disabled by default. You can enable the NDM chart during installation using flags as shown below:
|
||||
|
||||
```console
|
||||
helm install openebs-jiva openebs-jiva/jiva -n openebs --create-namespace \
|
||||
--set localpv-provisioner.openebsNDM.enabled=true \
|
||||
--set localpv-provisioner.deviceClass.enabled=true
|
||||
```
|
||||
|
||||
If you have already installed Jiva without NDM, and would like to enable it after installation, use the following command:
|
||||
|
||||
```console
|
||||
helm upgrade openebs-jiva openebs-jiva/jiva -n openebs \
|
||||
--set localpv-provisioner.openebsNDM.enabled=true \
|
||||
--set localpv-provisioner.deviceClass.enabled=true
|
||||
```
|
||||
|
||||
| Key | Type | Default | Description |
|
||||
|-----|------|---------|-------------|
|
||||
| csiController.annotations | object | `{}` | CSI controller annotations |
|
||||
| csiController.attacher.image.pullPolicy | string | `"IfNotPresent"` | CSI attacher image pull policy |
|
||||
| csiController.attacher.image.registry | string | `"k8s.gcr.io/"` | CSI attacher image registry |
|
||||
| csiController.attacher.image.repository | string | `"k8scsi/csi-attacher"` | CSI attacher image repo |
|
||||
| csiController.attacher.image.tag | string | `"v3.1.0"` | CSI attacher image tag |
|
||||
| csiController.attacher.name | string | `"csi-attacher"` | CSI attacher container name|
|
||||
| csiController.componentName | string | `""` | CSI controller component name |
|
||||
| csiController.driverRegistrar.image.pullPolicy | string | `"IfNotPresent"` | CSI driver registrar image pull policy |
|
||||
| csiController.driverRegistrar.image.registry | string | `"k8s.gcr.io/"` | CSI driver registrar image registry |
|
||||
| csiController.driverRegistrar.image.repository | string | `"k8scsi/csi-cluster-driver-registrar"` | CSI driver registrar image repo |
|
||||
| csiController.driverRegistrar.image.tag | string | `"v1.0.1"` | CSI driver registrar image tag|
|
||||
| csiController.driverRegistrar.name | string | `"csi-cluster-driver-registrar"` | CSI driver registrar container name |
|
||||
| csiController.livenessprobe.image.pullPolicy | string | `"IfNotPresent"` | CSI livenessprobe image pull policy |
|
||||
| csiController.livenessprobe.image.registry | string | `"k8s.gcr.io/"` | CSI livenessprobe image registry |
|
||||
| csiController.livenessprobe.image.repository | string | `"k8scsi/livenessprobe"` | CSI livenessprobe image repo |
|
||||
| csiController.livenessprobe.image.tag | string | `"v2.2.0"` | CSI livenessprobe image tag |
|
||||
| csiController.livenessprobe.name | string | `"liveness-probe"` | CSI livenessprobe container name|
|
||||
| csiController.nodeSelector | object | `{}` | CSI controller pod node selector |
|
||||
| csiController.podAnnotations | object | `{}` | CSI controller pod annotations |
|
||||
| csiController.provisioner.image.pullPolicy | string | `"IfNotPresent"` | CSI provisioner image pull policy |
|
||||
| csiController.provisioner.image.registry | string | `"k8s.gcr.io/"` | CSI provisioner image pull registry |
|
||||
| csiController.provisioner.image.repository | string | `"k8scsi/csi-provisioner"` | CSI provisioner image pull repository |
|
||||
| csiController.provisioner.image.tag | string | `"v2.1.0"` | CSI provisioner image tag |
|
||||
| csiController.provisioner.name | string | `"csi-provisioner"` | CSI provisioner container name |
|
||||
| csiController.resizer.image.pullPolicy | string | `"IfNotPresent"` | CSI resizer image pull policy |
|
||||
| csiController.resizer.image.registry | string | `"k8s.gcr.io/"` | CSI resizer image registry |
|
||||
| csiController.resizer.image.repository | string | `"k8scsi/csi-resizer"` | CSI resizer image repository|
|
||||
| csiController.resizer.image.tag | string | `"v1.1.0"` | CSI resizer image tag |
|
||||
| csiController.resizer.name | string | `"csi-resizer"` | CSI resizer container name |
|
||||
| csiController.resources | object | `{}` | CSI controller container resources |
|
||||
| csiController.securityContext | object | `{}` | CSI controller security context |
|
||||
| csiController.tolerations | list | `[]` | CSI controller pod tolerations |
|
||||
| csiNode.annotations | object | `{}` | CSI Node annotations |
|
||||
| csiNode.componentName | string | `"openebs-jiva-csi-node"` | CSI Node component name |
|
||||
| csiNode.driverRegistrar.image.pullPolicy | string | `"IfNotPresent"` | CSI Node driver registrar image pull policy|
|
||||
| csiNode.driverRegistrar.image.registry | string | `"k8s.gcr.io/"` | CSI Node driver registrar image registry |
|
||||
| csiNode.driverRegistrar.image.repository | string | `"k8scsi/csi-node-driver-registrar"` | CSI Node driver registrar image repository |
|
||||
| csiNode.driverRegistrar.image.tag | string | `"v2.0.1"` | CSI Node driver registrar image tag|
|
||||
| csiNode.driverRegistrar.name | string | `"csi-node-driver-registrar"` | CSI Node driver registrar container name |
|
||||
| csiNode.kubeletDir | string | `"/var/lib/kubelet/"` | Kubelet root dir |
|
||||
| csiNode.labels | object | `{}` | CSI Node pod labels |
|
||||
| csiNode.nodeSelector | object | `{}` | CSI Node pod nodeSelector |
|
||||
| csiNode.podAnnotations | object | `{}` | CSI Node pod annotations |
|
||||
| csiNode.resources | object | `{}` | CSI Node pod resources |
|
||||
| csiNode.securityContext | object | `{}` | CSI Node pod security context |
|
||||
| csiNode.tolerations | list | `[]` | CSI Node pod tolerations |
|
||||
| csiNode.updateStrategy.type | string | `"RollingUpdate"` | CSI Node daemonset update strategy |
|
||||
| csiNode.livenessprobe.image.pullPolicy | string | `"IfNotPresent"` | CSI livenessprobe image pull policy |
|
||||
| csiNode.livenessprobe.image.registry | string | `"k8s.gcr.io/"` | CSI livenessprobe image registry |
|
||||
| csiNode.livenessprobe.image.repository | string | `"k8scsi/livenessprobe"` | CSI livenessprobe image repo |
|
||||
| csiNode.livenessprobe.image.tag | string | `"v2.2.0"` | CSI livenessprobe image tag |
|
||||
| csiNode.livenessprobe.name | string | `"liveness-probe"` | CSI livenessprobe container name|
|
||||
| defaultPolicy.name | string | `"openebs-jiva-default-policy"` | Default jiva volume policy |
|
||||
| defaultPolicy.enabled | bool | `true` | Enable default jiva volume policy |
|
||||
| defaultPolicy.replicaSC | string | `"openebs-hostpath"` | StorageClass used for creating the PVC for the replica STS |
|
||||
| defaultPolicy.replicas | string | `"3"` | The desired replication factor for the jiva volumes |
|
||||
| defaultClass.name | string | `"openebs-jiva-csi-default"` | Default jiva csi StorageClass |
|
||||
| defaultClass.enabled | bool | `true` | Enable default jiva csi StorageClass |
|
||||
| defaultClass.reclaimPolicy | string | `"Delete"` | Reclaim Policy for the StorageClass |
|
||||
| defaultClass.isDefaultClass | bool | `false` | Make jiva csi StorageClass as the default StorageClass |
|
||||
| jivaOperator.annotations | object | `{}` | Jiva operator annotations |
|
||||
| jivaOperator.componentName | string | `"jiva-operator"` | Jiva operator component name |
|
||||
| jivaOperator.image.pullPolicy | string | `"IfNotPresent"` | Jiva operator image pull policy |
|
||||
| jivaOperator.image.registry | string | `nil` | Jiva operator image registry |
|
||||
| jivaOperator.image.repository | string | `"openebs/jiva-operator"` | Jiva operator image repository |
|
||||
| jivaOperator.image.tag | string | `"2.11.0"` | Jiva operator image tag |
|
||||
| jivaOperator.nodeSelector | object | `{}` | Jiva operator pod nodeSelector|
|
||||
| jivaOperator.podAnnotations | object | `{}` | Jiva operator pod annotations |
|
||||
| jivaOperator.resources | object | `{}` | Jiva operator pod resources |
|
||||
| jivaOperator.securityContext | object | `{}` | Jiva operator security context |
|
||||
| jivaOperator.tolerations | list | `[]` | Jiva operator pod tolerations |
|
||||
| jivaCSIPlugin.image.pullPolicy | string | `"IfNotPresent"` | Jiva CSI driver image pull policy |
|
||||
| jivaCSIPlugin.image.registry | string | `nil` | Jiva CSI driver image registry |
|
||||
| jivaCSIPlugin.image.repository | string | `"openebs/jiva-csi"` | Jiva CSI driver image repository |
|
||||
| jivaCSIPlugin.image.tag | string | `"2.11.0"` | Jiva CSI driver image tag |
|
||||
| jivaCSIPlugin.name | string | `"jiva-csi-plugin"` | Jiva CSI driver container name |
|
||||
| jivaCSIPlugin.remount | string | `"true"` | Jiva CSI driver remount feature, enabled by default |
|
||||
| rbac.create | bool | `true` | Enable RBAC |
|
||||
| rbac.pspEnabled | bool | `false` | Enable PodSecurityPolicy |
|
||||
| release.version | string | `"2.11.0"` | Openebs Jiva release version |
|
||||
| serviceAccount.annotations | object | `{}` | Service Account annotations |
|
||||
| serviceAccount.csiController.create | bool | `true` | Enable CSI Controller ServiceAccount |
|
||||
| serviceAccount.csiController.name | string | `"openebs-jiva-csi-controller-sa"` | CSI Controller ServiceAccount name |
|
||||
| serviceAccount.csiNode.create | bool | `true` | Enable CSI Node ServiceAccount |
|
||||
| serviceAccount.csiNode.name | string | `"openebs-jiva-csi-node-sa"` | CSI Node ServiceAccount name |
|
||||
| serviceAccount.jivaOperator.create | bool | `true` | Enable Jiva Operator Node ServiceAccount |
|
||||
| serviceAccount.jivaOperator.name | string | `"openebs-jiva-operator"` | Jiva Operator ServiceAccount name |
|
||||
|
||||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
|
||||
|
||||
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
|
||||
|
||||
```bash
|
||||
helm install <your-relase-name> -f values.yaml openebs-jiva/jiva
|
||||
```
|
||||
|
||||
> **Tip**: You can use the default [values.yaml](values.yaml)
|
|
@ -0,0 +1,23 @@
|
|||
# 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/
|
|
@ -0,0 +1,6 @@
|
|||
dependencies:
|
||||
- name: openebs-ndm
|
||||
repository: https://openebs.github.io/node-disk-manager
|
||||
version: 1.6.0
|
||||
digest: sha256:bb37660c475faea9651f07b43f655da8f19d251b3227da70ec4990fae6d380f0
|
||||
generated: "2021-07-16T06:29:18.04468484Z"
|
|
@ -0,0 +1,27 @@
|
|||
apiVersion: v2
|
||||
appVersion: 2.11.0
|
||||
dependencies:
|
||||
- condition: openebsNDM.enabled
|
||||
name: openebs-ndm
|
||||
repository: https://openebs.github.io/node-disk-manager
|
||||
version: 1.6.0
|
||||
description: Helm chart for OpenEBS Dynamic Local PV. For instructions to install
|
||||
OpenEBS Dynamic Local PV using helm chart, refer to https://openebs.github.io/dynamic-localpv-provisioner/.
|
||||
home: http://www.openebs.io/
|
||||
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/openebs/icon/color/openebs-icon-color.png
|
||||
keywords:
|
||||
- storage
|
||||
- local
|
||||
- dynamic-localpv
|
||||
maintainers:
|
||||
- email: akhil.mohan@mayadata.io
|
||||
name: akhilerm
|
||||
- email: kiran.mova@mayadata.io
|
||||
name: kiranmova
|
||||
- email: prateek.pandey@mayadata.io
|
||||
name: prateekpandey14
|
||||
name: localpv-provisioner
|
||||
sources:
|
||||
- https://github.com/openebs/dynamic-localpv-provisioner
|
||||
type: application
|
||||
version: 2.11.0
|
|
@ -0,0 +1,143 @@
|
|||
# OpenEBS LocalPV Provisioner
|
||||
|
||||
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
|
||||
![Chart Lint and Test](https://github.com/openebs/dynamic-localpv-provisioner/workflows/Chart%20Lint%20and%20Test/badge.svg)
|
||||
![Release Charts](https://github.com/openebs/dynamic-localpv-provisioner/workflows/Release%20Charts/badge.svg?branch=develop)
|
||||
|
||||
A Helm chart for openebs dynamic localpv provisioner. This chart bootstraps OpenEBS Dynamic LocalPV provisioner deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.
|
||||
|
||||
|
||||
**Homepage:** <http://www.openebs.io/>
|
||||
|
||||
## Maintainers
|
||||
|
||||
| Name | Email | Url |
|
||||
| ---- | ------ | --- |
|
||||
| akhilerm | akhil.mohan@mayadata.io | |
|
||||
| kiranmova | kiran.mova@mayadata.io | |
|
||||
| prateekpandey14 | prateek.pandey@mayadata.io | |
|
||||
|
||||
|
||||
## Get Repo Info
|
||||
|
||||
```console
|
||||
helm repo add openebs-localpv https://openebs.github.io/dynamic-localpv-provisioner
|
||||
helm repo update
|
||||
```
|
||||
|
||||
_See [helm repo](https://helm.sh/docs/helm/helm_repo/) for command documentation._
|
||||
|
||||
## Install Chart
|
||||
|
||||
Please visit the [link](https://openebs.github.io/dynamic-localpv-provisioner/) for install instructions via helm3.
|
||||
|
||||
```console
|
||||
# Helm
|
||||
helm install [RELEASE_NAME] openebs-localpv/localpv-provisioner --namespace [NAMESPACE] --create-namespace
|
||||
```
|
||||
|
||||
_See [configuration](#configuration) below._
|
||||
|
||||
_See [helm install](https://helm.sh/docs/helm/helm_install/) for command documentation._
|
||||
|
||||
## Dependencies
|
||||
|
||||
By default this chart installs additional, dependent charts:
|
||||
|
||||
| Repository | Name | Version |
|
||||
|------------|------|---------|
|
||||
| https://openebs.github.io/node-disk-manager | openebs-ndm | 1.6.0 |
|
||||
|
||||
**Note:** Find detailed Node Disk Manager Helm chart configuration options [here](https://github.com/openebs/node-disk-manager/blob/master/deploy/helm/charts/README.md).
|
||||
|
||||
|
||||
To disable the dependency during installation, set `openebsNDM.enabled` to `false`.
|
||||
|
||||
_See [helm dependency](https://helm.sh/docs/helm/helm_dependency/) for command documentation._
|
||||
|
||||
## Uninstall Chart
|
||||
|
||||
```console
|
||||
# Helm
|
||||
helm uninstall [RELEASE_NAME] --namespace [NAMESPACE]
|
||||
```
|
||||
|
||||
This removes all the Kubernetes components associated with the chart and deletes the release.
|
||||
|
||||
_See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall/) for command documentation._
|
||||
|
||||
## Upgrading Chart
|
||||
|
||||
```console
|
||||
# Helm
|
||||
helm upgrade [RELEASE_NAME] [CHART] --install --namespace [NAMESPACE]
|
||||
```
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
The following table lists the configurable parameters of the OpenEBS Dynamic LocalPV Provisioner chart and their default values.
|
||||
|
||||
You can modify different parameters by specifying the desired value in the `helm install` command by using the `--set` and/or the `--set-string` flag(s). You can modify the parameters of the [Node Disk Manager chart](https://openebs.github.io/node-disk-manager) by adding `openebs-ndm` before the desired parameter in the `helm install` command.
|
||||
|
||||
In the following sample command we modify `deviceClass.fsType` from the localpv-provisioner chart and `ndm.nodeSelector` from the openebs-ndm chart to only schedule openebs-ndm DaemonSet pods on nodes labelled with `openebs.io/data-plane=true`. We also enable the 'Use OS-disk' feature gate using the `featureGates.UseOSDisk.enabled` parameter from the openebs-ndm chart.
|
||||
|
||||
|
||||
```console
|
||||
helm install openebs-localpv openebs-localpv/localpv-provisioner --namespace openebs --create-namespace \
|
||||
--set-string deviceClass.fsType="xfs" \
|
||||
--set-string openebs-ndm.ndm.nodeSelector."openebs\.io/data-plane"=true \
|
||||
--set openebs-ndm.featureGates.UseOSDisk.enabled=true
|
||||
```
|
||||
|
||||
| Parameter | Description | Default |
|
||||
| ------------------------------------------- | --------------------------------------------- | ----------------------------------------- |
|
||||
| `release.version` | LocalPV Provisioner release version | `2.11.0` |
|
||||
| `analytics.enabled` | Enable sending stats to Google Analytics | `true` |
|
||||
| `analytics.pingInterval` | Duration(hours) between sending ping stat | `24h` |
|
||||
| `deviceClass.blockDeviceTag` | Value of `openebs.io/block-device-tag` BD label | `""` |
|
||||
| `deviceClass.enabled` | Enables creation of default Device StorageClass | `true` |
|
||||
| `deviceClass.fsType` | Filesystem type for openebs-device StorageClass | `"ext4"` |
|
||||
| `deviceClass.isDefaultClass` | Make openebs-device the default StorageClass | `"false"` |
|
||||
| `deviceClass.reclaimPolicy` | ReclaimPolicy for Device PVs | `"Delete"` |
|
||||
| `helperPod.image.registry` | Registry for helper image | `""` |
|
||||
| `helperPod.image.repository` | Image for helper pod | `"openebs/linux-utils"` |
|
||||
| `helperPod.image.pullPolicy` | Pull policy for helper pod | `"IfNotPresent"` |
|
||||
| `helperPod.image.tag` | Image tag for helper image | `2.11.0` |
|
||||
| `hostpathClass.basePath` | BasePath for openebs-hostpath StorageClass | `"/var/openebs/local"` |
|
||||
| `hostpathClass.enabled` | Enables creation of default Hostpath StorageClass | `true` |
|
||||
| `hostpathClass.isDefaultClass` | Make openebs-hostpath the default StorageClass | `"false"` |
|
||||
| `hostpathClass.nodeAffinityLabel` | Custom node label key to uniquely identify nodes. `kubernetes.io/hostname` is the default label key for node selection. | `""` |
|
||||
| `hostpathClass.reclaimPolicy` | ReclaimPolicy for Hostpath PVs | `"Delete"` |
|
||||
| `imagePullSecrets` | Provides image pull secrect | `""` |
|
||||
| `localpv.enabled` | Enable LocalPV Provisioner | `true` |
|
||||
| `localpv.image.registry` | Registry for LocalPV Provisioner image | `""` |
|
||||
| `localpv.image.repository` | Image repository for LocalPV Provisioner | `openebs/localpv-provisioner` |
|
||||
| `localpv.image.pullPolicy` | Image pull policy for LocalPV Provisioner | `IfNotPresent` |
|
||||
| `localpv.image.tag` | Image tag for LocalPV Provisioner | `2.11.0` |
|
||||
| `localpv.updateStrategy.type` | Update strategy for LocalPV Provisioner | `RollingUpdate` |
|
||||
| `localpv.annotations` | Annotations for LocalPV Provisioner metadata | `""` |
|
||||
| `localpv.podAnnotations` | Annotations for LocalPV Provisioner pods metadata | `""` |
|
||||
| `localpv.privileged` | Run LocalPV Provisioner with extra privileges | `true` |
|
||||
| `localpv.resources` | Resource and request and limit for containers | `""` |
|
||||
| `localpv.podLabels` | Appends labels to the pods | `""` |
|
||||
| `localpv.nodeSelector` | Nodeselector for LocalPV Provisioner pods | `""` |
|
||||
| `localpv.tolerations` | LocalPV Provisioner pod toleration values | `""` |
|
||||
| `localpv.securityContext` | Seurity context for container | `""` |
|
||||
| `localpv.healthCheck.initialDelaySeconds` | Delay before liveness probe is initiated | `30` |
|
||||
| `localpv.healthCheck.periodSeconds` | How often to perform the liveness probe | `60` |
|
||||
| `localpv.replicas` | No. of LocalPV Provisioner replica | `1` |
|
||||
| `localpv.enableLeaderElection` | Enable leader election | `true` |
|
||||
| `localpv.affinity` | LocalPV Provisioner pod affinity | `{}` |
|
||||
| `openebsNDM.enabled` | Install openebs NDM dependency | `true` |
|
||||
| `rbac.create` | Enable RBAC Resources | `true` |
|
||||
| `rbac.pspEnabled` | Create pod security policy resources | `false` |
|
||||
|
||||
|
||||
A YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
|
||||
|
||||
```bash
|
||||
helm install <release-name> -f values.yaml --namespace openebs openebs-localpv/localpv-provisioner
|
||||
```
|
||||
|
||||
> **Tip**: You can use the default [values.yaml](values.yaml)
|
|
@ -0,0 +1,23 @@
|
|||
apiVersion: v2
|
||||
appVersion: 1.6.0
|
||||
description: Helm chart for OpenEBS Node Disk Manager - a Kubernetes native storage
|
||||
device management solution. For instructions on how to install, refer to https://openebs.github.io/node-disk-manager/.
|
||||
home: http://www.openebs.io/
|
||||
icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/openebs/icon/color/openebs-icon-color.png
|
||||
keywords:
|
||||
- cloud-native-storage
|
||||
- block-storage
|
||||
- ndm
|
||||
- disk-inventory
|
||||
- storage
|
||||
maintainers:
|
||||
- email: akhil.mohan@mayadata.io
|
||||
name: akhilerm
|
||||
- email: michaelfornaro@gmail.com
|
||||
name: xUnholy
|
||||
- email: prateek.pandey@mayadata.io
|
||||
name: prateekpandey14
|
||||
name: openebs-ndm
|
||||
sources:
|
||||
- https://github.com/openebs/node-disk-manager
|
||||
version: 1.6.0
|
|
@ -0,0 +1,79 @@
|
|||
## Introduction
|
||||
|
||||
This chart bootstraps OpenEBS NDM deployment on a [Kubernetes](http://kubernetes.io) cluster using the
|
||||
[Helm](https://helm.sh) package manager.
|
||||
|
||||
## Installation
|
||||
|
||||
You can run OpenEBS NDM on any Kubernetes 1.13+ cluster in a matter of seconds.
|
||||
|
||||
Please visit the [link](https://openebs.github.io/node-disk-manager/) for install instructions via helm3.
|
||||
|
||||
## Configuration
|
||||
|
||||
The following table lists the configurable parameters of the OpenEBS NDM chart and their default values.
|
||||
|
||||
| Parameter | Description | Default |
|
||||
| ----------------------------------------| --------------------------------------------- | ----------------------------------------- |
|
||||
| `imagePullSecrets` | Provides image pull secrect | `""` |
|
||||
| `ndm.enabled` | Enable Node Disk Manager | `true` |
|
||||
| `ndm.image.registry` | Registry for Node Disk Manager image | `""` |
|
||||
| `ndm.image.repository` | Image repository for Node Disk Manager | `openebs/node-disk-manager` |
|
||||
| `ndm.image.pullPolicy` | Image pull policy for Node Disk Manager | `IfNotPresent` |
|
||||
| `ndm.image.tag` | Image tag for Node Disk Manager | `1.5.0` |
|
||||
| `ndm.sparse.path` | Directory where Sparse files are created | `/var/openebs/sparse` |
|
||||
| `ndm.sparse.size` | Size of the sparse file in bytes | `10737418240` |
|
||||
| `ndm.sparse.count` | Number of sparse files to be created | `0` |
|
||||
| `ndm.updateStrategy.type` | Update strategy for NDM daemonset | `RollingUpdate` |
|
||||
| `ndm.annotations` | Annotations for NDM daemonset metadata | `""` |
|
||||
| `ndm.podAnnotations` | Annotations for NDM daemonset's pods metadata | `""` |
|
||||
| `ndm.resources` | Resource and request and limit for containers | `""` |
|
||||
| `ndm.podLabels` | Appends labels to the pods | `""` |
|
||||
| `ndm.nodeSelector` | Nodeselector for daemonset pods | `""` |
|
||||
| `ndm.tolerations` | NDM daemonset's pod toleration values | `""` |
|
||||
| `ndm.securityContext` | Seurity context for container | `""` |
|
||||
| `ndm.filters.enableOsDiskExcludeFilter` | Enable filters of OS disk exclude | `true` |
|
||||
| `ndm.filters.osDiskExcludePaths` | Paths/Mountpoints to be excluded by OS Disk Filter| `/,/etc/hosts,/boot` |
|
||||
| `ndm.filters.enableVendorFilter` | Enable filters of vendors | `true` |
|
||||
| `ndm.filters.excludeVendors` | Exclude devices with specified vendor | `CLOUDBYT,OpenEBS` |
|
||||
| `ndm.filters.enablePathFilter` | Enable filters of paths | `true` |
|
||||
| `ndm.filters.includePaths` | Include devices with specified path patterns | `""` |
|
||||
| `ndm.filters.excludePaths` | Exclude devices with specified path patterns | `loop,fd0,sr0,/dev/ram,/dev/dm-,/dev/md,/dev/rbd,/dev/zd`|
|
||||
| `ndm.probes.enableSeachest` | Enable Seachest probe for NDM | `false` |
|
||||
| `ndm.probes.enableUdevProbe` | Enable Udev probe for NDM | `true` |
|
||||
| `ndm.probes.enableSmartProbe` | Enable Smart probe for NDM | `true` |
|
||||
| `ndmOperator.enabled` | Enable NDM Operator | `true` |
|
||||
| `ndmOperator.replica` | Pod replica count for NDM operator | `1` |
|
||||
| `ndmOperator.upgradeStrategy` | Update strategy NDM operator | `"Recreate"` |
|
||||
| `ndmOperator.image.registry` | Registry for NDM operator image | `""` |
|
||||
| `ndmOperator.image.repository` | Image repository for NDM operator | `openebs/node-disk-operator` |
|
||||
| `ndmOperator.image.pullPolicy` | Image pull policy for NDM operator | `IfNotPresent` |
|
||||
| `ndmOperator.image.tag` | Image tag for NDM operator | `1.5.0` |
|
||||
| `ndmOperator.annotations` | Annotations for NDM operator metadata | `""` |
|
||||
| `ndmOperator.podAnnotations` | Annotations for NDM operator's pods metadata | `""` |
|
||||
| `ndmOperator.resources` | Resource and request and limit for containers | `""` |
|
||||
| `ndmOperator.podLabels` | Appends labels to the pods | `""` |
|
||||
| `ndmOperator.nodeSelector` | Nodeselector for operator pods | `""` |
|
||||
| `ndmOperator.tolerations` | NDM operator's pod toleration values | `""` |
|
||||
| `ndmOperator.securityContext` | Seurity context for container | `""` |
|
||||
| `featureGates.APIService.enabled` | Enable the gRPC API service of NDM | `false` |
|
||||
| `featureGates.UseOSDisk.enabled` | Enable feature-gate to use free space on OS disk | `false` |
|
||||
| `featureGates.MountChangeDetection.enabled` | Enable feature-gate to detect mountpoint/filesystem changes | `false` |
|
||||
| `helperPod.image.registry` | Registry for helper image | `""` |
|
||||
| `helperPod.image.repository` | Image for helper pod | `openebs/linux-utils` |
|
||||
| `helperPod.image.pullPolicy` | Pull policy for helper pod | `IfNotPresent` |
|
||||
| `helperPod.image.tag` | Image tag for helper image | `2.10.0` |
|
||||
| `varDirectoryPath.baseDir` | Directory to store debug info and so forth | `/var/openebs` |
|
||||
| `serviceAccount.create` | Create a service account or not | `true` |
|
||||
| `serviceAccount.name` | Name for the service account | `true` |
|
||||
|
||||
|
||||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
|
||||
|
||||
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
|
||||
|
||||
```bash
|
||||
helm install <release-name> -f values.yaml ndm/openebs-ndm
|
||||
```
|
||||
|
||||
> **Tip**: You can use the default [values.yaml](values.yaml)
|
|
@ -0,0 +1,241 @@
|
|||
|
||||
---
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.5.0
|
||||
creationTimestamp: null
|
||||
name: blockdevices.openebs.io
|
||||
spec:
|
||||
group: openebs.io
|
||||
names:
|
||||
kind: BlockDevice
|
||||
listKind: BlockDeviceList
|
||||
plural: blockdevices
|
||||
shortNames:
|
||||
- bd
|
||||
singular: blockdevice
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- jsonPath: .spec.nodeAttributes.nodeName
|
||||
name: NodeName
|
||||
type: string
|
||||
- jsonPath: .spec.path
|
||||
name: Path
|
||||
priority: 1
|
||||
type: string
|
||||
- jsonPath: .spec.filesystem.fsType
|
||||
name: FSType
|
||||
priority: 1
|
||||
type: string
|
||||
- jsonPath: .spec.capacity.storage
|
||||
name: Size
|
||||
type: string
|
||||
- jsonPath: .status.claimState
|
||||
name: ClaimState
|
||||
type: string
|
||||
- jsonPath: .status.state
|
||||
name: Status
|
||||
type: string
|
||||
- jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: BlockDevice is the Schema for the blockdevices API
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: DeviceSpec defines the properties and runtime status of a BlockDevice
|
||||
properties:
|
||||
aggregateDevice:
|
||||
description: AggregateDevice was intended to store the hierarchical information in cases of LVM. However this is currently not implemented and may need to be re-looked into for better design. To be deprecated
|
||||
type: string
|
||||
capacity:
|
||||
description: Capacity
|
||||
properties:
|
||||
logicalSectorSize:
|
||||
description: LogicalSectorSize is blockdevice logical-sector size in bytes
|
||||
format: int32
|
||||
type: integer
|
||||
physicalSectorSize:
|
||||
description: PhysicalSectorSize is blockdevice physical-Sector size in bytes
|
||||
format: int32
|
||||
type: integer
|
||||
storage:
|
||||
description: Storage is the blockdevice capacity in bytes
|
||||
format: int64
|
||||
type: integer
|
||||
required:
|
||||
- storage
|
||||
type: object
|
||||
claimRef:
|
||||
description: ClaimRef is the reference to the BDC which has claimed this BD
|
||||
properties:
|
||||
apiVersion:
|
||||
description: API version of the referent.
|
||||
type: string
|
||||
fieldPath:
|
||||
description: 'If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. TODO: this design is not final and this field is subject to change in the future.'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
name:
|
||||
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
|
||||
type: string
|
||||
namespace:
|
||||
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
|
||||
type: string
|
||||
resourceVersion:
|
||||
description: 'Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
|
||||
type: string
|
||||
uid:
|
||||
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
|
||||
type: string
|
||||
type: object
|
||||
details:
|
||||
description: Details contain static attributes of BD like model,serial, and so forth
|
||||
properties:
|
||||
compliance:
|
||||
description: Compliance is standards/specifications version implemented by device firmware such as SPC-1, SPC-2, etc
|
||||
type: string
|
||||
deviceType:
|
||||
description: DeviceType represents the type of device like sparse, disk, partition, lvm, crypt
|
||||
enum:
|
||||
- disk
|
||||
- partition
|
||||
- sparse
|
||||
- loop
|
||||
- lvm
|
||||
- crypt
|
||||
- dm
|
||||
- mpath
|
||||
type: string
|
||||
driveType:
|
||||
description: DriveType is the type of backing drive, HDD/SSD
|
||||
enum:
|
||||
- HDD
|
||||
- SSD
|
||||
- Unknown
|
||||
- ""
|
||||
type: string
|
||||
firmwareRevision:
|
||||
description: FirmwareRevision is the disk firmware revision
|
||||
type: string
|
||||
hardwareSectorSize:
|
||||
description: HardwareSectorSize is the hardware sector size in bytes
|
||||
format: int32
|
||||
type: integer
|
||||
logicalBlockSize:
|
||||
description: LogicalBlockSize is the logical block size in bytes reported by /sys/class/block/sda/queue/logical_block_size
|
||||
format: int32
|
||||
type: integer
|
||||
model:
|
||||
description: Model is model of disk
|
||||
type: string
|
||||
physicalBlockSize:
|
||||
description: PhysicalBlockSize is the physical block size in bytes reported by /sys/class/block/sda/queue/physical_block_size
|
||||
format: int32
|
||||
type: integer
|
||||
serial:
|
||||
description: Serial is serial number of disk
|
||||
type: string
|
||||
vendor:
|
||||
description: Vendor is vendor of disk
|
||||
type: string
|
||||
type: object
|
||||
devlinks:
|
||||
description: DevLinks contains soft links of a block device like /dev/by-id/... /dev/by-uuid/...
|
||||
items:
|
||||
description: DeviceDevLink holds the mapping between type and links like by-id type or by-path type link
|
||||
properties:
|
||||
kind:
|
||||
description: Kind is the type of link like by-id or by-path.
|
||||
enum:
|
||||
- by-id
|
||||
- by-path
|
||||
type: string
|
||||
links:
|
||||
description: Links are the soft links
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
filesystem:
|
||||
description: FileSystem contains mountpoint and filesystem type
|
||||
properties:
|
||||
fsType:
|
||||
description: Type represents the FileSystem type of the block device
|
||||
type: string
|
||||
mountPoint:
|
||||
description: MountPoint represents the mountpoint of the block device.
|
||||
type: string
|
||||
type: object
|
||||
nodeAttributes:
|
||||
description: NodeAttributes has the details of the node on which BD is attached
|
||||
properties:
|
||||
nodeName:
|
||||
description: NodeName is the name of the Kubernetes node resource on which the device is attached
|
||||
type: string
|
||||
type: object
|
||||
parentDevice:
|
||||
description: "ParentDevice was intended to store the UUID of the parent Block Device as is the case for partitioned block devices. \n For example: /dev/sda is the parent for /dev/sda1 To be deprecated"
|
||||
type: string
|
||||
partitioned:
|
||||
description: Partitioned represents if BlockDevice has partitions or not (Yes/No) Currently always default to No. To be deprecated
|
||||
enum:
|
||||
- "Yes"
|
||||
- "No"
|
||||
type: string
|
||||
path:
|
||||
description: Path contain devpath (e.g. /dev/sdb)
|
||||
type: string
|
||||
required:
|
||||
- capacity
|
||||
- devlinks
|
||||
- nodeAttributes
|
||||
- path
|
||||
type: object
|
||||
status:
|
||||
description: DeviceStatus defines the observed state of BlockDevice
|
||||
properties:
|
||||
claimState:
|
||||
description: ClaimState represents the claim state of the block device
|
||||
enum:
|
||||
- Claimed
|
||||
- Unclaimed
|
||||
- Released
|
||||
type: string
|
||||
state:
|
||||
description: State is the current state of the blockdevice (Active/Inactive/Unknown)
|
||||
enum:
|
||||
- Active
|
||||
- Inactive
|
||||
- Unknown
|
||||
type: string
|
||||
required:
|
||||
- claimState
|
||||
- state
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
|
@ -0,0 +1,144 @@
|
|||
|
||||
---
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.5.0
|
||||
creationTimestamp: null
|
||||
name: blockdeviceclaims.openebs.io
|
||||
spec:
|
||||
group: openebs.io
|
||||
names:
|
||||
kind: BlockDeviceClaim
|
||||
listKind: BlockDeviceClaimList
|
||||
plural: blockdeviceclaims
|
||||
shortNames:
|
||||
- bdc
|
||||
singular: blockdeviceclaim
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- jsonPath: .spec.blockDeviceName
|
||||
name: BlockDeviceName
|
||||
type: string
|
||||
- jsonPath: .status.phase
|
||||
name: Phase
|
||||
type: string
|
||||
- jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: BlockDeviceClaim is the Schema for the blockdeviceclaims API
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: DeviceClaimSpec defines the request details for a BlockDevice
|
||||
properties:
|
||||
blockDeviceName:
|
||||
description: BlockDeviceName is the reference to the block-device backing this claim
|
||||
type: string
|
||||
blockDeviceNodeAttributes:
|
||||
description: BlockDeviceNodeAttributes is the attributes on the node from which a BD should be selected for this claim. It can include nodename, failure domain etc.
|
||||
properties:
|
||||
hostName:
|
||||
description: HostName represents the hostname of the Kubernetes node resource where the BD should be present
|
||||
type: string
|
||||
nodeName:
|
||||
description: NodeName represents the name of the Kubernetes node resource where the BD should be present
|
||||
type: string
|
||||
type: object
|
||||
deviceClaimDetails:
|
||||
description: Details of the device to be claimed
|
||||
properties:
|
||||
allowPartition:
|
||||
description: AllowPartition represents whether to claim a full block device or a device that is a partition
|
||||
type: boolean
|
||||
blockVolumeMode:
|
||||
description: 'BlockVolumeMode represents whether to claim a device in Block mode or Filesystem mode. These are use cases of BlockVolumeMode: 1) Not specified: VolumeMode check will not be effective 2) VolumeModeBlock: BD should not have any filesystem or mountpoint 3) VolumeModeFileSystem: BD should have a filesystem and mountpoint. If DeviceFormat is specified then the format should match with the FSType in BD'
|
||||
type: string
|
||||
formatType:
|
||||
description: Format of the device required, eg:ext4, xfs
|
||||
type: string
|
||||
type: object
|
||||
deviceType:
|
||||
description: DeviceType represents the type of drive like SSD, HDD etc.,
|
||||
nullable: true
|
||||
type: string
|
||||
hostName:
|
||||
description: Node name from where blockdevice has to be claimed. To be deprecated. Use NodeAttributes.HostName instead
|
||||
type: string
|
||||
resources:
|
||||
description: Resources will help with placing claims on Capacity, IOPS
|
||||
properties:
|
||||
requests:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Requests describes the minimum resources required. eg: if storage resource of 10G is requested minimum capacity of 10G should be available TODO for validating'
|
||||
type: object
|
||||
required:
|
||||
- requests
|
||||
type: object
|
||||
selector:
|
||||
description: Selector is used to find block devices to be considered for claiming
|
||||
properties:
|
||||
matchExpressions:
|
||||
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
|
||||
items:
|
||||
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
|
||||
properties:
|
||||
key:
|
||||
description: key is the label key that the selector applies to.
|
||||
type: string
|
||||
operator:
|
||||
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
|
||||
type: string
|
||||
values:
|
||||
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
required:
|
||||
- key
|
||||
- operator
|
||||
type: object
|
||||
type: array
|
||||
matchLabels:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
|
||||
type: object
|
||||
type: object
|
||||
type: object
|
||||
status:
|
||||
description: DeviceClaimStatus defines the observed state of BlockDeviceClaim
|
||||
properties:
|
||||
phase:
|
||||
description: Phase represents the current phase of the claim
|
||||
type: string
|
||||
required:
|
||||
- phase
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources: {}
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
|
@ -0,0 +1,8 @@
|
|||
The OpenEBS Node Disk Manager has been installed. Check its status by running:
|
||||
$ kubectl get pods -n {{ .Release.Namespace }}
|
||||
|
||||
Use `kubectl get bd -n {{ .Release.Namespace }} ` to see the list of
|
||||
blockdevices attached to the Kubernetes cluster nodes.
|
||||
|
||||
For more information, visit our Slack at https://openebs.io/community or view
|
||||
the documentation online at http://docs.openebs.io/.
|
|
@ -0,0 +1,132 @@
|
|||
{{/* vim: set filetype=mustache: */}}
|
||||
{{/*
|
||||
Expand the name of the chart.
|
||||
This name is used for ndm daemonset
|
||||
*/}}
|
||||
{{- define "openebs-ndm.name" -}}
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create chart name and version as used by the chart label.
|
||||
*/}}
|
||||
{{- define "openebs-ndm.chart" -}}
|
||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create a default fully qualified ndm daemonset app name.
|
||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||
If release name contains chart name it will be used as a full name.
|
||||
*/}}
|
||||
{{- define "openebs-ndm.fullname" -}}
|
||||
{{- if .Values.fullnameOverride }}
|
||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||
{{- if contains .Release.Name $name }}
|
||||
{{- $name | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- define "openebs-ndm.operator.name" -}}
|
||||
{{- $ndmName := default .Chart.Name .Values.ndmOperator.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- $componentName := .Values.ndmOperator.name | trunc 63 | trimSuffix "-" }}
|
||||
{{- printf "%s-%s" $ndmName $componentName | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create a default fully qualified ndm operator app name.
|
||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||
If release name contains chart name it will be used as a full name.
|
||||
*/}}
|
||||
{{- define "openebs-ndm.operator.fullname" -}}
|
||||
{{- if .Values.ndmOperator.fullnameOverride }}
|
||||
{{- .Values.ndmOperator.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- $ndmOperatorName := include "openebs-ndm.operator.name" .}}
|
||||
|
||||
{{- $name := default $ndmOperatorName .Values.ndmOperator.nameOverride }}
|
||||
{{- if contains .Release.Name $name }}
|
||||
{{- $name | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create the name of the service account to use
|
||||
*/}}
|
||||
{{- define "openebs-ndm.serviceAccountName" -}}
|
||||
{{- if .Values.serviceAccount.create }}
|
||||
{{- default (include "openebs-ndm.fullname" .) .Values.serviceAccount.name }}
|
||||
{{- else }}
|
||||
{{- default "default" .Values.serviceAccount.name }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Define meta labels for ndm components
|
||||
*/}}
|
||||
{{- define "openebs-ndm.common.metaLabels" -}}
|
||||
chart: {{ template "openebs-ndm.chart" . }}
|
||||
heritage: {{ .Release.Service }}
|
||||
openebs.io/version: {{ .Values.release.version | quote }}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
{{/*
|
||||
Create match labels for ndm daemonset component
|
||||
*/}}
|
||||
{{- define "openebs-ndm.matchLabels" -}}
|
||||
app: {{ template "openebs-ndm.name" . }}
|
||||
release: {{ .Release.Name }}
|
||||
component: {{ .Values.ndm.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create component labels for ndm daemonset component
|
||||
*/}}
|
||||
{{- define "openebs-ndm.componentLabels" -}}
|
||||
openebs.io/component-name: {{ .Values.ndm.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
{{/*
|
||||
Create labels for ndm daemonset component
|
||||
*/}}
|
||||
{{- define "openebs-ndm.labels" -}}
|
||||
{{ include "openebs-ndm.common.metaLabels" . }}
|
||||
{{ include "openebs-ndm.matchLabels" . }}
|
||||
{{ include "openebs-ndm.componentLabels" . }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create match labels for ndm operator deployment
|
||||
*/}}
|
||||
{{- define "openebs-ndm.operator.matchLabels" -}}
|
||||
app: {{ template "openebs-ndm.operator.name" . }}
|
||||
release: {{ .Release.Name }}
|
||||
component: {{ default (include "openebs-ndm.operator.name" .) .Values.ndmOperator.componentName }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create component labels for ndm operator component
|
||||
*/}}
|
||||
{{- define "openebs-ndm.operator.componentLabels" -}}
|
||||
openebs.io/component-name: {{ default (include "openebs-ndm.operator.name" .) .Values.ndmOperator.componentName }}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
{{/*
|
||||
Create labels for ndm operator component
|
||||
*/}}
|
||||
{{- define "openebs-ndm.operator.labels" -}}
|
||||
{{ include "openebs-ndm.common.metaLabels" . }}
|
||||
{{ include "openebs-ndm.operator.matchLabels" . }}
|
||||
{{ include "openebs-ndm.operator.componentLabels" . }}
|
||||
{{- end -}}
|
|
@ -0,0 +1,38 @@
|
|||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ include "openebs-ndm.fullname" . }}-config
|
||||
data:
|
||||
# node-disk-manager-config contains config of available probes and filters.
|
||||
# Probes and Filters will initialize with default values if config for that
|
||||
# filter or probe are not present in configmap
|
||||
|
||||
# udev-probe is default or primary probe it should be enabled to run ndm
|
||||
# filterconfigs contains configs of filters. To provide a group of include
|
||||
# and exclude values add it as , separated string
|
||||
node-disk-manager.config: |
|
||||
probeconfigs:
|
||||
- key: udev-probe
|
||||
name: udev probe
|
||||
state: {{ .Values.ndm.probes.enableUdevProbe }}
|
||||
- key: seachest-probe
|
||||
name: seachest probe
|
||||
state: {{ .Values.ndm.probes.enableSeachest }}
|
||||
- key: smart-probe
|
||||
name: smart probe
|
||||
state: {{ .Values.ndm.probes.enableSmartProbe }}
|
||||
filterconfigs:
|
||||
- key: os-disk-exclude-filter
|
||||
name: os disk exclude filter
|
||||
state: {{ .Values.ndm.filters.enableOsDiskExcludeFilter }}
|
||||
exclude: "{{ .Values.ndm.filters.osDiskExcludePaths }}"
|
||||
- key: vendor-filter
|
||||
name: vendor filter
|
||||
state: {{ .Values.ndm.filters.enableVendorFilter }}
|
||||
include: ""
|
||||
exclude: "{{ .Values.ndm.filters.excludeVendors }}"
|
||||
- key: path-filter
|
||||
name: path filter
|
||||
state: {{ .Values.ndm.filters.enablePathFilter }}
|
||||
include: "{{ .Values.ndm.filters.includePaths }}"
|
||||
exclude: "{{ .Values.ndm.filters.excludePaths }}"
|
|
@ -0,0 +1,176 @@
|
|||
{{- if .Values.ndm.enabled }}
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
name: {{ template "openebs-ndm.fullname" . }}
|
||||
{{- with .Values.ndm.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "openebs-ndm.labels" . | nindent 4 }}
|
||||
spec:
|
||||
updateStrategy:
|
||||
{{ toYaml .Values.ndm.updateStrategy | indent 4 }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "openebs-ndm.matchLabels" . | nindent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
{{- with .Values.ndm.podAnnotations }}
|
||||
annotations: {{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "openebs-ndm.labels" . | nindent 8 }}
|
||||
{{- with .Values.ndm.podLabels}}
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end}}
|
||||
spec:
|
||||
serviceAccountName: {{ template "openebs-ndm.serviceAccountName" . }}
|
||||
{{- if .Values.featureGates.enabled }}
|
||||
{{- if .Values.featureGates.APIService.enabled }}
|
||||
hostPID: true
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
containers:
|
||||
- name: {{ template "openebs-ndm.name" . }}
|
||||
image: "{{ .Values.ndm.image.registry }}{{ .Values.ndm.image.repository }}:{{ .Values.ndm.image.tag }}"
|
||||
args:
|
||||
- -v=4
|
||||
{{- if .Values.featureGates.enabled }}
|
||||
{{- if .Values.featureGates.GPTBasedUUID.enabled }}
|
||||
- --feature-gates={{ .Values.featureGates.GPTBasedUUID.featureGateFlag }}
|
||||
{{- end}}
|
||||
{{- if .Values.featureGates.APIService.enabled }}
|
||||
- --feature-gates={{ .Values.featureGates.APIService.featureGateFlag }}
|
||||
- --api-service-address={{ .Values.featureGates.APIService.address }}
|
||||
{{- end}}
|
||||
{{- if .Values.featureGates.UseOSDisk.enabled }}
|
||||
- --feature-gates={{ .Values.featureGates.UseOSDisk.featureGateFlag }}
|
||||
{{- end}}
|
||||
{{- if .Values.featureGates.MountChangeDetection.enabled }}
|
||||
- --feature-gates={{ .Values.featureGates.MountChangeDetection.featureGateFlag }}
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
imagePullPolicy: {{ .Values.ndm.image.pullPolicy }}
|
||||
resources:
|
||||
{{ toYaml .Values.ndm.resources | indent 12 }}
|
||||
securityContext:
|
||||
privileged: true
|
||||
env:
|
||||
# namespace in which NDM is installed will be passed to NDM Daemonset
|
||||
# as environment variable
|
||||
- name: NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
# pass hostname as env variable using downward API to the NDM container
|
||||
- name: NODE_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
{{- if .Values.ndm.sparse }}
|
||||
{{- if .Values.ndm.sparse.path }}
|
||||
# specify the directory where the sparse files need to be created.
|
||||
# if not specified, then sparse files will not be created.
|
||||
- name: SPARSE_FILE_DIR
|
||||
value: "{{ .Values.ndm.sparse.path }}"
|
||||
{{- end }}
|
||||
{{- if .Values.ndm.sparse.size }}
|
||||
# Size(bytes) of the sparse file to be created.
|
||||
- name: SPARSE_FILE_SIZE
|
||||
value: "{{ .Values.ndm.sparse.size }}"
|
||||
{{- end }}
|
||||
{{- if .Values.ndm.sparse.count }}
|
||||
# Specify the number of sparse files to be created
|
||||
- name: SPARSE_FILE_COUNT
|
||||
value: "{{ .Values.ndm.sparse.count }}"
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
# Process name used for matching is limited to the 15 characters
|
||||
# present in the pgrep output.
|
||||
# So fullname can be used here with pgrep (cmd is < 15 chars).
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- pgrep
|
||||
- "ndm"
|
||||
initialDelaySeconds: {{ .Values.ndm.healthCheck.initialDelaySeconds }}
|
||||
periodSeconds: {{ .Values.ndm.healthCheck.periodSeconds }}
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /host/node-disk-manager.config
|
||||
subPath: node-disk-manager.config
|
||||
readOnly: true
|
||||
- name: udev
|
||||
mountPath: /run/udev
|
||||
- name: procmount
|
||||
mountPath: /host/proc
|
||||
readOnly: true
|
||||
- name: devmount
|
||||
mountPath: /dev
|
||||
- name: basepath
|
||||
mountPath: /var/openebs/ndm
|
||||
{{- if .Values.ndm.sparse }}
|
||||
{{- if .Values.ndm.sparse.path }}
|
||||
- name: sparsepath
|
||||
mountPath: {{ .Values.ndm.sparse.path }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
volumes:
|
||||
- name: config
|
||||
configMap:
|
||||
name: {{ include "openebs-ndm.fullname" . }}-config
|
||||
- name: udev
|
||||
hostPath:
|
||||
path: /run/udev
|
||||
type: Directory
|
||||
# mount /proc (to access mount file of process 1 of host) inside container
|
||||
# to read mount-point of disks and partitions
|
||||
- name: procmount
|
||||
hostPath:
|
||||
path: /proc
|
||||
type: Directory
|
||||
- name: devmount
|
||||
# the /dev directory is mounted so that we have access to the devices that
|
||||
# are connected at runtime of the pod.
|
||||
hostPath:
|
||||
path: /dev
|
||||
type: Directory
|
||||
- name: basepath
|
||||
hostPath:
|
||||
path: "{{ .Values.varDirectoryPath.baseDir }}/ndm"
|
||||
type: DirectoryOrCreate
|
||||
{{- if .Values.ndm.sparse }}
|
||||
{{- if .Values.ndm.sparse.path }}
|
||||
- name: sparsepath
|
||||
hostPath:
|
||||
path: {{ .Values.ndm.sparse.path }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
# By default the node-disk-manager will be run on all kubernetes nodes
|
||||
# If you would like to limit this to only some nodes, say the nodes
|
||||
# that have storage attached, you could label those node and use
|
||||
# nodeSelector.
|
||||
#
|
||||
# e.g. label the storage nodes with - "openebs.io/nodegroup"="storage-node"
|
||||
# kubectl label node <node-name> "openebs.io/nodegroup"="storage-node"
|
||||
#nodeSelector:
|
||||
# "openebs.io/nodegroup": "storage-node"
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 6 }}
|
||||
{{- end }}
|
||||
{{- if .Values.ndm.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.ndm.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.ndm.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml .Values.ndm.tolerations | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.ndm.securityContext }}
|
||||
securityContext:
|
||||
{{ toYaml .Values.ndm.securityContext | indent 8 }}
|
||||
{{- end }}
|
||||
hostNetwork: true
|
||||
{{- end }}
|
|
@ -0,0 +1,87 @@
|
|||
{{- if .Values.ndmOperator.enabled }}
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ template "openebs-ndm.operator.fullname" . }}
|
||||
{{- with .Values.ndmOperator.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "openebs-ndm.operator.labels" . | nindent 4 }}
|
||||
spec:
|
||||
replicas: {{ .Values.ndmOperator.replicas }}
|
||||
strategy:
|
||||
type: "Recreate"
|
||||
rollingUpdate: null
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "openebs-ndm.operator.matchLabels" . | nindent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
{{- with .Values.ndmOperator.podAnnotations }}
|
||||
annotations: {{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "openebs-ndm.operator.labels" . | nindent 8 }}
|
||||
{{- with .Values.ndmOperator.podLabels}}
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end}}
|
||||
spec:
|
||||
serviceAccountName: {{ template "openebs-ndm.serviceAccountName" . }}
|
||||
containers:
|
||||
- name: {{ template "openebs-ndm.operator.fullname" . }}
|
||||
image: "{{ .Values.ndmOperator.image.registry }}{{ .Values.ndmOperator.image.repository }}:{{ .Values.ndmOperator.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.ndmOperator.image.pullPolicy }}
|
||||
resources:
|
||||
{{ toYaml .Values.ndmOperator.resources | indent 12 }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 8585
|
||||
initialDelaySeconds: {{ .Values.ndmOperator.healthCheck.initialDelaySeconds }}
|
||||
periodSeconds: {{ .Values.ndmOperator.healthCheck.periodSeconds }}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /readyz
|
||||
port: 8585
|
||||
initialDelaySeconds: {{ .Values.ndmOperator.readinessCheck.initialDelaySeconds }}
|
||||
periodSeconds: {{ .Values.ndmOperator.readinessCheck.periodSeconds }}
|
||||
env:
|
||||
- name: WATCH_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: POD_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.name
|
||||
- name: SERVICE_ACCOUNT
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.serviceAccountName
|
||||
- name: OPERATOR_NAME
|
||||
value: "node-disk-operator"
|
||||
- name: CLEANUP_JOB_IMAGE
|
||||
value: "{{ .Values.helperPod.image.registry }}{{ .Values.helperPod.image.repository }}:{{ .Values.helperPod.image.tag }}"
|
||||
{{- if .Values.imagePullSecrets }}
|
||||
- name: OPENEBS_IO_IMAGE_PULL_SECRETS
|
||||
value: "{{- range $index, $secret := .Values.imagePullSecrets}}{{if $index}},{{end}}{{ $secret.name }}{{- end}}"
|
||||
{{- end }}
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 6 }}
|
||||
{{- end }}
|
||||
{{- if .Values.ndmOperator.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.ndmOperator.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.ndmOperator.securityContext }}
|
||||
securityContext:
|
||||
{{ toYaml .Values.ndmOperator.securityContext | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.ndmOperator.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml .Values.ndmOperator.tolerations | indent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
|
@ -0,0 +1,44 @@
|
|||
{{- if .Values.serviceAccount.create -}}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ include "openebs-ndm.serviceAccountName" . }}
|
||||
{{- end }}
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: {{ include "openebs-ndm.fullname" . }}
|
||||
rules:
|
||||
- apiGroups: ["*"]
|
||||
resources: ["nodes", "pods", "events", "configmaps", "jobs"]
|
||||
verbs:
|
||||
- '*'
|
||||
- apiGroups: ["apiextensions.k8s.io"]
|
||||
resources: ["customresourcedefinitions"]
|
||||
verbs:
|
||||
- '*'
|
||||
- apiGroups:
|
||||
- openebs.io
|
||||
resources:
|
||||
- blockdevices
|
||||
- blockdeviceclaims
|
||||
verbs:
|
||||
- '*'
|
||||
---
|
||||
kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: {{ include "openebs-ndm.fullname" . }}
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ include "openebs-ndm.serviceAccountName" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
- kind: User
|
||||
name: system:serviceaccount:default:default
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: {{ include "openebs-ndm.fullname" . }}
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
|
@ -0,0 +1,121 @@
|
|||
# Default values for ndm.
|
||||
# This is a YAML-formatted file.
|
||||
# Declare variables to be passed into your templates.
|
||||
release:
|
||||
version: "1.6.0"
|
||||
|
||||
imagePullSecrets:
|
||||
# - name: "image-pull-secret"
|
||||
|
||||
ndm:
|
||||
componentName: ndm
|
||||
enabled: true
|
||||
image:
|
||||
# Make sure that registry name end with a '/'.
|
||||
# For example : quay.io/ is a correct value here and quay.io is incorrect
|
||||
registry:
|
||||
repository: openebs/node-disk-manager
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: 1.6.0
|
||||
sparse:
|
||||
path: "/var/openebs/sparse"
|
||||
size: "10737418240"
|
||||
count: "0"
|
||||
updateStrategy:
|
||||
type: RollingUpdate
|
||||
annotations: {}
|
||||
podAnnotations: {}
|
||||
resources: {}
|
||||
# limits:
|
||||
# cpu: 10m
|
||||
# memory: 32Mi
|
||||
# requests:
|
||||
# cpu: 10m
|
||||
# memory: 32Mi
|
||||
## Labels to be added to ndm daemonset pods
|
||||
podLabels:
|
||||
name: openebs-ndm
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
securityContext: {}
|
||||
filters:
|
||||
enableOsDiskExcludeFilter: true
|
||||
osDiskExcludePaths: "/,/etc/hosts,/boot"
|
||||
enableVendorFilter: true
|
||||
excludeVendors: "CLOUDBYT,OpenEBS"
|
||||
enablePathFilter: true
|
||||
includePaths: ""
|
||||
excludePaths: "loop,fd0,sr0,/dev/ram,/dev/dm-,/dev/md,/dev/rbd,/dev/zd"
|
||||
probes:
|
||||
enableSeachest: false
|
||||
enableUdevProbe: true
|
||||
enableSmartProbe: true
|
||||
healthCheck:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 60
|
||||
|
||||
ndmOperator:
|
||||
name: operator
|
||||
enabled: true
|
||||
image:
|
||||
registry:
|
||||
repository: openebs/node-disk-operator
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: 1.6.0
|
||||
podLabels:
|
||||
name: openebs-ndm-operator
|
||||
annotations: {}
|
||||
podAnnotations: {}
|
||||
nodeSelector: {}
|
||||
resources: {}
|
||||
securityContext: {}
|
||||
tolerations: []
|
||||
healthCheck:
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 20
|
||||
readinessCheck:
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
replicas: 1
|
||||
upgradeStrategy: Recreate
|
||||
|
||||
helperPod:
|
||||
image:
|
||||
registry: ""
|
||||
repository: openebs/linux-utils
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: 2.11.0
|
||||
|
||||
crd:
|
||||
enableInstall: false
|
||||
|
||||
featureGates:
|
||||
enabled: true
|
||||
GPTBasedUUID:
|
||||
enabled: true
|
||||
featureGateFlag: "GPTBasedUUID"
|
||||
APIService:
|
||||
enabled: false
|
||||
featureGateFlag: "APIService"
|
||||
address: "0.0.0.0:9115"
|
||||
UseOSDisk:
|
||||
enabled: false
|
||||
featureGateFlag: "UseOSDisk"
|
||||
MountChangeDetection:
|
||||
enabled: false
|
||||
featureGateFlag: "MountChangeDetection"
|
||||
|
||||
# Directory used by the OpenEBS to store debug information and so forth
|
||||
# that are generated in the course of running OpenEBS containers.
|
||||
varDirectoryPath:
|
||||
baseDir: "/var/openebs"
|
||||
|
||||
serviceAccount:
|
||||
# Specifies whether a service account should be created
|
||||
create: true
|
||||
# The name of the service account to use.
|
||||
# If not set and create is true, a name is generated using the fullname template
|
||||
name: openebs-ndm
|
|
@ -0,0 +1,12 @@
|
|||
The OpenEBS Dynamic LocalPV Provisioner has been installed.
|
||||
Check its status by running:
|
||||
$ kubectl get pods -n {{ .Release.Namespace }}
|
||||
|
||||
Use `kubectl get bd -n {{ .Release.Namespace }}` to list the
|
||||
blockdevices attached to the Kubernetes cluster nodes.
|
||||
|
||||
Get started with the Dynamic LocalPV Provisioner Quickstart guide at:
|
||||
https://github.com/openebs/dynamic-localpv-provisioner/blob/develop/docs/quickstart.md
|
||||
|
||||
For more information, visit our Slack at https://openebs.io/community or view
|
||||
the OpenEBS documentation online at https://docs.openebs.io.
|
|
@ -0,0 +1,79 @@
|
|||
{{/* vim: set filetype=mustache: */}}
|
||||
{{/*
|
||||
Expand the name of the chart.
|
||||
*/}}
|
||||
{{- define "localpv.name" -}}
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create a default fully qualified localpv provisioner name.
|
||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||
If release name contains chart name it will be used as a full name.
|
||||
*/}}
|
||||
{{- define "localpv.fullname" -}}
|
||||
{{- if .Values.fullnameOverride -}}
|
||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
||||
{{- if contains $name .Release.Name -}}
|
||||
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create chart name and version as used by the chart label.
|
||||
*/}}
|
||||
{{- define "localpv.chart" -}}
|
||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
{{/*
|
||||
Meta labels
|
||||
*/}}
|
||||
{{- define "localpv.common.metaLabels" -}}
|
||||
chart: {{ template "localpv.chart" . }}
|
||||
heritage: {{ .Release.Service }}
|
||||
openebs.io/version: {{ .Values.release.version | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Selector labels
|
||||
*/}}
|
||||
{{- define "localpv.selectorLabels" -}}
|
||||
app: {{ template "localpv.name" . }}
|
||||
release: {{ .Release.Name }}
|
||||
component: {{ .Values.localpv.name | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Component labels
|
||||
*/}}
|
||||
{{- define "localpv.componentLabels" -}}
|
||||
openebs.io/component-name: openebs-{{ .Values.localpv.name }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Common labels
|
||||
*/}}
|
||||
{{- define "localpv.labels" -}}
|
||||
{{ include "localpv.common.metaLabels" . }}
|
||||
{{ include "localpv.selectorLabels" . }}
|
||||
{{ include "localpv.componentLabels" . }}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
{{/*
|
||||
Create the name of the service account to use
|
||||
*/}}
|
||||
{{- define "localpv.serviceAccountName" -}}
|
||||
{{- if .Values.serviceAccount.create -}}
|
||||
{{ default (include "localpv.fullname" .) .Values.serviceAccount.name }}
|
||||
{{- else -}}
|
||||
{{ default "default" .Values.serviceAccount.name }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
|
@ -0,0 +1,114 @@
|
|||
{{- if .Values.localpv.enabled }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ template "localpv.fullname" . }}
|
||||
{{- with .Values.localpv.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "localpv.labels" . | nindent 4 }}
|
||||
spec:
|
||||
replicas: {{ .Values.localpv.replicas }}
|
||||
strategy:
|
||||
type: "Recreate"
|
||||
rollingUpdate: null
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "localpv.selectorLabels" . | nindent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
{{- with .Values.localpv.podAnnotations }}
|
||||
annotations: {{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "localpv.labels" . | nindent 8 }}
|
||||
{{- with .Values.localpv.podLabels }}
|
||||
{{ toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
serviceAccountName: {{ template "localpv.serviceAccountName" . }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||
containers:
|
||||
- name: {{ template "localpv.fullname" . }}
|
||||
image: "{{ .Values.localpv.image.registry }}{{ .Values.localpv.image.repository }}:{{ .Values.localpv.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.localpv.image.pullPolicy }}
|
||||
resources:
|
||||
{{ toYaml .Values.localpv.resources | indent 10 }}
|
||||
env:
|
||||
# OPENEBS_IO_K8S_MASTER enables openebs provisioner to connect to K8s
|
||||
# based on this address. This is ignored if empty.
|
||||
# This is supported for openebs provisioner version 0.5.2 onwards
|
||||
#- name: OPENEBS_IO_K8S_MASTER
|
||||
# value: "http://10.128.0.12:8080"
|
||||
# OPENEBS_IO_KUBE_CONFIG enables openebs provisioner to connect to K8s
|
||||
# based on this config. This is ignored if empty.
|
||||
# This is supported for openebs provisioner version 0.5.2 onwards
|
||||
#- name: OPENEBS_IO_KUBE_CONFIG
|
||||
# value: "/home/ubuntu/.kube/config"
|
||||
# OPENEBS_NAMESPACE is the namespace that this provisioner will
|
||||
# lookup to find maya api service
|
||||
- name: OPENEBS_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: NODE_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
# OPENEBS_SERVICE_ACCOUNT provides the service account of this pod as
|
||||
# environment variable
|
||||
- name: OPENEBS_SERVICE_ACCOUNT
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.serviceAccountName
|
||||
# OPENEBS_IO_BASE_PATH is the environment variable that provides the
|
||||
# default base path on the node where host-path PVs will be provisioned.
|
||||
- name: OPENEBS_IO_ENABLE_ANALYTICS
|
||||
value: "{{ .Values.analytics.enabled }}"
|
||||
- name: OPENEBS_IO_BASE_PATH
|
||||
value: "{{ .Values.localpv.basePath }}"
|
||||
- name: OPENEBS_IO_HELPER_IMAGE
|
||||
value: "{{ .Values.helperPod.image.registry }}{{ .Values.helperPod.image.repository }}:{{ .Values.helperPod.image.tag }}"
|
||||
- name: OPENEBS_IO_INSTALLER_TYPE
|
||||
value: "charts-helm"
|
||||
# LEADER_ELECTION_ENABLED is used to enable/disable leader election. By default
|
||||
# leader election is enabled.
|
||||
- name: LEADER_ELECTION_ENABLED
|
||||
value: "{{ .Values.localpv.enableLeaderElection }}"
|
||||
{{- if .Values.imagePullSecrets }}
|
||||
- name: OPENEBS_IO_IMAGE_PULL_SECRETS
|
||||
value: "{{- range $index, $secret := .Values.imagePullSecrets}}{{if $index}},{{end}}{{ $secret.name }}{{- end}}"
|
||||
{{- end }}
|
||||
# Process name used for matching is limited to the 15 characters
|
||||
# present in the pgrep output.
|
||||
# So fullname can't be used here with pgrep (>15 chars).A regular expression
|
||||
# that matches the entire command name has to specified.
|
||||
# Anchor `^` : matches any string that starts with `provisioner-loc`
|
||||
# `.*`: matches any string that has `provisioner-loc` followed by zero or more char
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- test `pgrep -c "^provisioner-loc.*"` = 1
|
||||
initialDelaySeconds: {{ .Values.localpv.healthCheck.initialDelaySeconds }}
|
||||
periodSeconds: {{ .Values.localpv.healthCheck.periodSeconds }}
|
||||
{{- if .Values.localpv.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.localpv.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.localpv.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml .Values.localpv.tolerations | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.localpv.affinity }}
|
||||
affinity:
|
||||
{{ toYaml .Values.localpv.affinity | indent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
|
@ -0,0 +1,25 @@
|
|||
{{- if .Values.deviceClass.enabled }}
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: {{ .Values.deviceClass.name }}
|
||||
annotations:
|
||||
openebs.io/cas-type: local
|
||||
cas.openebs.io/config: |
|
||||
- name: StorageType
|
||||
value: "device"
|
||||
{{- if .Values.deviceClass.fsType }}
|
||||
- name: FSType
|
||||
value: {{ .Values.deviceClass.fsType }}
|
||||
{{- end }}
|
||||
{{- if .Values.deviceClass.blockDeviceTag }}
|
||||
- name: BlockDeviceTag
|
||||
value: {{ .Values.deviceClass.blockDeviceTag }}
|
||||
{{- end }}
|
||||
{{- if .Values.deviceClass.isDefaultClass }}
|
||||
storageclass.kubernetes.io/is-default-class: "true"
|
||||
{{- end }}
|
||||
provisioner: openebs.io/local
|
||||
volumeBindingMode: WaitForFirstConsumer
|
||||
reclaimPolicy: {{ .Values.deviceClass.reclaimPolicy }}
|
||||
{{- end }}
|
|
@ -0,0 +1,25 @@
|
|||
{{- if .Values.hostpathClass.enabled }}
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: {{ .Values.hostpathClass.name }}
|
||||
annotations:
|
||||
openebs.io/cas-type: local
|
||||
cas.openebs.io/config: |
|
||||
- name: StorageType
|
||||
value: "hostpath"
|
||||
{{- if .Values.hostpathClass.basePath }}
|
||||
- name: BasePath
|
||||
value: {{ .Values.hostpathClass.basePath }}
|
||||
{{- end }}
|
||||
{{- if .Values.hostpathClass.nodeAffinityLabel }}
|
||||
- name: NodeAffinityLabel
|
||||
value: {{ .Values.hostpathClass.nodeAffinityLabel }}
|
||||
{{- end }}
|
||||
{{- if .Values.hostpathClass.isDefaultClass }}
|
||||
storageclass.kubernetes.io/is-default-class: "true"
|
||||
{{- end }}
|
||||
provisioner: openebs.io/local
|
||||
volumeBindingMode: WaitForFirstConsumer
|
||||
reclaimPolicy: {{ .Values.hostpathClass.reclaimPolicy }}
|
||||
{{- end }}
|
|
@ -0,0 +1,30 @@
|
|||
{{- if .Values.rbac.pspEnabled }}
|
||||
apiVersion: policy/v1beta1
|
||||
kind: PodSecurityPolicy
|
||||
metadata:
|
||||
name: {{ template "localpv.fullname" . }}-psp
|
||||
{{- with .Values.localpv.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "localpv.labels" . | nindent 4 }}
|
||||
spec:
|
||||
privileged: {{ .Values.localpv.privileged }}
|
||||
allowPrivilegeEscalation: true
|
||||
allowedCapabilities: ['*']
|
||||
volumes: ['*']
|
||||
hostNetwork: true
|
||||
hostPorts:
|
||||
- min: 0
|
||||
max: 65535
|
||||
hostIPC: true
|
||||
hostPID: true
|
||||
runAsUser:
|
||||
rule: 'RunAsAny'
|
||||
seLinux:
|
||||
rule: 'RunAsAny'
|
||||
supplementalGroups:
|
||||
rule: 'RunAsAny'
|
||||
fsGroup:
|
||||
rule: 'RunAsAny'
|
||||
{{- end }}
|
|
@ -0,0 +1,99 @@
|
|||
{{- if .Values.serviceAccount.create -}}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ include "localpv.serviceAccountName" . }}
|
||||
labels:
|
||||
{{- include "localpv.labels" . | nindent 4 }}
|
||||
{{- with .Values.serviceAccount.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.rbac.create }}
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: {{ template "localpv.fullname" . }}
|
||||
{{- with .Values.localpv.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "localpv.labels" . | nindent 4 }}
|
||||
rules:
|
||||
- apiGroups: ["*"]
|
||||
resources: ["nodes"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: ["*"]
|
||||
resources: ["namespaces", "pods", "events", "endpoints"]
|
||||
verbs: ["*"]
|
||||
- apiGroups: ["*"]
|
||||
resources: ["resourcequotas", "limitranges"]
|
||||
verbs: ["list", "watch"]
|
||||
- apiGroups: ["*"]
|
||||
resources: ["storageclasses", "persistentvolumeclaims", "persistentvolumes"]
|
||||
verbs: ["*"]
|
||||
- apiGroups: ["apiextensions.k8s.io"]
|
||||
resources: ["customresourcedefinitions"]
|
||||
verbs: [ "get", "list", "create", "update", "delete", "patch"]
|
||||
- apiGroups: ["openebs.io"]
|
||||
resources: [ "*"]
|
||||
verbs: ["*" ]
|
||||
- nonResourceURLs: ["/metrics"]
|
||||
verbs: ["get"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: {{ template "localpv.fullname" . }}
|
||||
{{- with .Values.localpv.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "localpv.labels" . | nindent 4 }}
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: {{ template "localpv.fullname" . }}
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ template "localpv.serviceAccountName" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- if .Values.rbac.pspEnabled }}
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: {{ template "localpv.fullname" . }}-psp
|
||||
{{- with .Values.localpv.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "localpv.labels" . | nindent 4 }}
|
||||
rules:
|
||||
- apiGroups: ['policy']
|
||||
resources: ['podsecuritypolicies']
|
||||
verbs: ['use']
|
||||
resourceNames:
|
||||
- {{ template "localpv.fullname" . }}-psp
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: {{ template "localpv.fullname" . }}-psp
|
||||
{{- with .Values.localpv.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "localpv.labels" . | nindent 4 }}
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: {{ template "localpv.fullname" . }}-psp
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ template "localpv.serviceAccountName" . }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
{{- end }}
|
||||
{{- end }}
|
|
@ -0,0 +1,121 @@
|
|||
# Default values for localpv.
|
||||
# This is a YAML-formatted file.
|
||||
# Declare variables to be passed into your templates.
|
||||
|
||||
release:
|
||||
version: "2.11.0"
|
||||
|
||||
rbac:
|
||||
# rbac.create: `true` if rbac resources should be created
|
||||
create: true
|
||||
# rbac.pspEnabled: `true` if PodSecurityPolicy resources should be created
|
||||
pspEnabled: false
|
||||
|
||||
# If false, openebs NDM sub-chart will not be installed
|
||||
openebsNDM:
|
||||
enabled: true
|
||||
|
||||
localpv:
|
||||
name: localpv-provisioner
|
||||
enabled: true
|
||||
image:
|
||||
# Make sure that registry name end with a '/'.
|
||||
# For example : quay.io/ is a correct value here and quay.io is incorrect
|
||||
registry:
|
||||
repository: openebs/provisioner-localpv
|
||||
tag: 2.11.0
|
||||
pullPolicy: IfNotPresent
|
||||
updateStrategy:
|
||||
type: RollingUpdate
|
||||
# If set to false, containers created by the localpv provisioner will run without extra privileges.
|
||||
privileged: true
|
||||
annotations: {}
|
||||
podAnnotations: {}
|
||||
## Labels to be added to localpv provisioner deployment pods
|
||||
podLabels:
|
||||
name: openebs-localpv-provisioner
|
||||
healthCheck:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 60
|
||||
replicas: 1
|
||||
enableLeaderElection: true
|
||||
basePath: "/var/openebs/local"
|
||||
resources:
|
||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||
# choice for the user. This also increases chances charts run on environments with little
|
||||
# resources, such as Minikube. If you do want to specify resources, uncomment the following
|
||||
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
|
||||
# limits:
|
||||
# cpu: 100m
|
||||
# memory: 128Mi
|
||||
# requests:
|
||||
# cpu: 100m
|
||||
# memory: 128Mi
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
affinity: {}
|
||||
securityContext: {}
|
||||
|
||||
imagePullSecrets:
|
||||
# - name: img-pull-secret
|
||||
|
||||
podSecurityContext: {}
|
||||
# fsGroup: 2000
|
||||
|
||||
nameOverride: ""
|
||||
fullnameOverride: ""
|
||||
|
||||
serviceAccount:
|
||||
# Specifies whether a service account should be created
|
||||
create: true
|
||||
# Annotations to add to the service account
|
||||
annotations: {}
|
||||
# The name of the service account to use.
|
||||
# If not set and create is true, a name is generated using the fullname template
|
||||
name:
|
||||
|
||||
deviceClass:
|
||||
# Name of default device StorageClass.
|
||||
name: openebs-device
|
||||
# If true, enables creation of the openebs-device StorageClass
|
||||
enabled: true
|
||||
# Available reclaim policies: Delete/Retain, defaults: Delete.
|
||||
reclaimPolicy: Delete
|
||||
# If true, sets the openebs-device StorageClass as the default StorageClass
|
||||
isDefaultClass: false
|
||||
fsType: "ext4"
|
||||
# Label block devices in the cluster that you would like the openEBS localPV
|
||||
# Provisioner to pick up those specific block devices available on the node.
|
||||
#
|
||||
# To read more: https://docs.openebs.io/docs/next/uglocalpv-device.html#optional-block-device-tagging
|
||||
blockDeviceTag: ""
|
||||
|
||||
hostpathClass:
|
||||
# Name of the default hostpath StorageClass
|
||||
name: openebs-hostpath
|
||||
# If true, enables creation of the openebs-hostpath StorageClass
|
||||
enabled: true
|
||||
# Available reclaim policies: Delete/Retain, defaults: Delete.
|
||||
reclaimPolicy: Delete
|
||||
# If true, sets the openebs-hostpath StorageClass as the default StorageClass
|
||||
isDefaultClass: false
|
||||
# Path on the host where local volumes of this storage class are mounted under.
|
||||
basePath: "/var/openebs/local"
|
||||
# Custom node affinity label for example "openebs.io/node-affinity-value" that will be
|
||||
# used instead of hostnames
|
||||
# This helps in cases where the hostname changes when the node is removed and
|
||||
# added back with the disks still intact.
|
||||
nodeAffinityLabel: ""
|
||||
|
||||
helperPod:
|
||||
image:
|
||||
registry: ""
|
||||
repository: openebs/linux-utils
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: 2.11.0
|
||||
|
||||
analytics:
|
||||
enabled: true
|
||||
# Specify in hours the duration after which a ping event needs to be sent.
|
||||
pingInterval: "24h"
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,257 @@
|
|||
---
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.4.0
|
||||
creationTimestamp: null
|
||||
name: upgradetasks.openebs.io
|
||||
spec:
|
||||
group: openebs.io
|
||||
names:
|
||||
kind: UpgradeTask
|
||||
listKind: UpgradeTaskList
|
||||
plural: upgradetasks
|
||||
singular: upgradetask
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: UpgradeTask represents an upgrade task
|
||||
properties:
|
||||
apiVersion:
|
||||
description: 'APIVersion defines the versioned schema of this representation
|
||||
of an object. Servers should convert recognized schemas to the latest
|
||||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||
type: string
|
||||
kind:
|
||||
description: 'Kind is a string value representing the REST resource this
|
||||
object represents. Servers may infer this from the endpoint the client
|
||||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: Spec i.e. specifications of the UpgradeTask
|
||||
properties:
|
||||
cstorPool:
|
||||
description: CStorPool contains the details of the cstor pool to be
|
||||
upgraded
|
||||
properties:
|
||||
options:
|
||||
description: Options can be used to change the default behaviour
|
||||
of upgrade
|
||||
properties:
|
||||
ignoreStepsOnError:
|
||||
description: IgnoreStepsOnError allows to ignore steps which
|
||||
failed
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
poolName:
|
||||
description: PoolName contains the name of the cstor pool to be
|
||||
upgraded
|
||||
type: string
|
||||
type: object
|
||||
cstorPoolCluster:
|
||||
description: CStorPoolCluster contains the details of the storage
|
||||
pool claim to be upgraded
|
||||
properties:
|
||||
cspcName:
|
||||
description: CSPCName contains the name of the storage pool claim
|
||||
to be upgraded
|
||||
type: string
|
||||
options:
|
||||
description: Options can be used to change the default behaviour
|
||||
of upgrade
|
||||
properties:
|
||||
ignoreStepsOnError:
|
||||
description: IgnoreStepsOnError allows to ignore steps which
|
||||
failed
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
type: object
|
||||
cstorPoolInstance:
|
||||
description: CStorPoolInstance contains the details of the cstor pool
|
||||
to be upgraded
|
||||
properties:
|
||||
cspiName:
|
||||
description: CSPCName contains the name of the storage pool claim
|
||||
to be upgraded
|
||||
type: string
|
||||
options:
|
||||
description: Options can be used to change the default behaviour
|
||||
of upgrade
|
||||
properties:
|
||||
ignoreStepsOnError:
|
||||
description: IgnoreStepsOnError allows to ignore steps which
|
||||
failed
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
type: object
|
||||
cstorVolume:
|
||||
description: CStorVolume contains the details of the cstor volume
|
||||
to be upgraded
|
||||
properties:
|
||||
options:
|
||||
description: Options can be used to change the default behaviour
|
||||
of upgrade
|
||||
properties:
|
||||
ignoreStepsOnError:
|
||||
description: IgnoreStepsOnError allows to ignore steps which
|
||||
failed
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
pvName:
|
||||
description: PVName contains the name of the pv associated with
|
||||
the cstor volume
|
||||
type: string
|
||||
type: object
|
||||
fromVersion:
|
||||
description: FromVersion is the current version of the resource.
|
||||
type: string
|
||||
imagePrefix:
|
||||
description: ImagePrefix contains the url prefix of the image url.
|
||||
This field is optional. If not present upgrade takes the previously
|
||||
present ImagePrefix.
|
||||
type: string
|
||||
imageTag:
|
||||
description: ImageTag contains the customized tag for ToVersion if
|
||||
any. This field is optional. If not present upgrade takes the ToVersion
|
||||
as the ImageTag
|
||||
type: string
|
||||
jivaVolume:
|
||||
description: JivaVolume contains the details of the jiva volume to
|
||||
be upgraded
|
||||
properties:
|
||||
options:
|
||||
description: Options can be used to change the default behaviour
|
||||
of upgrade
|
||||
properties:
|
||||
ignoreStepsOnError:
|
||||
description: IgnoreStepsOnError allows to ignore steps which
|
||||
failed
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
pvName:
|
||||
description: PVName contains the name of the pv associated with
|
||||
the jiva volume
|
||||
type: string
|
||||
type: object
|
||||
options:
|
||||
description: Options contains the optional flags that can be passed
|
||||
during upgrade.
|
||||
properties:
|
||||
timeout:
|
||||
description: Timeout is maximum seconds to wait at any given step
|
||||
in the upgrade
|
||||
type: integer
|
||||
type: object
|
||||
storagePoolClaim:
|
||||
description: StoragePoolClaim contains the details of the storage
|
||||
pool claim to be upgraded
|
||||
properties:
|
||||
options:
|
||||
description: Options can be used to change the default behaviour
|
||||
of upgrade
|
||||
properties:
|
||||
ignoreStepsOnError:
|
||||
description: IgnoreStepsOnError allows to ignore steps which
|
||||
failed
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
spcName:
|
||||
description: SPCName contains the name of the storage pool claim
|
||||
to be upgraded
|
||||
type: string
|
||||
type: object
|
||||
toVersion:
|
||||
description: ToVersion is the upgraded version of the resource. It
|
||||
should be same as the version of control plane components version.
|
||||
type: string
|
||||
required:
|
||||
- fromVersion
|
||||
- toVersion
|
||||
type: object
|
||||
status:
|
||||
description: Status of UpgradeTask
|
||||
properties:
|
||||
completedTime:
|
||||
description: CompletedTime of Upgrade
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
phase:
|
||||
description: Phase indicates if a upgradeTask is started, success
|
||||
or errored
|
||||
type: string
|
||||
retries:
|
||||
description: Retries is the number of times the job attempted to upgrade
|
||||
the resource
|
||||
type: integer
|
||||
startTime:
|
||||
description: StartTime of Upgrade
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
upgradeDetailedStatuses:
|
||||
description: UpgradeDetailedStatuses contains the list of statuses
|
||||
of each step
|
||||
items:
|
||||
description: UpgradeDetailedStatuses represents the latest available
|
||||
observations of a UpgradeTask current state.
|
||||
properties:
|
||||
lastUpdatedAt:
|
||||
description: LastUpdatedTime of a UpgradeStep
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
message:
|
||||
description: A human-readable message indicating details about
|
||||
why the upgradeStep is in this state
|
||||
type: string
|
||||
phase:
|
||||
description: Phase indicates if the UpgradeStep is waiting,
|
||||
errored or completed.
|
||||
type: string
|
||||
reason:
|
||||
description: Reason is a brief CamelCase string that describes
|
||||
any failure and is meant for machine parsing and tidy display
|
||||
in the CLI
|
||||
type: string
|
||||
startTime:
|
||||
description: StartTime of a UpgradeStep
|
||||
format: date-time
|
||||
nullable: true
|
||||
type: string
|
||||
step:
|
||||
description: UpgradeStep is the current step being performed
|
||||
for a particular resource upgrade
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
status:
|
||||
acceptedNames:
|
||||
kind: ""
|
||||
plural: ""
|
||||
conditions: []
|
||||
storedVersions: []
|
||||
---
|
|
@ -0,0 +1,8 @@
|
|||
The OpenEBS jiva has been installed check its status by running:
|
||||
$ kubectl get pods -n {{ .Release.Namespace }}
|
||||
|
||||
For more information, visit our Slack at https://openebs.io/community or view
|
||||
the documentation online at http://docs.openebs.io/.
|
||||
|
||||
For more information related to jiva volume provisioning, visit
|
||||
https://github.com/openebs/jiva-operator/tree/master/docs .
|
|
@ -0,0 +1,150 @@
|
|||
{{/* vim: set filetype=mustache: */}}
|
||||
{{/*
|
||||
Expand the name of the chart.
|
||||
*/}}
|
||||
{{- define "jiva.name" -}}
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create a default fully qualified app name.
|
||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||
If release name contains chart name it will be used as a full name.
|
||||
*/}}
|
||||
{{- define "jiva.fullname" -}}
|
||||
{{- if .Values.fullnameOverride }}
|
||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||
{{- if contains $name .Release.Name }}
|
||||
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create chart name and version as used by the chart label.
|
||||
*/}}
|
||||
{{- define "jiva.chart" -}}
|
||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create the name of the service account to use
|
||||
*/}}
|
||||
{{- define "jiva.serviceAccountName" -}}
|
||||
{{- if .Values.serviceAccount.create }}
|
||||
{{- default (include "jiva.fullname" .) .Values.serviceAccount.name }}
|
||||
{{- else }}
|
||||
{{- default "default" .Values.serviceAccount.name }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Define meta labels for jiva components
|
||||
*/}}
|
||||
{{- define "jiva.common.metaLabels" -}}
|
||||
chart: {{ template "jiva.chart" . }}
|
||||
heritage: {{ .Release.Service }}
|
||||
openebs.io/version: {{ .Values.release.version | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create match labels for jiva operator
|
||||
*/}}
|
||||
{{- define "jiva.operator.matchLabels" -}}
|
||||
name: {{ .Values.jivaOperator.componentName | quote }}
|
||||
release: {{ .Release.Name }}
|
||||
component: {{ .Values.jivaOperator.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create component labels jiva operator
|
||||
*/}}
|
||||
{{- define "jiva.operator.componentLabels" -}}
|
||||
openebs.io/component-name: {{ .Values.jivaOperator.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
{{/*
|
||||
Create labels for jiva operator
|
||||
*/}}
|
||||
{{- define "jiva.operator.labels" -}}
|
||||
{{ include "jiva.common.metaLabels" . }}
|
||||
{{ include "jiva.operator.matchLabels" . }}
|
||||
{{ include "jiva.operator.componentLabels" . }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create match labels for jiva csi node operator
|
||||
*/}}
|
||||
{{- define "jiva.csiNode.matchLabels" -}}
|
||||
name: {{ .Values.csiNode.componentName | quote }}
|
||||
release: {{ .Release.Name }}
|
||||
component: {{ .Values.csiNode.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create component labels jiva csi node operator
|
||||
*/}}
|
||||
{{- define "jiva.csiNode.componentLabels" -}}
|
||||
openebs.io/component-name: {{ .Values.csiNode.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create labels for jiva csi node operator
|
||||
*/}}
|
||||
{{- define "jiva.csiNode.labels" -}}
|
||||
{{ include "jiva.common.metaLabels" . }}
|
||||
{{ include "jiva.csiNode.matchLabels" . }}
|
||||
{{ include "jiva.csiNode.componentLabels" . }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create match labels for jiva csi controller
|
||||
*/}}
|
||||
{{- define "jiva.csiController.matchLabels" -}}
|
||||
name: {{ .Values.csiController.componentName | quote }}
|
||||
release: {{ .Release.Name }}
|
||||
component: {{ .Values.csiController.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create component labels jiva csi controller
|
||||
*/}}
|
||||
{{- define "jiva.csiController.componentLabels" -}}
|
||||
openebs.io/component-name: {{ .Values.csiController.componentName | quote }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create labels for jiva csi controller
|
||||
*/}}
|
||||
{{- define "jiva.csiController.labels" -}}
|
||||
{{ include "jiva.common.metaLabels" . }}
|
||||
{{ include "jiva.csiController.matchLabels" . }}
|
||||
{{ include "jiva.csiController.componentLabels" . }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create the name of the priority class for csi node plugin
|
||||
*/}}
|
||||
{{- define "jiva.csiNode.priorityClassName" -}}
|
||||
{{- if .Values.csiNode.priorityClass.create }}
|
||||
{{- printf "%s-%s" .Release.Name .Values.csiNode.priorityClass.name | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- printf "%s" .Values.csiNode.priorityClass.name | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create the name of the priority class for csi controller plugin
|
||||
*/}}
|
||||
{{- define "jiva.csiController.priorityClassName" -}}
|
||||
{{- if .Values.csiController.priorityClass.create }}
|
||||
{{- printf "%s-%s" .Release.Name .Values.csiController.priorityClass.name | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- printf "%s" .Values.csiController.priorityClass.name | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
|
@ -0,0 +1,196 @@
|
|||
{{- if .Values.serviceAccount.csiController.create -}}
|
||||
kind: ServiceAccount
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: {{ .Values.serviceAccount.csiController.name }}
|
||||
labels:
|
||||
{{- include "jiva.csiController.labels" . | nindent 4 }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- end }}
|
||||
{{- if .Values.rbac.create }}
|
||||
---
|
||||
# jiva csi roles and bindings
|
||||
kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-jiva-csi-snapshotter-binding
|
||||
labels:
|
||||
{{- include "jiva.csiController.labels" . | nindent 4 }}
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ .Values.serviceAccount.csiController.name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: openebs-jiva-csi-snapshotter-role
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-jiva-csi-snapshotter-role
|
||||
labels:
|
||||
{{- include "jiva.csiController.labels" . | nindent 4 }}
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumes"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumeclaims"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: ["storage.k8s.io"]
|
||||
resources: ["storageclasses"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["list", "watch", "create", "update", "patch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets"]
|
||||
verbs: ["get", "list"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshotclasses"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshotcontents"]
|
||||
verbs: ["create", "get", "list", "watch", "update", "delete"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshotcontents/status"]
|
||||
verbs: ["update"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshots"]
|
||||
verbs: ["get", "list", "watch", "update"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshots/status"]
|
||||
verbs: ["update"]
|
||||
- apiGroups: ["coordination.k8s.io"]
|
||||
resources: ["leases"]
|
||||
verbs: ["get", "watch", "list", "delete", "update", "create"]
|
||||
- apiGroups: ["apiextensions.k8s.io"]
|
||||
resources: ["customresourcedefinitions"]
|
||||
verbs: ["create", "list", "watch", "delete", "get", "update"]
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-jiva-csi-provisioner-role
|
||||
labels:
|
||||
{{- include "jiva.csiController.labels" . | nindent 4 }}
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets","namespaces"]
|
||||
verbs: ["get", "list"]
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ "pods" ]
|
||||
verbs: [ "get", "list", "watch" ]
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumes", "services"]
|
||||
verbs: ["get", "list", "watch", "create", "delete", "update", "patch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumeclaims"]
|
||||
verbs: ["get", "list", "watch", "update"]
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumeclaims/status"]
|
||||
verbs: ["update", "patch"]
|
||||
- apiGroups: ["storage.k8s.io"]
|
||||
resources: ["storageclasses", "csinodes"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["list", "watch", "create", "update", "patch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshots"]
|
||||
verbs: ["get", "list"]
|
||||
- apiGroups: ["storage.k8s.io"]
|
||||
resources: ["volumeattachments"]
|
||||
verbs: ["get", "list", "watch", "create", "delete", "update", "patch"]
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshotcontents"]
|
||||
verbs: ["get", "list"]
|
||||
- apiGroups: ["coordination.k8s.io"]
|
||||
resources: ["leases"]
|
||||
verbs: ["*"]
|
||||
- apiGroups: ["*"]
|
||||
resources: ["jivavolumeattachments", "jivavolumes","jivavolumeconfigs"]
|
||||
verbs: ["*"]
|
||||
---
|
||||
kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-jiva-csi-provisioner-binding
|
||||
labels:
|
||||
{{- include "jiva.csiController.labels" . | nindent 4 }}
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ .Values.serviceAccount.csiController.name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: openebs-jiva-csi-provisioner-role
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
############################## CSI- Attacher #######################
|
||||
# Attacher must be able to work with PVs, nodes and VolumeAttachments
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-jiva-csi-attacher-role
|
||||
labels:
|
||||
{{- include "jiva.csiController.labels" . | nindent 4 }}
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumes"]
|
||||
verbs: ["get", "list", "watch", "update"]
|
||||
- apiGroups: [""]
|
||||
resources: ["nodes"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: ["csi.storage.k8s.io"]
|
||||
resources: ["csinodeinfos"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
- apiGroups: ["storage.k8s.io"]
|
||||
resources: ["volumeattachments", "csinodes"]
|
||||
verbs: ["get", "list", "watch", "update"]
|
||||
- apiGroups: [ "storage.k8s.io" ]
|
||||
resources: [ "volumeattachments/status" ]
|
||||
verbs: [ "patch" ]
|
||||
---
|
||||
kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-jiva-csi-attacher-binding
|
||||
labels:
|
||||
{{- include "jiva.csiController.labels" . | nindent 4 }}
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ .Values.serviceAccount.csiController.name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: openebs-jiva-csi-attacher-role
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-jiva-csi-cluster-registrar-role
|
||||
labels:
|
||||
{{- include "jiva.csiController.labels" . | nindent 4 }}
|
||||
rules:
|
||||
- apiGroups: ["csi.storage.k8s.io"]
|
||||
resources: ["csidrivers"]
|
||||
verbs: ["create", "delete"]
|
||||
---
|
||||
kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-jiva-csi-cluster-registrar-binding
|
||||
labels:
|
||||
{{- include "jiva.csiController.labels" . | nindent 4 }}
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ .Values.serviceAccount.csiController.name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: openebs-jiva-csi-cluster-registrar-role
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
{{- end }}
|
|
@ -0,0 +1,134 @@
|
|||
kind: StatefulSet
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: {{ template "jiva.fullname" . }}-csi-controller
|
||||
{{- with .Values.csiController.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "jiva.csiController.labels" . | nindent 4 }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "jiva.csiController.matchLabels" . | nindent 6 }}
|
||||
serviceName: "openebs-csi"
|
||||
replicas: {{ .Values.csiController.replicas }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "jiva.csiController.labels" . | nindent 8 }}
|
||||
{{- if .Values.csiController.podLabels }}
|
||||
{{ toYaml .Values.csiController.podLabels | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
priorityClassName: {{ template "jiva.csiController.priorityClassName" . }}
|
||||
serviceAccount: {{ .Values.serviceAccount.csiController.name }}
|
||||
containers:
|
||||
- name: {{ .Values.csiController.resizer.name }}
|
||||
image: "{{ .Values.csiController.resizer.image.registry }}{{ .Values.csiController.resizer.image.repository }}:{{ .Values.csiController.resizer.image.tag }}"
|
||||
resources:
|
||||
{{ toYaml .Values.csiController.resources | indent 12 }}
|
||||
args:
|
||||
- "--v=5"
|
||||
- "--csi-address=$(ADDRESS)"
|
||||
- "--leader-election"
|
||||
env:
|
||||
- name: ADDRESS
|
||||
value: /var/lib/csi/sockets/pluginproxy/csi.sock
|
||||
imagePullPolicy: {{ .Values.csiController.resizer.image.pullPolicy }}
|
||||
volumeMounts:
|
||||
- name: socket-dir
|
||||
mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||
- name: {{ .Values.csiController.provisioner.name }}
|
||||
image: "{{ .Values.csiController.provisioner.image.registry }}{{ .Values.csiController.provisioner.image.repository }}:{{ .Values.csiController.provisioner.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.csiController.provisioner.image.pullPolicy }}
|
||||
args:
|
||||
- "--csi-address=$(ADDRESS)"
|
||||
- "--v=5"
|
||||
- "--feature-gates=Topology=true"
|
||||
- "--extra-create-metadata=true"
|
||||
- "--metrics-address=:22011"
|
||||
- "--timeout=250s"
|
||||
- "--default-fstype=ext4"
|
||||
env:
|
||||
- name: MY_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.name
|
||||
- name: ADDRESS
|
||||
value: /var/lib/csi/sockets/pluginproxy/csi.sock
|
||||
volumeMounts:
|
||||
- name: socket-dir
|
||||
mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||
- name: {{ .Values.csiController.attacher.name }}
|
||||
image: "{{ .Values.csiController.attacher.image.registry }}{{ .Values.csiController.attacher.image.repository }}:{{ .Values.csiController.attacher.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.csiController.attacher.image.pullPolicy }}
|
||||
args:
|
||||
- "--v=5"
|
||||
- "--csi-address=$(ADDRESS)"
|
||||
env:
|
||||
- name: ADDRESS
|
||||
value: /var/lib/csi/sockets/pluginproxy/csi.sock
|
||||
volumeMounts:
|
||||
- name: socket-dir
|
||||
mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||
- name: {{ .Values.jivaCSIPlugin.name }}
|
||||
image: "{{ .Values.jivaCSIPlugin.image.registry }}{{ .Values.jivaCSIPlugin.image.repository }}:{{ .Values.jivaCSIPlugin.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.jivaCSIPlugin.image.pullPolicy }}
|
||||
env:
|
||||
- name: OPENEBS_JIVA_CSI_CONTROLLER
|
||||
value: controller
|
||||
- name: OPENEBS_JIVA_CSI_ENDPOINT
|
||||
value: unix:///var/lib/csi/sockets/pluginproxy/csi.sock
|
||||
- name: OPENEBS_CSI_API_URL
|
||||
value: https://openebs.io
|
||||
- name: OPENEBS_NODEID
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
apiVersion: v1
|
||||
fieldPath: spec.nodeName
|
||||
# OpenEBS namespace where the openebs jiva operator components
|
||||
# has been installed
|
||||
- name: OPENEBS_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: OPENEBS_IO_INSTALLER_TYPE
|
||||
value: "jiva-helm"
|
||||
- name: OPENEBS_IO_ENABLE_ANALYTICS
|
||||
value: "{{ .Values.analytics.enabled }}"
|
||||
args :
|
||||
- "--endpoint=$(OPENEBS_JIVA_CSI_ENDPOINT)"
|
||||
- "--plugin=$(OPENEBS_JIVA_CSI_CONTROLLER)"
|
||||
- "--name=jiva.csi.openebs.io"
|
||||
- "--nodeid=$(OPENEBS_NODEID)"
|
||||
volumeMounts:
|
||||
- name: socket-dir
|
||||
mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||
- name: {{ .Values.csiController.livenessprobe.name }}
|
||||
image: "{{ .Values.csiController.livenessprobe.image.registry }}{{ .Values.csiController.livenessprobe.image.repository }}:{{ .Values.csiController.livenessprobe.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.csiController.livenessprobe.image.pullPolicy }}
|
||||
args:
|
||||
- "--csi-address=/csi/csi.sock"
|
||||
volumeMounts:
|
||||
- mountPath: /csi
|
||||
name: socket-dir
|
||||
volumes:
|
||||
- name: socket-dir
|
||||
emptyDir: {}
|
||||
{{- if .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{ toYaml .Values.imagePullSecrets | indent 2 }}
|
||||
{{- end }}
|
||||
{{- if .Values.csiController.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.csiController.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.csiController.securityContext }}
|
||||
securityContext:
|
||||
{{ toYaml .Values.csiController.securityContext | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.csiController.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml .Values.csiController.tolerations | indent 8 }}
|
||||
{{- end }}
|
|
@ -0,0 +1,9 @@
|
|||
{{- if .Values.csiDriver.create -}}
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: CSIDriver
|
||||
metadata:
|
||||
name: jiva.csi.openebs.io
|
||||
spec:
|
||||
podInfoOnMount: {{ .Values.csiDriver.podInfoOnMount }}
|
||||
attachRequired: {{ .Values.csiDriver.attachRequired }}
|
||||
{{- end }}
|
|
@ -0,0 +1,18 @@
|
|||
kind: ConfigMap
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: openebs-jiva-csi-iscsiadm
|
||||
data:
|
||||
iscsiadm: |
|
||||
#!/bin/sh
|
||||
if [ -x /host/sbin/iscsiadm ]; then
|
||||
chroot /host /sbin/iscsiadm "$@"
|
||||
elif [ -x /host/usr/local/sbin/iscsiadm ]; then
|
||||
chroot /host /usr/local/sbin/iscsiadm "$@"
|
||||
elif [ -x /host/bin/iscsiadm ]; then
|
||||
chroot /host /bin/iscsiadm "$@"
|
||||
elif [ -x /host/usr/local/bin/iscsiadm ]; then
|
||||
chroot /host /usr/local/bin/iscsiadm "$@"
|
||||
else
|
||||
chroot /host iscsiadm "$@"
|
||||
fi
|
|
@ -0,0 +1,43 @@
|
|||
{{- if .Values.serviceAccount.csiNode.create -}}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ .Values.serviceAccount.csiNode.name }}
|
||||
labels:
|
||||
{{- include "jiva.csiNode.labels" . | nindent 4 }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- end }}
|
||||
{{- if .Values.rbac.create }}
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-jiva-csi-registrar-role
|
||||
labels:
|
||||
{{- include "jiva.csiNode.labels" . | nindent 4 }}
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["events"]
|
||||
verbs: ["get", "list", "watch", "create", "update", "patch"]
|
||||
- apiGroups: [""]
|
||||
resources: ["persistentvolumes", "nodes", "services"]
|
||||
verbs: ["get", "list", "patch"]
|
||||
- apiGroups: ["*"]
|
||||
resources: ["jivavolumes"]
|
||||
verbs: ["get", "list", "watch", "create", "update", "delete", "patch"]
|
||||
---
|
||||
kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-jiva-csi-registrar-binding
|
||||
labels:
|
||||
{{- include "jiva.csiNode.labels" . | nindent 4 }}
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ .Values.serviceAccount.csiNode.name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: openebs-jiva-csi-registrar-role
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
{{- end }}
|
|
@ -0,0 +1,165 @@
|
|||
kind: DaemonSet
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: {{ template "jiva.fullname" . }}-csi-node
|
||||
{{- with .Values.csiNode.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "jiva.csiNode.labels" . | nindent 4 }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "jiva.csiNode.matchLabels" . | nindent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "jiva.csiNode.labels" . | nindent 8 }}
|
||||
{{- if .Values.csiNode.podLabels }}
|
||||
{{ toYaml .Values.csiNode.podLabels | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
priorityClassName: {{ template "jiva.csiNode.priorityClassName" . }}
|
||||
serviceAccount: {{ .Values.serviceAccount.csiNode.name }}
|
||||
hostNetwork: true
|
||||
containers:
|
||||
- name: {{ .Values.csiNode.driverRegistrar.name }}
|
||||
image: "{{ .Values.csiNode.driverRegistrar.image.registry }}{{ .Values.csiNode.driverRegistrar.image.repository }}:{{ .Values.csiNode.driverRegistrar.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.csiNode.driverRegistrar.image.pullPolicy }}
|
||||
resources:
|
||||
{{ toYaml .Values.csiNode.resources | indent 12 }}
|
||||
args:
|
||||
- "--v=5"
|
||||
- "--csi-address=$(ADDRESS)"
|
||||
- "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
|
||||
lifecycle:
|
||||
preStop:
|
||||
exec:
|
||||
command: ["/bin/sh", "-c", "rm -rf /registration/jiva.csi.openebs.io /registration/jiva.csi.openebs.io-reg.sock"]
|
||||
env:
|
||||
- name: ADDRESS
|
||||
value: /plugin/csi.sock
|
||||
- name: DRIVER_REG_SOCK_PATH
|
||||
value: {{ .Values.csiNode.kubeletDir }}plugins/jiva.csi.openebs.io/csi.sock
|
||||
- name: KUBE_NODE_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
- name: NODE_DRIVER
|
||||
value: openebs-jiva-csi
|
||||
volumeMounts:
|
||||
- name: plugin-dir
|
||||
mountPath: /plugin
|
||||
- name: registration-dir
|
||||
mountPath: /registration
|
||||
- name: {{ .Values.jivaCSIPlugin.name }}
|
||||
securityContext:
|
||||
privileged: true
|
||||
allowPrivilegeEscalation: true
|
||||
image: "{{ .Values.jivaCSIPlugin.image.registry }}{{ .Values.jivaCSIPlugin.image.repository }}:{{ .Values.jivaCSIPlugin.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.jivaCSIPlugin.image.pullPolicy }}
|
||||
args:
|
||||
- "--name=jiva.csi.openebs.io"
|
||||
- "--nodeid=$(OPENEBS_NODE_ID)"
|
||||
- "--endpoint=$(OPENEBS_CSI_ENDPOINT)"
|
||||
- "--plugin=$(OPENEBS_NODE_DRIVER)"
|
||||
# enableiscsidebug is used to enable debug logs for iscsi operations
|
||||
- "--enableiscsidebug=true"
|
||||
# logging level for klog library used in k8s packages
|
||||
#- "--v=5"
|
||||
# retrycount is the max number of retries per nodeStaging rpc
|
||||
# request on a timeout of 5 sec
|
||||
# This count has been set to 20 for sanity test cases as it takes
|
||||
# time in minikube
|
||||
- "--retrycount=20"
|
||||
# metricsBindAddress is the TCP address that the controller should bind to
|
||||
# for serving prometheus metrics. By default the address is set to localhost:9505.
|
||||
# The address can be configured to any desired address.
|
||||
# Remove the flag to disable prometheus metrics.
|
||||
- "--metricsBindAddress=:9505"
|
||||
env:
|
||||
- name: OPENEBS_NODE_ID
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
- name: OPENEBS_CSI_ENDPOINT
|
||||
value: unix:///plugin/csi.sock
|
||||
- name: OPENEBS_NODE_DRIVER
|
||||
value: node
|
||||
- name: OPENEBS_CSI_API_URL
|
||||
value: https://openebs.io
|
||||
# OpenEBS namespace where the openebs jiva operator components
|
||||
# has been installed
|
||||
- name: OPENEBS_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
# Enable/Disable auto-remount feature, when volumes
|
||||
# recovers form the read-only state
|
||||
- name: REMOUNT
|
||||
value: "{{ .Values.jivaCSIPlugin.remount }}"
|
||||
volumeMounts:
|
||||
- name: plugin-dir
|
||||
mountPath: /plugin
|
||||
- name: device-dir
|
||||
mountPath: /dev
|
||||
- name: pods-mount-dir
|
||||
mountPath: {{ .Values.csiNode.kubeletDir }}
|
||||
# needed so that any mounts setup inside this container are
|
||||
# propagated back to the host machine.
|
||||
mountPropagation: "Bidirectional"
|
||||
- name: host-root
|
||||
mountPath: /host
|
||||
mountPropagation: "HostToContainer"
|
||||
- name: chroot-iscsiadm
|
||||
mountPath: /sbin/iscsiadm
|
||||
subPath: iscsiadm
|
||||
- name: {{ .Values.csiNode.livenessprobe.name }}
|
||||
image: "{{ .Values.csiNode.livenessprobe.image.registry }}{{ .Values.csiNode.livenessprobe.image.repository }}:{{ .Values.csiNode.livenessprobe.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.csiNode.livenessprobe.image.pullPolicy }}
|
||||
args:
|
||||
- "--csi-address=/plugin/csi.sock"
|
||||
volumeMounts:
|
||||
- mountPath: /plugin
|
||||
name: plugin-dir
|
||||
volumes:
|
||||
- name: device-dir
|
||||
hostPath:
|
||||
path: /dev
|
||||
type: Directory
|
||||
- name: registration-dir
|
||||
hostPath:
|
||||
path: {{ .Values.csiNode.kubeletDir }}plugins_registry/
|
||||
type: DirectoryOrCreate
|
||||
- name: plugin-dir
|
||||
hostPath:
|
||||
path: {{ .Values.csiNode.kubeletDir }}plugins/jiva.csi.openebs.io/
|
||||
type: DirectoryOrCreate
|
||||
- name: pods-mount-dir
|
||||
hostPath:
|
||||
path: {{ .Values.csiNode.kubeletDir }}
|
||||
type: Directory
|
||||
- name: chroot-iscsiadm
|
||||
configMap:
|
||||
defaultMode: 0555
|
||||
name: openebs-jiva-csi-iscsiadm
|
||||
- name: host-root
|
||||
hostPath:
|
||||
path: /
|
||||
type: Directory
|
||||
{{- if .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{ toYaml .Values.imagePullSecrets | indent 2 }}
|
||||
{{- end }}
|
||||
{{- if .Values.csiNode.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.csiNode.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.csiNode.securityContext }}
|
||||
securityContext:
|
||||
{{ toYaml .Values.csiNode.securityContext | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.csiNode.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml .Values.csiNode.tolerations | indent 8 }}
|
||||
{{- end }}
|
|
@ -0,0 +1,12 @@
|
|||
{{- if .Values.defaultPolicy.enabled }}
|
||||
apiVersion: openebs.io/v1alpha1
|
||||
kind: JivaVolumePolicy
|
||||
metadata:
|
||||
name: {{ .Values.defaultPolicy.name }}
|
||||
spec:
|
||||
replicaSC: {{ .Values.defaultPolicy.replicaSC }}
|
||||
enableBufio: false
|
||||
autoScaling: false
|
||||
target:
|
||||
replicationFactor: {{ .Values.defaultPolicy.replicas }}
|
||||
{{- end }}
|
|
@ -0,0 +1,16 @@
|
|||
{{- if .Values.defaultClass.enabled }}
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: {{ .Values.defaultClass.name }}
|
||||
annotations:
|
||||
{{- if .Values.defaultClass.isDefaultClass }}
|
||||
storageclass.kubernetes.io/is-default-class: "true"
|
||||
{{- end }}
|
||||
provisioner: jiva.csi.openebs.io
|
||||
volumeBindingMode: Immediate
|
||||
reclaimPolicy: {{ .Values.defaultClass.reclaimPolicy }}
|
||||
parameters:
|
||||
cas-type: "jiva"
|
||||
policy: {{ .Values.defaultPolicy.name }}
|
||||
{{- end }}
|
|
@ -0,0 +1,103 @@
|
|||
{{- if .Values.serviceAccount.jivaOperator.create -}}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ .Values.serviceAccount.jivaOperator.name }}
|
||||
labels:
|
||||
{{- include "jiva.common.metaLabels" . | nindent 4 }}
|
||||
{{- with .Values.serviceAccount.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.rbac.create }}
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: jiva-operator
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- pods
|
||||
- services
|
||||
- services/finalizers
|
||||
- endpoints
|
||||
- persistentvolumes
|
||||
- persistentvolumeclaims
|
||||
- events
|
||||
- configmaps
|
||||
- secrets
|
||||
verbs:
|
||||
- '*'
|
||||
- apiGroups:
|
||||
- apps
|
||||
resources:
|
||||
- deployments
|
||||
- daemonsets
|
||||
- replicasets
|
||||
- statefulsets
|
||||
verbs:
|
||||
- '*'
|
||||
- apiGroups:
|
||||
- monitoring.coreos.com
|
||||
resources:
|
||||
- servicemonitors
|
||||
verbs:
|
||||
- get
|
||||
- create
|
||||
- apiGroups:
|
||||
- apps
|
||||
resourceNames:
|
||||
- jiva-operator
|
||||
resources:
|
||||
- deployments/finalizers
|
||||
verbs:
|
||||
- update
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- nodes
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
- apiGroups:
|
||||
- apps
|
||||
resources:
|
||||
- replicasets
|
||||
verbs:
|
||||
- get
|
||||
- apiGroups:
|
||||
- policy
|
||||
resources:
|
||||
- poddisruptionbudgets
|
||||
verbs:
|
||||
- '*'
|
||||
- apiGroups:
|
||||
- openebs.io
|
||||
resources:
|
||||
- '*'
|
||||
verbs:
|
||||
- '*'
|
||||
---
|
||||
kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: openebs-jiva-operator
|
||||
{{- with .Values.serviceAccount.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "jiva.common.metaLabels" . | nindent 4 }}
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ .Values.serviceAccount.jivaOperator.name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: jiva-operator
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
{{- end }}
|
||||
|
|
@ -0,0 +1,76 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ template "jiva.fullname" . }}-operator
|
||||
{{- with .Values.jivaOperator.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "jiva.operator.labels" . | nindent 4 }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "jiva.operator.matchLabels" . | nindent 6 }}
|
||||
replicas: {{ .Values.jivaOperator.replicas }}
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "jiva.operator.labels" . | nindent 8 }}
|
||||
{{- if .Values.jivaOperator.podLabels }}
|
||||
{{ toYaml .Values.jivaOperator.podLabels | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
serviceAccountName: {{ .Values.serviceAccount.jivaOperator.name }}
|
||||
containers:
|
||||
- name: {{ template "jiva.fullname" . }}-operator
|
||||
imagePullPolicy: {{ .Values.jivaOperator.image.pullPolicy }}
|
||||
image: "{{ .Values.jivaOperator.image.registry }}{{ .Values.jivaOperator.image.repository }}:{{ .Values.jivaOperator.image.tag }}"
|
||||
command:
|
||||
- jiva-operator
|
||||
resources:
|
||||
{{ toYaml .Values.jivaOperator.resources | indent 12 }}
|
||||
env:
|
||||
- name: OPENEBS_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: POD_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.name
|
||||
- name: OPENEBS_SERVICEACCOUNT_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.serviceAccountName
|
||||
- name: OPERATOR_NAME
|
||||
value: "jiva-operator"
|
||||
- name: OPENEBS_SERVICEACCOUNT_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.serviceAccountName
|
||||
- name: OPENEBS_IO_JIVA_CONTOLLER_IMAGE
|
||||
value: "{{ .Values.jivaOperator.controller.image.registry }}{{ .Values.jivaOperator.controller.image.repository }}:{{ .Values.jivaOperator.controller.image.tag }}"
|
||||
- name: OPENEBS_IO_JIVA_REPLICA_IMAGE
|
||||
value: "{{ .Values.jivaOperator.replica.image.registry }}{{ .Values.jivaOperator.replica.image.repository }}:{{ .Values.jivaOperator.replica.image.tag }}"
|
||||
{{- if .Values.imagePullSecrets }}
|
||||
- name: OPENEBS_IO_IMAGE_PULL_SECRETS
|
||||
value: "{{- range $.Values.imagePullSecrets }}{{ .name }},{{- end }}"
|
||||
{{- end }}
|
||||
{{- if .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{ toYaml .Values.imagePullSecrets | indent 2 }}
|
||||
{{- end }}
|
||||
{{- if .Values.jivaOperator.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.jivaOperator.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.jivaOperator.securityContext }}
|
||||
securityContext:
|
||||
{{ toYaml .Values.jivaOperator.securityContext | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.jivaOperator.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml .Values.jivaOperator.tolerations | indent 8 }}
|
||||
{{- end }}
|
|
@ -0,0 +1,19 @@
|
|||
{{- if .Values.csiController.priorityClass.create }}
|
||||
apiVersion: scheduling.k8s.io/v1
|
||||
kind: PriorityClass
|
||||
metadata:
|
||||
name: {{ template "jiva.csiController.priorityClassName" . }}
|
||||
value: 900000000
|
||||
globalDefault: false
|
||||
description: "This priority class should be used for the OpenEBS CSI driver controller deployment only."
|
||||
{{- end }}
|
||||
---
|
||||
{{- if .Values.csiNode.priorityClass.create }}
|
||||
apiVersion: scheduling.k8s.io/v1
|
||||
kind: PriorityClass
|
||||
metadata:
|
||||
name: {{ template "jiva.csiNode.priorityClassName" . }}
|
||||
value: 900001000
|
||||
globalDefault: false
|
||||
description: "This priority class should be used for the OpenEBS CSI driver node deployment only."
|
||||
{{- end }}
|
|
@ -0,0 +1,27 @@
|
|||
{{- if .Values.rbac.pspEnabled }}
|
||||
apiVersion: policy/v1beta1
|
||||
kind: PodSecurityPolicy
|
||||
metadata:
|
||||
name: {{ template "jiva.fullname" . }}-psp
|
||||
{{- with .Values.csiNode.annotations }}
|
||||
annotations: {{ toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "jiva.csiNode.labels" . | nindent 4 }}
|
||||
spec:
|
||||
privileged: true
|
||||
allowPrivilegeEscalation: true
|
||||
allowedCapabilities: ['*']
|
||||
volumes: ['*']
|
||||
hostNetwork: true
|
||||
hostIPC: true
|
||||
hostPID: true
|
||||
runAsUser:
|
||||
rule: 'RunAsAny'
|
||||
seLinux:
|
||||
rule: 'RunAsAny'
|
||||
supplementalGroups:
|
||||
rule: 'RunAsAny'
|
||||
fsGroup:
|
||||
rule: 'RunAsAny'
|
||||
{{- end }}
|
|
@ -0,0 +1,213 @@
|
|||
# Default values for jiva-operator.
|
||||
# This is a YAML-formatted file.
|
||||
# Declare variables to be passed into your templates.
|
||||
|
||||
release:
|
||||
version: "2.11.0"
|
||||
|
||||
|
||||
# If false, openebs localpv sub-chart will not be installed
|
||||
openebsLocalpv:
|
||||
enabled: true
|
||||
|
||||
rbac:
|
||||
# rbac.create: `true` if rbac resources should be created
|
||||
create: true
|
||||
# rbac.pspEnabled: `true` if PodSecurityPolicy resources should be created
|
||||
pspEnabled: false
|
||||
|
||||
imagePullSecrets:
|
||||
# - name: "image-pull-secret"
|
||||
|
||||
jivaOperator:
|
||||
componentName: "jiva-operator"
|
||||
controller:
|
||||
image:
|
||||
registry:
|
||||
repository: openebs/jiva
|
||||
tag: 2.11.0
|
||||
replica:
|
||||
image:
|
||||
registry:
|
||||
repository: openebs/jiva
|
||||
tag: 2.11.0
|
||||
image:
|
||||
# Make sure that registry name end with a '/'.
|
||||
# For example : quay.io/ is a correct value here and quay.io is incorrect
|
||||
registry:
|
||||
repository: openebs/jiva-operator
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: 2.11.0
|
||||
annotations: {}
|
||||
resyncInterval: "30"
|
||||
podAnnotations: {}
|
||||
podLabels: {}
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
resources: {}
|
||||
securityContext: {}
|
||||
|
||||
|
||||
csiController:
|
||||
priorityClass:
|
||||
create: true
|
||||
name: jiva-csi-controller-critical
|
||||
componentName: "openebs-jiva-csi-controller"
|
||||
attacher:
|
||||
name: "csi-attacher"
|
||||
image:
|
||||
# Make sure that registry name end with a '/'.
|
||||
# For example : quay.io/ is a correct value here and quay.io is incorrect
|
||||
registry: k8s.gcr.io/
|
||||
repository: sig-storage/csi-attacher
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: v3.1.0
|
||||
livenessprobe:
|
||||
name: "liveness-probe"
|
||||
image:
|
||||
# Make sure that registry name end with a '/'.
|
||||
# For example : quay.io/ is a correct value here and quay.io is incorrect
|
||||
registry: k8s.gcr.io/
|
||||
repository: sig-storage/livenessprobe
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: v2.2.0
|
||||
provisioner:
|
||||
name: "csi-provisioner"
|
||||
image:
|
||||
# Make sure that registry name end with a '/'.
|
||||
# For example : quay.io/ is a correct value here and quay.io is incorrect
|
||||
registry: k8s.gcr.io/
|
||||
repository: sig-storage/csi-provisioner
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: v2.1.0
|
||||
resizer:
|
||||
name: "csi-resizer"
|
||||
image:
|
||||
# Make sure that registry name end with a '/'.
|
||||
# For example : quay.io/ is a correct value here and quay.io is incorrect
|
||||
registry: k8s.gcr.io/
|
||||
repository: sig-storage/csi-resizer
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: v1.1.0
|
||||
annotations: {}
|
||||
podAnnotations: {}
|
||||
podLabels: {}
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
resources: {}
|
||||
securityContext: {}
|
||||
|
||||
jivaCSIPlugin:
|
||||
name: jiva-csi-plugin
|
||||
image:
|
||||
# Make sure that registry name end with a '/'.
|
||||
# For example : quay.io/ is a correct value here and quay.io is incorrect
|
||||
registry:
|
||||
repository: openebs/jiva-csi
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: 2.11.0
|
||||
remount: "true"
|
||||
|
||||
csiNode:
|
||||
priorityClass:
|
||||
create: true
|
||||
name: jiva-csi-node-critical
|
||||
componentName: "openebs-jiva-csi-node"
|
||||
driverRegistrar:
|
||||
name: "csi-node-driver-registrar"
|
||||
image:
|
||||
registry: k8s.gcr.io/
|
||||
repository: sig-storage/csi-node-driver-registrar
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: v2.0.1
|
||||
livenessprobe:
|
||||
name: "liveness-probe"
|
||||
image:
|
||||
# Make sure that registry name end with a '/'.
|
||||
# For example : quay.io/ is a correct value here and quay.io is incorrect
|
||||
registry: k8s.gcr.io/
|
||||
repository: sig-storage/livenessprobe
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: v2.2.0
|
||||
updateStrategy:
|
||||
type: RollingUpdate
|
||||
annotations: {}
|
||||
podAnnotations: {}
|
||||
resources: {}
|
||||
# limits:
|
||||
# cpu: 10m
|
||||
# memory: 32Mi
|
||||
# requests:
|
||||
# cpu: 10m
|
||||
# memory: 32Mi
|
||||
## Labels to be added to openebs-jiva-csi-node pods
|
||||
podLabels: {}
|
||||
# kubeletDir path can be configured to run on various different k8s distributions like
|
||||
# microk8s where kubelet root dir is not (/var/lib/kubelet/). For example microk8s,
|
||||
# we need to change the kubelet directory to `/var/snap/microk8s/common/var/lib/kubelet/`
|
||||
kubeletDir: "/var/lib/kubelet/"
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
securityContext: {}
|
||||
|
||||
csiDriver:
|
||||
create: true
|
||||
podInfoOnMount: true
|
||||
attachRequired: false
|
||||
|
||||
serviceAccount:
|
||||
# Annotations to add to the service account
|
||||
annotations: {}
|
||||
jivaOperator:
|
||||
create: true
|
||||
name: openebs-jiva-operator
|
||||
csiController:
|
||||
# Specifies whether a service account should be created
|
||||
create: true
|
||||
name: openebs-jiva-csi-controller-sa
|
||||
csiNode:
|
||||
# Specifies whether a service account should be created
|
||||
create: true
|
||||
name: openebs-jiva-csi-node-sa
|
||||
|
||||
defaultClass:
|
||||
# Name of the default default StorageClass
|
||||
name: openebs-jiva-csi-default
|
||||
# If true, enables creation of the openebs-jiva-csi-default StorageClass
|
||||
enabled: true
|
||||
# Available reclaim policies: Delete/Retain, defaults: Delete.
|
||||
reclaimPolicy: Delete
|
||||
# If true, sets the openebs-jiva-csi-default StorageClass as the default StorageClass
|
||||
isDefaultClass: false
|
||||
|
||||
defaultPolicy:
|
||||
# Name of the default default JivaVolumePolicy
|
||||
name: openebs-jiva-default-policy
|
||||
# If true, enables creation of the openebs-jiva-default-policy JivaVolumePolicy
|
||||
enabled: true
|
||||
# replicaSC represents the storage class used for creating
|
||||
# the pvc for the replica sts provisioned by localpv provisioner
|
||||
replicaSC: openebs-hostpath
|
||||
# replicas represent the desired replication factor for the jiva volume
|
||||
replicas: 3
|
||||
|
||||
analytics:
|
||||
enabled: true
|
||||
# Specify in hours the duration after which a ping event needs to be sent.
|
||||
pingInterval: "24h"
|
||||
|
||||
localpv-provisioner:
|
||||
# Disable installation of node-disk-manager components by default
|
||||
openebsNDM:
|
||||
enabled: false
|
||||
# Disable openebs-device deviceClass by default.
|
||||
deviceClass:
|
||||
enabled: false
|
|
@ -0,0 +1,23 @@
|
|||
# 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/
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue