new make charts
parent
b2ea9ad14c
commit
f037f59002
Binary file not shown.
|
@ -0,0 +1,21 @@
|
||||||
|
# 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
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
|
@ -0,0 +1,33 @@
|
||||||
|
annotations:
|
||||||
|
artifacthub.io/changes: |
|
||||||
|
- Update Nutanix CSI Driver to 2.4.1
|
||||||
|
artifacthub.io/containsSecurityUpdates: "true"
|
||||||
|
artifacthub.io/links: |
|
||||||
|
- name: Nutanix CSI Driver documentation
|
||||||
|
url: https://portal.nutanix.com/page/documents/details?targetId=CSI-Volume-Driver-v2_4_1:CSI-Volume-Driver-v2_4_1
|
||||||
|
artifacthub.io/maintainers: |
|
||||||
|
- name: Christophe Jauffret
|
||||||
|
email: christophe@nutanix.com
|
||||||
|
- name: Subodh Mathur
|
||||||
|
email: subodh@nutanix.com
|
||||||
|
catalog.cattle.io/certified: partner
|
||||||
|
catalog.cattle.io/display-name: Nutanix CSI Storage
|
||||||
|
catalog.cattle.io/release-name: nutanix-csi-storage
|
||||||
|
apiVersion: v1
|
||||||
|
appVersion: 2.4.1
|
||||||
|
description: A Helm chart for installing Nutanix CSI Volume Driver
|
||||||
|
home: https://github.com/nutanix/helm
|
||||||
|
icon: https://avatars2.githubusercontent.com/u/6165865?s=200&v=4
|
||||||
|
keywords:
|
||||||
|
- Nutanix
|
||||||
|
- Storage
|
||||||
|
- Volumes
|
||||||
|
- Files
|
||||||
|
- StorageClass
|
||||||
|
- CentOS
|
||||||
|
- Ubuntu
|
||||||
|
kubeVersion: '>= 1.17.0-0'
|
||||||
|
maintainers:
|
||||||
|
- name: tuxtof
|
||||||
|
name: nutanix-csi-storage
|
||||||
|
version: 2.4.100
|
|
@ -0,0 +1,122 @@
|
||||||
|
# Nutanix CSI Volume Driver Helm chart
|
||||||
|
|
||||||
|
## Introduction
|
||||||
|
|
||||||
|
The Container Storage Interface (CSI) Volume Driver for Kubernetes leverages Nutanix Volumes and Nutanix Files to provide scalable and persistent storage for stateful applications.
|
||||||
|
|
||||||
|
When Files is used for persistent storage, applications on multiple pods can access the same storage, and also have the benefit of multi-pod read and write access.
|
||||||
|
|
||||||
|
## Important notice
|
||||||
|
|
||||||
|
If you plan to update an existing Nutanix CSI deployement from 1.x to 2.x with this Chart, you need first deploy manually the CRD present here https://github.com/nutanix/csi-plugin/tree/master/deploy/Centos/crd.
|
||||||
|
|
||||||
|
Please note that starting with v2.2.0, Nutanix CSI driver has changed format of driver name from com.nutanix.csi to csi.nutanix.com. All deployment yamls uses this new driver name format. However, if you are upgrading the CSI driver then you should continue to use old driver name com.nutanix.csi by setting `legacy` parameter to `true`. If not existing PVC/PV will not work with the new driver name.
|
||||||
|
|
||||||
|
## Nutanix CSI driver documentation
|
||||||
|
https://portal.nutanix.com/page/documents/details?targetId=CSI-Volume-Driver-v2_4_1:CSI-Volume-Driver-v2_4_1
|
||||||
|
|
||||||
|
## Features list
|
||||||
|
|
||||||
|
- Nutanix CSI Driver v2.4.1
|
||||||
|
- Nutanix Volumes support
|
||||||
|
- Nutanix Files support
|
||||||
|
- Volume resize support ( beta in Kubernetes >= 1.16.0 )
|
||||||
|
- Volume clone ( beta Kubernetes >= 1.16.0 )
|
||||||
|
- Volume snapshot and Restore ( beta Kubernetes >= 1.17.0 )
|
||||||
|
- IP Address Whitelisting
|
||||||
|
- LVM Volume supporting multi vdisks volume group
|
||||||
|
- NFS dynamic share provisioning
|
||||||
|
- iSCSI Auto CHAP Authentication
|
||||||
|
- OS independence
|
||||||
|
- Volume metrics and CSI operations metrics support
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
|
||||||
|
- Kubernetes 1.17 or later
|
||||||
|
- Kubernetes worker nodes must have the iSCSI package installed (Nutanix Volumes only)
|
||||||
|
- This chart have been validated on CentOS 7 and Ubuntu 18.04/20.04, but the new architecture enables easy portability to other distributions.
|
||||||
|
- This Chart is not made to be installed on the local k3s cluster (by default iscsi prerequisite is missing)
|
||||||
|
|
||||||
|
## Installing the Chart
|
||||||
|
|
||||||
|
To install the chart with the name `nutanix-csi`:
|
||||||
|
|
||||||
|
```console
|
||||||
|
helm repo add nutanix https://nutanix.github.io/helm/
|
||||||
|
|
||||||
|
helm install nutanix-csi nutanix/nutanix-csi-storage -n <namespace of your choice>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Uninstalling the Chart
|
||||||
|
|
||||||
|
To uninstall/delete the `nutanix-csi` deployment:
|
||||||
|
|
||||||
|
```console
|
||||||
|
helm delete nutanix-csi -n <namespace of your choice>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
The following table lists the configurable parameters of the Nutanix-CSI chart and their default values.
|
||||||
|
|
||||||
|
| Parameter | Description | Default |
|
||||||
|
|----------------------------------|----------------------------------------|--------------------------------|
|
||||||
|
| `legacy` | Use old reverse notation for CSI driver name | `false` |
|
||||||
|
| `volumeClass` | Activate Nutanix Volumes Storage Class | `true` |
|
||||||
|
| `volumeClassName` | Name of the Nutanix Volumes Storage Class | `nutanix-volume` |
|
||||||
|
| `fileClass` | Activate Nutanix Files Storage Class | `false` |
|
||||||
|
| `fileClassName` | Name of the Nutanix Files Storage Class | `nutanix-file` |
|
||||||
|
| `dynamicFileClass` | Activate Nutanix Dynamic Files Storage Class | `false` |
|
||||||
|
| `dynamicFileClassName` | Name of the Nutanix Dynamic Files Storage Class | `nutanix-dynamicfile` |
|
||||||
|
| `defaultStorageClass` | Choose your default Storage Class (none, volume, file, dynfile) | `none`|
|
||||||
|
| `prismEndPoint` | Cluster Virtual IP Address |`10.0.0.1`|
|
||||||
|
| `dataServiceEndPoint` | Prism data service IP |`10.0.0.2`|
|
||||||
|
| `username` | Name used for the admin role (if created) |`admin`|
|
||||||
|
| `password` | Password for the admin role (if created) |`nutanix/4u`|
|
||||||
|
| `secretName` | Name of the secret to use for admin role| `ntnx-secret`|
|
||||||
|
| `createSecret` | Create secret for admin role (if false use existing)| `true`|
|
||||||
|
| `storageContainer` | Nutanix storage container name | `default`|
|
||||||
|
| `fsType` | Type of file system you are using (ext4, xfs) |`xfs`|
|
||||||
|
| `lvmVolume` | Activate LVM to use multiple vdisks by Volume |`false`|
|
||||||
|
| `lvmDisks` | Number of vdisks by volume if lvm enabled | `4`|
|
||||||
|
| `fileHost` | NFS server IP address | `10.0.0.3`|
|
||||||
|
| `filePath` | Path of the NFS share |`share`|
|
||||||
|
| `fileServerName` | Name of the Nutanix FIle Server | `file`|
|
||||||
|
| `kubeletDir` | allows overriding the host location of kubelet's internal state | `/var/lib/kubelet`|
|
||||||
|
| `nodeSelector` | Add nodeSelector to all pods | `{}` |
|
||||||
|
| `tolerations` | Add tolerations to all pods | `[]` |
|
||||||
|
| `imagePullPolicy` | Specify imagePullPolicy for all pods| `IfNotPresent`|
|
||||||
|
| `provisioner.nodeSelector` | Add nodeSelector to provisioner pod | `{}` |
|
||||||
|
| `provisioner.tolerations` | Add tolerations to provisioner pod | `[]` |
|
||||||
|
| `node.nodeSelector` | Add nodeSelector to node pods | `{}` |
|
||||||
|
| `node.tolerations` | Add tolerations to node pods | `[]` |
|
||||||
|
| `snapshotController.nodeSelector`| Add nodeSelector to snapshotController pod | `{}` |
|
||||||
|
| `snapshotController.tolerations` | Add tolerations to snapshotController pod | `[]` |
|
||||||
|
| `servicemonitor.enabled` | Create ServiceMonitor to scrape CSI metrics | `false` |
|
||||||
|
| `servicemonitor.labels` | Labels to add to the ServiceMonitor (for match the Prometheus serviceMonitorSelector logic) | `k8s-app: csi-driver`|
|
||||||
|
|
||||||
|
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install` or provide a a file whit `-f value.yaml`.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```console
|
||||||
|
helm install nutanix-csi nutanix/nutanix-csi-storage --set prismEndPoint=X.X.X.X --set dataServiceEndPoint=Y.Y.Y.Y --set username=admin --set password=xxxxxxxxx --set storageContainer=container_name --set fsType=xfs --set defaultStorageClass=volume
|
||||||
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
```console
|
||||||
|
helm install nutanix-csi nutanix/nutanix-csi-storage -f value.yaml
|
||||||
|
```
|
||||||
|
|
||||||
|
## Support
|
||||||
|
|
||||||
|
The Nutanix CSI Volume Driver is fully supported by Nutanix. Please use the standard support procedure to file a ticket [here](https://www.nutanix.com/support-services/product-support).
|
||||||
|
|
||||||
|
## Community
|
||||||
|
|
||||||
|
Please file any issues, questions or feature requests you may have [here](https://github.com/nutanix/csi-plugin/issues) for the Nutanix CSI Driver or [here](https://github.com/nutanix/helm/issues) for the Helm chart.
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
We value all feedback and contributions. If you find any issues or want to contribute, please feel free to open an issue or file a PR.
|
|
@ -0,0 +1 @@
|
||||||
|
A Helm chart for installing Nutanix CSI Volume/File Storage Driver
|
|
@ -0,0 +1,85 @@
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
controller-gen.kubebuilder.io/version: v0.2.5
|
||||||
|
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/260"
|
||||||
|
creationTimestamp: null
|
||||||
|
name: volumesnapshotclasses.snapshot.storage.k8s.io
|
||||||
|
spec:
|
||||||
|
additionalPrinterColumns:
|
||||||
|
- JSONPath: .driver
|
||||||
|
name: Driver
|
||||||
|
type: string
|
||||||
|
- JSONPath: .deletionPolicy
|
||||||
|
description: Determines whether a VolumeSnapshotContent created through the VolumeSnapshotClass
|
||||||
|
should be deleted when its bound VolumeSnapshot is deleted.
|
||||||
|
name: DeletionPolicy
|
||||||
|
type: string
|
||||||
|
- JSONPath: .metadata.creationTimestamp
|
||||||
|
name: Age
|
||||||
|
type: date
|
||||||
|
group: snapshot.storage.k8s.io
|
||||||
|
names:
|
||||||
|
kind: VolumeSnapshotClass
|
||||||
|
listKind: VolumeSnapshotClassList
|
||||||
|
plural: volumesnapshotclasses
|
||||||
|
singular: volumesnapshotclass
|
||||||
|
preserveUnknownFields: false
|
||||||
|
scope: Cluster
|
||||||
|
subresources: {}
|
||||||
|
validation:
|
||||||
|
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
|
||||||
|
version: v1beta1
|
||||||
|
versions:
|
||||||
|
- name: v1beta1
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
status:
|
||||||
|
acceptedNames:
|
||||||
|
kind: ""
|
||||||
|
plural: ""
|
||||||
|
conditions: []
|
||||||
|
storedVersions: []
|
|
@ -0,0 +1,233 @@
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
controller-gen.kubebuilder.io/version: v0.2.5
|
||||||
|
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/260"
|
||||||
|
creationTimestamp: null
|
||||||
|
name: volumesnapshotcontents.snapshot.storage.k8s.io
|
||||||
|
spec:
|
||||||
|
additionalPrinterColumns:
|
||||||
|
- JSONPath: .status.readyToUse
|
||||||
|
description: Indicates if a snapshot is ready to be used to restore a volume.
|
||||||
|
name: ReadyToUse
|
||||||
|
type: boolean
|
||||||
|
- JSONPath: .status.restoreSize
|
||||||
|
description: Represents the complete size of the snapshot in bytes
|
||||||
|
name: RestoreSize
|
||||||
|
type: integer
|
||||||
|
- JSONPath: .spec.deletionPolicy
|
||||||
|
description: Determines whether this VolumeSnapshotContent and its physical snapshot
|
||||||
|
on the underlying storage system should be deleted when its bound VolumeSnapshot
|
||||||
|
is deleted.
|
||||||
|
name: DeletionPolicy
|
||||||
|
type: string
|
||||||
|
- JSONPath: .spec.driver
|
||||||
|
description: Name of the CSI driver used to create the physical snapshot on the
|
||||||
|
underlying storage system.
|
||||||
|
name: Driver
|
||||||
|
type: string
|
||||||
|
- JSONPath: .spec.volumeSnapshotClassName
|
||||||
|
description: Name of the VolumeSnapshotClass to which this snapshot belongs.
|
||||||
|
name: VolumeSnapshotClass
|
||||||
|
type: string
|
||||||
|
- JSONPath: .spec.volumeSnapshotRef.name
|
||||||
|
description: Name of the VolumeSnapshot object to which this VolumeSnapshotContent
|
||||||
|
object is bound.
|
||||||
|
name: VolumeSnapshot
|
||||||
|
type: string
|
||||||
|
- JSONPath: .metadata.creationTimestamp
|
||||||
|
name: Age
|
||||||
|
type: date
|
||||||
|
group: snapshot.storage.k8s.io
|
||||||
|
names:
|
||||||
|
kind: VolumeSnapshotContent
|
||||||
|
listKind: VolumeSnapshotContentList
|
||||||
|
plural: volumesnapshotcontents
|
||||||
|
singular: volumesnapshotcontent
|
||||||
|
preserveUnknownFields: false
|
||||||
|
scope: Cluster
|
||||||
|
subresources:
|
||||||
|
status: {}
|
||||||
|
validation:
|
||||||
|
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. In dynamic snapshot creation
|
||||||
|
case, this field will be filled in with the "DeletionPolicy" field
|
||||||
|
defined in the VolumeSnapshotClass the VolumeSnapshot refers to. 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 from where a snapshot will be created.
|
||||||
|
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. 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 to which this snapshot
|
||||||
|
belongs.
|
||||||
|
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 with the "creation_time" value
|
||||||
|
returned from CSI "CreateSnapshotRequest" 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 latest observed error during snapshot creation,
|
||||||
|
if any.
|
||||||
|
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 with the "ready_to_use" value returned from CSI
|
||||||
|
"CreateSnapshotRequest" 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 with the "size_bytes" value returned from CSI "CreateSnapshotRequest"
|
||||||
|
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
|
||||||
|
version: v1beta1
|
||||||
|
versions:
|
||||||
|
- name: v1beta1
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
status:
|
||||||
|
acceptedNames:
|
||||||
|
kind: ""
|
||||||
|
plural: ""
|
||||||
|
conditions: []
|
||||||
|
storedVersions: []
|
|
@ -0,0 +1,188 @@
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: apiextensions.k8s.io/v1beta1
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
controller-gen.kubebuilder.io/version: v0.2.5
|
||||||
|
api-approved.kubernetes.io: "https://github.com/kubernetes-csi/external-snapshotter/pull/260"
|
||||||
|
creationTimestamp: null
|
||||||
|
name: volumesnapshots.snapshot.storage.k8s.io
|
||||||
|
spec:
|
||||||
|
additionalPrinterColumns:
|
||||||
|
- JSONPath: .status.readyToUse
|
||||||
|
description: Indicates if a snapshot is ready to be used to restore a volume.
|
||||||
|
name: ReadyToUse
|
||||||
|
type: boolean
|
||||||
|
- JSONPath: .spec.source.persistentVolumeClaimName
|
||||||
|
description: Name of the source PVC from where a dynamically taken snapshot will
|
||||||
|
be created.
|
||||||
|
name: SourcePVC
|
||||||
|
type: string
|
||||||
|
- JSONPath: .spec.source.volumeSnapshotContentName
|
||||||
|
description: Name of the VolumeSnapshotContent which represents a pre-provisioned
|
||||||
|
snapshot.
|
||||||
|
name: SourceSnapshotContent
|
||||||
|
type: string
|
||||||
|
- JSONPath: .status.restoreSize
|
||||||
|
description: Represents the complete size of the snapshot.
|
||||||
|
name: RestoreSize
|
||||||
|
type: string
|
||||||
|
- JSONPath: .spec.volumeSnapshotClassName
|
||||||
|
description: The name of the VolumeSnapshotClass requested by the VolumeSnapshot.
|
||||||
|
name: SnapshotClass
|
||||||
|
type: string
|
||||||
|
- JSONPath: .status.boundVolumeSnapshotContentName
|
||||||
|
description: The name of the VolumeSnapshotContent to which this VolumeSnapshot
|
||||||
|
is bound.
|
||||||
|
name: SnapshotContent
|
||||||
|
type: string
|
||||||
|
- JSONPath: .status.creationTime
|
||||||
|
description: Timestamp when the point-in-time snapshot is taken by the underlying
|
||||||
|
storage system.
|
||||||
|
name: CreationTime
|
||||||
|
type: date
|
||||||
|
- JSONPath: .metadata.creationTimestamp
|
||||||
|
name: Age
|
||||||
|
type: date
|
||||||
|
group: snapshot.storage.k8s.io
|
||||||
|
names:
|
||||||
|
kind: VolumeSnapshot
|
||||||
|
listKind: VolumeSnapshotList
|
||||||
|
plural: volumesnapshots
|
||||||
|
singular: volumesnapshot
|
||||||
|
preserveUnknownFields: false
|
||||||
|
scope: Namespaced
|
||||||
|
subresources:
|
||||||
|
status: {}
|
||||||
|
validation:
|
||||||
|
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 in the same namespace as the VolumeSnapshot
|
||||||
|
object where the snapshot should be dynamically taken from. This
|
||||||
|
field is immutable.
|
||||||
|
type: string
|
||||||
|
volumeSnapshotContentName:
|
||||||
|
description: volumeSnapshotContentName specifies the name of a pre-existing
|
||||||
|
VolumeSnapshotContent object. This field is immutable.
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
volumeSnapshotClassName:
|
||||||
|
description: 'volumeSnapshotClassName is the name of the VolumeSnapshotClass
|
||||||
|
requested by the VolumeSnapshot. If not specified, the default snapshot
|
||||||
|
class will be used if one exists. If not specified, and there is no
|
||||||
|
default snapshot class, dynamic snapshot creation will fail. Empty
|
||||||
|
string is not allowed for this field. TODO(xiangqian): a webhook validation
|
||||||
|
on empty string. More info: https://kubernetes.io/docs/concepts/storage/volume-snapshot-classes'
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- source
|
||||||
|
type: object
|
||||||
|
status:
|
||||||
|
description: 'status represents the current information of a snapshot. NOTE:
|
||||||
|
status can be modified by sources other than system controllers, and must
|
||||||
|
not be depended upon for accuracy. Controllers should only use information
|
||||||
|
from the VolumeSnapshotContent object after verifying that the binding
|
||||||
|
is accurate and complete.'
|
||||||
|
properties:
|
||||||
|
boundVolumeSnapshotContentName:
|
||||||
|
description: 'boundVolumeSnapshotContentName represents the name of
|
||||||
|
the VolumeSnapshotContent object to which the VolumeSnapshot object
|
||||||
|
is bound. If not specified, it indicates that the VolumeSnapshot object
|
||||||
|
has not been successfully bound to a VolumeSnapshotContent object
|
||||||
|
yet. NOTE: Specified boundVolumeSnapshotContentName alone does not
|
||||||
|
mean binding is valid. Controllers MUST always verify bidirectional
|
||||||
|
binding between VolumeSnapshot and VolumeSnapshotContent to
|
||||||
|
avoid possible security issues.'
|
||||||
|
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 with the "creation_time" value
|
||||||
|
returned from CSI "CreateSnapshotRequest" 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 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.
|
||||||
|
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 with the "ready_to_use" value returned from CSI
|
||||||
|
"CreateSnapshotRequest" 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:
|
||||||
|
anyOf:
|
||||||
|
- type: integer
|
||||||
|
- type: string
|
||||||
|
description: restoreSize represents the complete size of the snapshot
|
||||||
|
in bytes. In dynamic snapshot creation case, this field will be filled
|
||||||
|
in with the "size_bytes" value returned from CSI "CreateSnapshotRequest"
|
||||||
|
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
|
||||||
|
version: v1beta1
|
||||||
|
versions:
|
||||||
|
- name: v1beta1
|
||||||
|
served: true
|
||||||
|
storage: true
|
||||||
|
status:
|
||||||
|
acceptedNames:
|
||||||
|
kind: ""
|
||||||
|
plural: ""
|
||||||
|
conditions: []
|
||||||
|
storedVersions: []
|
|
@ -0,0 +1,123 @@
|
||||||
|
questions:
|
||||||
|
- variable: volumeClass
|
||||||
|
label: "Volumes Storage Class"
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
description: "Activate Nutanix Volumes Storage Class"
|
||||||
|
group: "global Settings"
|
||||||
|
- variable: fileClass
|
||||||
|
label: "Files Storage Class"
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
description: "Activate Nutanix Files Storage Class"
|
||||||
|
group: "global Settings"
|
||||||
|
- variable: dynamicFileClass
|
||||||
|
label: "Dynamic Files Storage Class"
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
description: "Activate Nutanix Files Storage Class with dynamic share provisioning"
|
||||||
|
group: "global Settings"
|
||||||
|
- variable: legacy
|
||||||
|
label: "Driver Name Legacy mode"
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
description: "Set to True to continue to use old driver name in case of initial install with chart < 2.2.0"
|
||||||
|
group: "global Settings"
|
||||||
|
- variable: defaultStorageClass
|
||||||
|
label: "Default Storage Class"
|
||||||
|
type: enum
|
||||||
|
default: "none"
|
||||||
|
options: ["none", "volume", "file", "dynfile"]
|
||||||
|
description: "Select the default Storage Class you want"
|
||||||
|
group: "global Settings"
|
||||||
|
show_if: "volumeClass=true||dynamicFileClass=true||fileClass=true"
|
||||||
|
|
||||||
|
- variable: prismEndPoint
|
||||||
|
label: "Prism Endpoint"
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
description: "Please specify the cluster virtual address"
|
||||||
|
group: "global Settings"
|
||||||
|
show_if: "volumeClass=true||dynamicFileClass=true"
|
||||||
|
- variable: username
|
||||||
|
label: "Username"
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
description: "Specify username with cluster admin permission"
|
||||||
|
group: "global Settings"
|
||||||
|
show_if: "volumeClass=true||dynamicFileClass=true"
|
||||||
|
- variable: password
|
||||||
|
label: "Password"
|
||||||
|
type: password
|
||||||
|
required: true
|
||||||
|
description: "Specify password of the user"
|
||||||
|
group: "global Settings"
|
||||||
|
show_if: "volumeClass=true||dynamicFileClass=true"
|
||||||
|
|
||||||
|
- variable: servicemonitor.enabled
|
||||||
|
label: "Prometheus ServiceMonitor"
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
description: "Activate Prometheus ServiceMonitor to scrape CSI metrics"
|
||||||
|
group: "global Settings"
|
||||||
|
|
||||||
|
- variable: lvmVolume
|
||||||
|
label: "LVM Volume"
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
description: "Activate LVM to support multi vdisks volume group for PV"
|
||||||
|
group: "Nutanix Volumes Settings"
|
||||||
|
show_if: "volumeClass=true"
|
||||||
|
- variable: dataServiceEndPoint
|
||||||
|
label: "Data Service Endpoint"
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
description: "Please specify the ISCSI data services address"
|
||||||
|
group: "Nutanix Volumes Settings"
|
||||||
|
show_if: "volumeClass=true"
|
||||||
|
- variable: storageContainer
|
||||||
|
label: "Storage Container"
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
description: "Specify Nutanix container name where the Persistent Volume will be stored"
|
||||||
|
group: "Nutanix Volumes Settings"
|
||||||
|
show_if: "volumeClass=true"
|
||||||
|
- variable: fsType
|
||||||
|
label: "Filesystem"
|
||||||
|
type: enum
|
||||||
|
options: ["xfs", "ext4"]
|
||||||
|
description: "Select the filesystem for the Persistent Volume"
|
||||||
|
group: "Nutanix Volumes Settings"
|
||||||
|
show_if: "volumeClass=true"
|
||||||
|
- variable: lvmDisks
|
||||||
|
label: "LVM Disks"
|
||||||
|
type: int
|
||||||
|
required: true
|
||||||
|
default: "4"
|
||||||
|
min: 1
|
||||||
|
max: 8
|
||||||
|
description: "Number of vdisk for each PV"
|
||||||
|
group: "Nutanix Volumes Settings"
|
||||||
|
show_if: "lvmVolume=true&&volumeClass=true"
|
||||||
|
|
||||||
|
- variable: fileHost
|
||||||
|
label: "File Server Address"
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
description: "Specify Nutanix Files address"
|
||||||
|
group: "Nutanix Files Settings"
|
||||||
|
show_if: "fileClass=true"
|
||||||
|
- variable: filePath
|
||||||
|
label: "Export share"
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
description: "Specify Nutanix Files share path"
|
||||||
|
group: "Nutanix Files Settings"
|
||||||
|
show_if: "fileClass=true"
|
||||||
|
- variable: fileServerName
|
||||||
|
label: "NFS File Server Name"
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
description: "Specify Nutanix Files server name"
|
||||||
|
group: "Nutanix Files Settings"
|
||||||
|
show_if: "dynamicFileClass=true"
|
|
@ -0,0 +1,3 @@
|
||||||
|
Driver name: {{ include "nutanix-csi-storage.drivername" . }}
|
||||||
|
|
||||||
|
Nutanix CSI provider was deployed in namespace {{ .Release.Namespace }}
|
|
@ -0,0 +1,43 @@
|
||||||
|
{{/* vim: set filetype=mustache: */}}
|
||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "nutanix-csi-storage.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 "nutanix-csi-storage.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 "nutanix-csi-storage.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create CSI driver name.
|
||||||
|
*/}}
|
||||||
|
{{- define "nutanix-csi-storage.drivername" -}}
|
||||||
|
{{- if .Values.legacy -}}
|
||||||
|
com.nutanix.csi
|
||||||
|
{{- else -}}
|
||||||
|
csi.nutanix.com
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
|
@ -0,0 +1,11 @@
|
||||||
|
{{- if .Capabilities.APIVersions.Has "storage.k8s.io/v1/CSIDriver" }}
|
||||||
|
apiVersion: storage.k8s.io/v1
|
||||||
|
{{- else }}
|
||||||
|
apiVersion: storage.k8s.io/v1beta1
|
||||||
|
{{- end }}
|
||||||
|
kind: CSIDriver
|
||||||
|
metadata:
|
||||||
|
name: {{ include "nutanix-csi-storage.drivername" . }}
|
||||||
|
spec:
|
||||||
|
attachRequired: false
|
||||||
|
podInfoOnMount: true
|
|
@ -0,0 +1,132 @@
|
||||||
|
# Copyright 2021 Nutanix Inc
|
||||||
|
#
|
||||||
|
# example usage: kubectl create -f <this_file>
|
||||||
|
|
||||||
|
kind: DaemonSet
|
||||||
|
apiVersion: apps/v1
|
||||||
|
metadata:
|
||||||
|
name: csi-node-ntnx-plugin
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: csi-node-ntnx-plugin
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: csi-node-ntnx-plugin
|
||||||
|
spec:
|
||||||
|
serviceAccount: csi-node-ntnx-plugin
|
||||||
|
hostNetwork: true
|
||||||
|
containers:
|
||||||
|
- name: driver-registrar
|
||||||
|
image: {{ .Values.sidecars.registrar.image }}
|
||||||
|
imagePullPolicy: {{ .Values.imagePullPolicy }}
|
||||||
|
args:
|
||||||
|
- --v=5
|
||||||
|
- --csi-address=$(ADDRESS)
|
||||||
|
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
|
||||||
|
env:
|
||||||
|
- name: ADDRESS
|
||||||
|
value: /csi/csi.sock
|
||||||
|
- name: DRIVER_REG_SOCK_PATH
|
||||||
|
value: {{ .Values.kubeletDir }}/plugins/{{ include "nutanix-csi-storage.drivername" . }}/csi.sock
|
||||||
|
- name: KUBE_NODE_NAME
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: spec.nodeName
|
||||||
|
volumeMounts:
|
||||||
|
- name: plugin-dir
|
||||||
|
mountPath: /csi/
|
||||||
|
- name: registration-dir
|
||||||
|
mountPath: /registration
|
||||||
|
- name: csi-node-ntnx-plugin
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
allowPrivilegeEscalation: true
|
||||||
|
image: {{ .Values.node.image }}
|
||||||
|
imagePullPolicy: {{ .Values.imagePullPolicy }}
|
||||||
|
args :
|
||||||
|
- "--endpoint=$(CSI_ENDPOINT)"
|
||||||
|
- "--nodeid=$(NODE_ID)"
|
||||||
|
- "--drivername={{ include "nutanix-csi-storage.drivername" . }}"
|
||||||
|
env:
|
||||||
|
- name: CSI_ENDPOINT
|
||||||
|
value: unix:///csi/csi.sock
|
||||||
|
- name: NODE_ID
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: spec.nodeName
|
||||||
|
- name: NODE_IP
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: status.hostIP
|
||||||
|
volumeMounts:
|
||||||
|
- name: plugin-dir
|
||||||
|
mountPath: /csi
|
||||||
|
- name: pods-mount-dir
|
||||||
|
mountPath: {{ .Values.kubeletDir }}
|
||||||
|
# needed so that any mounts setup inside this container are
|
||||||
|
# propagated back to the host machine.
|
||||||
|
mountPropagation: "Bidirectional"
|
||||||
|
- mountPath: /dev
|
||||||
|
name: device-dir
|
||||||
|
- mountPath: /etc/iscsi
|
||||||
|
name: iscsi-dir
|
||||||
|
- mountPath: /host
|
||||||
|
name: root-dir
|
||||||
|
# This is needed because mount is run from host using chroot.
|
||||||
|
mountPropagation: "Bidirectional"
|
||||||
|
ports:
|
||||||
|
- containerPort: 9808
|
||||||
|
name: http-endpoint
|
||||||
|
protocol: TCP
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /healthz
|
||||||
|
port: http-endpoint
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
timeoutSeconds: 3
|
||||||
|
periodSeconds: 2
|
||||||
|
failureThreshold: 3
|
||||||
|
- name: liveness-probe
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /csi
|
||||||
|
name: plugin-dir
|
||||||
|
image: {{ .Values.sidecars.livenessprobe.image }}
|
||||||
|
imagePullPolicy: {{ .Values.imagePullPolicy }}
|
||||||
|
args:
|
||||||
|
- --csi-address=/csi/csi.sock
|
||||||
|
- --http-endpoint=:9808
|
||||||
|
{{- with (.Values.node.nodeSelector | default .Values.nodeSelector) }}
|
||||||
|
nodeSelector:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with (.Values.node.tolerations | default .Values.tolerations) }}
|
||||||
|
tolerations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
volumes:
|
||||||
|
- name: registration-dir
|
||||||
|
hostPath:
|
||||||
|
path: {{ .Values.kubeletDir }}/plugins_registry/
|
||||||
|
type: Directory
|
||||||
|
- name: plugin-dir
|
||||||
|
hostPath:
|
||||||
|
path: {{ .Values.kubeletDir }}/plugins/{{ include "nutanix-csi-storage.drivername" . }}/
|
||||||
|
type: DirectoryOrCreate
|
||||||
|
- name: pods-mount-dir
|
||||||
|
hostPath:
|
||||||
|
path: {{ .Values.kubeletDir }}
|
||||||
|
type: Directory
|
||||||
|
- name: device-dir
|
||||||
|
hostPath:
|
||||||
|
path: /dev
|
||||||
|
- name: iscsi-dir
|
||||||
|
hostPath:
|
||||||
|
path: /etc/iscsi
|
||||||
|
type: Directory
|
||||||
|
- name: root-dir
|
||||||
|
hostPath:
|
||||||
|
path: /
|
||||||
|
type: Directory
|
|
@ -0,0 +1,130 @@
|
||||||
|
# Copyright 2021 Nutanix Inc
|
||||||
|
#
|
||||||
|
# example usage: kubectl create -f <this_file>
|
||||||
|
|
||||||
|
kind: StatefulSet
|
||||||
|
apiVersion: apps/v1
|
||||||
|
metadata:
|
||||||
|
name: csi-provisioner-ntnx-plugin
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
spec:
|
||||||
|
serviceName: csi-provisioner-ntnx-plugin
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: csi-provisioner-ntnx-plugin
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: csi-provisioner-ntnx-plugin
|
||||||
|
spec:
|
||||||
|
serviceAccount: csi-provisioner
|
||||||
|
containers:
|
||||||
|
- name: csi-provisioner
|
||||||
|
image: {{ .Values.sidecars.provisioner.image }}
|
||||||
|
imagePullPolicy: {{ .Values.imagePullPolicy }}
|
||||||
|
args:
|
||||||
|
- --csi-address=$(ADDRESS)
|
||||||
|
- --timeout=60s
|
||||||
|
- --worker-threads=16
|
||||||
|
# This adds PV/PVC metadata to create volume requests
|
||||||
|
- --extra-create-metadata=true
|
||||||
|
- --default-fstype=ext4
|
||||||
|
# This is used to collect CSI operation metrics
|
||||||
|
- --http-endpoint=:9809
|
||||||
|
- --v=5
|
||||||
|
env:
|
||||||
|
- name: ADDRESS
|
||||||
|
value: /var/lib/csi/sockets/pluginproxy/csi.sock
|
||||||
|
volumeMounts:
|
||||||
|
- name: socket-dir
|
||||||
|
mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||||
|
- name: csi-resizer
|
||||||
|
image: {{ .Values.sidecars.resizer.image }}
|
||||||
|
imagePullPolicy: {{ .Values.imagePullPolicy }}
|
||||||
|
args:
|
||||||
|
- --v=5
|
||||||
|
- --csi-address=$(ADDRESS)
|
||||||
|
- --timeout=60s
|
||||||
|
- --leader-election=false
|
||||||
|
# NTNX CSI dirver supports online volume expansion.
|
||||||
|
- --handle-volume-inuse-error=false
|
||||||
|
- --http-endpoint=:9810
|
||||||
|
env:
|
||||||
|
- name: ADDRESS
|
||||||
|
value: /var/lib/csi/sockets/pluginproxy/csi.sock
|
||||||
|
volumeMounts:
|
||||||
|
- name: socket-dir
|
||||||
|
mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||||
|
- name: csi-snapshotter
|
||||||
|
image: {{ .Values.sidecars.snapshotter.image }}
|
||||||
|
imagePullPolicy: {{ .Values.imagePullPolicy }}
|
||||||
|
args:
|
||||||
|
- --csi-address=$(ADDRESS)
|
||||||
|
- --leader-election=false
|
||||||
|
- --logtostderr=true
|
||||||
|
env:
|
||||||
|
- name: ADDRESS
|
||||||
|
value: /csi/csi.sock
|
||||||
|
volumeMounts:
|
||||||
|
- name: socket-dir
|
||||||
|
mountPath: /csi
|
||||||
|
- name: ntnx-csi-plugin
|
||||||
|
image: {{ .Values.provisioner.image }}
|
||||||
|
imagePullPolicy: {{ .Values.imagePullPolicy }}
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: true
|
||||||
|
privileged: true
|
||||||
|
args:
|
||||||
|
- --endpoint=$(CSI_ENDPOINT)
|
||||||
|
- --nodeid=$(NODE_ID)
|
||||||
|
- --drivername={{ include "nutanix-csi-storage.drivername" . }}
|
||||||
|
env:
|
||||||
|
- name: CSI_ENDPOINT
|
||||||
|
value: unix:///var/lib/csi/sockets/pluginproxy/csi.sock
|
||||||
|
- name: NODE_ID
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: spec.nodeName
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||||
|
name: socket-dir
|
||||||
|
# This is needed for static NFS volume feature.
|
||||||
|
- mountPath: /host
|
||||||
|
name: root-dir
|
||||||
|
ports:
|
||||||
|
- containerPort: 9808
|
||||||
|
name: http-endpoint
|
||||||
|
protocol: TCP
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /healthz
|
||||||
|
port: http-endpoint
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
timeoutSeconds: 3
|
||||||
|
periodSeconds: 2
|
||||||
|
failureThreshold: 3
|
||||||
|
- name: liveness-probe
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /csi
|
||||||
|
name: socket-dir
|
||||||
|
image: {{ .Values.sidecars.livenessprobe.image }}
|
||||||
|
imagePullPolicy: {{ .Values.imagePullPolicy }}
|
||||||
|
args:
|
||||||
|
- --csi-address=/csi/csi.sock
|
||||||
|
- --http-endpoint=:9808
|
||||||
|
{{- with (.Values.provisioner.nodeSelector | default .Values.nodeSelector) }}
|
||||||
|
nodeSelector:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with (.Values.provisioner.tolerations | default .Values.tolerations) }}
|
||||||
|
tolerations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
volumes:
|
||||||
|
- emptyDir: {}
|
||||||
|
name: socket-dir
|
||||||
|
- hostPath:
|
||||||
|
path: /
|
||||||
|
type: Directory
|
||||||
|
name: root-dir
|
|
@ -0,0 +1,124 @@
|
||||||
|
# Copyright 2018 Nutanix Inc
|
||||||
|
#
|
||||||
|
# Configuration to deploy the Nutanix CSI driver
|
||||||
|
#
|
||||||
|
# example usage: kubectl create -f <this_file>
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: csi-provisioner
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
---
|
||||||
|
kind: ClusterRole
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: external-provisioner-runner
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["secrets"]
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["persistentvolumes"]
|
||||||
|
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"]
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["events"]
|
||||||
|
verbs: ["list", "watch", "create", "update", "patch"]
|
||||||
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||||
|
resources: ["volumesnapshotclasses"]
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||||
|
resources: ["volumesnapshots"]
|
||||||
|
verbs: ["get", "list", "watch", "update"]
|
||||||
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||||
|
resources: ["volumesnapshots/status"]
|
||||||
|
verbs: ["update"]
|
||||||
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||||
|
resources: ["volumesnapshotcontents"]
|
||||||
|
verbs: ["create", "get", "list", "watch", "update", "delete"]
|
||||||
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||||
|
resources: ["volumesnapshotcontents/status"]
|
||||||
|
verbs: ["update"]
|
||||||
|
---
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: csi-provisioner-role
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: csi-provisioner
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
roleRef:
|
||||||
|
kind: ClusterRole
|
||||||
|
name: external-provisioner-runner
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
---
|
||||||
|
# needed for StatefulSet
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: csi-provisioner-ntnx-plugin
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app: csi-provisioner-ntnx-plugin
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: csi-provisioner-ntnx-plugin
|
||||||
|
ports:
|
||||||
|
- name: dummy
|
||||||
|
port: 12345
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: csi-node-ntnx-plugin
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
---
|
||||||
|
kind: ClusterRole
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: csi-node-runner
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["secrets"]
|
||||||
|
verbs: ["get", "list"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["nodes"]
|
||||||
|
verbs: ["get", "list", "update"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["namespaces"]
|
||||||
|
verbs: ["get", "list"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["persistentvolumes"]
|
||||||
|
verbs: ["get", "list", "watch", "update"]
|
||||||
|
- apiGroups: ["storage.k8s.io"]
|
||||||
|
resources: ["volumeattachments"]
|
||||||
|
verbs: ["get", "list", "watch", "update"]
|
||||||
|
---
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: csi-node-role
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: csi-node-ntnx-plugin
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
roleRef:
|
||||||
|
kind: ClusterRole
|
||||||
|
name: csi-node-runner
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
{{- if eq .Values.os "openshift4"}}
|
||||||
|
kind: SecurityContextConstraints
|
||||||
|
apiVersion: security.openshift.io/v1
|
||||||
|
metadata:
|
||||||
|
name: ntnx-csi-scc
|
||||||
|
allowHostDirVolumePlugin: true
|
||||||
|
allowHostIPC: false
|
||||||
|
allowHostNetwork: true
|
||||||
|
allowHostPID: false
|
||||||
|
allowHostPorts: true
|
||||||
|
allowPrivilegeEscalation: true
|
||||||
|
allowPrivilegedContainer: true
|
||||||
|
allowedCapabilities: []
|
||||||
|
defaultAddCapabilities: []
|
||||||
|
fsGroup:
|
||||||
|
type: RunAsAny
|
||||||
|
groups: []
|
||||||
|
priority:
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
requiredDropCapabilities: []
|
||||||
|
runAsUser:
|
||||||
|
type: RunAsAny
|
||||||
|
seLinuxContext:
|
||||||
|
type: RunAsAny
|
||||||
|
supplementalGroups:
|
||||||
|
type: RunAsAny
|
||||||
|
users:
|
||||||
|
- system:serviceaccount:{{ .Release.Namespace }}:csi-provisioner
|
||||||
|
- system:serviceaccount:{{ .Release.Namespace }}:csi-node-ntnx-plugin
|
||||||
|
{{- end}}
|
|
@ -0,0 +1,73 @@
|
||||||
|
{{- if eq .Values.volumeClass true }}
|
||||||
|
kind: StorageClass
|
||||||
|
apiVersion: storage.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.volumeClassName }}
|
||||||
|
{{- if eq .Values.defaultStorageClass "volume" }}
|
||||||
|
annotations:
|
||||||
|
storageclass.kubernetes.io/is-default-class: "true"
|
||||||
|
{{- end }}
|
||||||
|
provisioner: {{ include "nutanix-csi-storage.drivername" . }}
|
||||||
|
parameters:
|
||||||
|
storageType: NutanixVolumes
|
||||||
|
csi.storage.k8s.io/provisioner-secret-name: {{ .Values.secretName }}
|
||||||
|
csi.storage.k8s.io/provisioner-secret-namespace: {{ .Release.Namespace }}
|
||||||
|
csi.storage.k8s.io/node-publish-secret-name: {{ .Values.secretName }}
|
||||||
|
csi.storage.k8s.io/node-publish-secret-namespace: {{ .Release.Namespace }}
|
||||||
|
csi.storage.k8s.io/controller-expand-secret-name: {{ .Values.secretName }}
|
||||||
|
csi.storage.k8s.io/controller-expand-secret-namespace: {{ .Release.Namespace }}
|
||||||
|
dataServiceEndPoint: {{ .Values.dataServiceEndPoint }}
|
||||||
|
storageContainer: {{ .Values.storageContainer }}
|
||||||
|
csi.storage.k8s.io/fstype: {{ .Values.fsType }}
|
||||||
|
{{- if eq .Values.lvmVolume true }}
|
||||||
|
isLVMVolume: "true"
|
||||||
|
numLVMDisks: {{ quote .Values.lvmDisks }}
|
||||||
|
{{- end }}
|
||||||
|
allowVolumeExpansion: true
|
||||||
|
reclaimPolicy: Delete
|
||||||
|
---
|
||||||
|
apiVersion: snapshot.storage.k8s.io/v1beta1
|
||||||
|
kind: VolumeSnapshotClass
|
||||||
|
metadata:
|
||||||
|
name: nutanix-snapshot-class
|
||||||
|
driver: {{ include "nutanix-csi-storage.drivername" . }}
|
||||||
|
parameters:
|
||||||
|
storageType: NutanixVolumes
|
||||||
|
csi.storage.k8s.io/snapshotter-secret-name: {{ .Values.secretName }}
|
||||||
|
csi.storage.k8s.io/snapshotter-secret-namespace: {{ .Release.Namespace }}
|
||||||
|
deletionPolicy: Delete
|
||||||
|
{{- end }}
|
||||||
|
---
|
||||||
|
{{- if eq .Values.fileClass true }}
|
||||||
|
kind: StorageClass
|
||||||
|
apiVersion: storage.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.fileClassName }}
|
||||||
|
{{- if eq .Values.defaultStorageClass "file" }}
|
||||||
|
annotations:
|
||||||
|
storageclass.kubernetes.io/is-default-class: "true"
|
||||||
|
{{- end }}
|
||||||
|
provisioner: {{ include "nutanix-csi-storage.drivername" . }}
|
||||||
|
parameters:
|
||||||
|
storageType: NutanixFiles
|
||||||
|
nfsServer: {{ .Values.fileHost }}
|
||||||
|
nfsPath: {{ .Values.filePath }}
|
||||||
|
{{- end }}
|
||||||
|
---
|
||||||
|
{{- if eq .Values.dynamicFileClass true }}
|
||||||
|
kind: StorageClass
|
||||||
|
apiVersion: storage.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.dynamicFileClassName }}
|
||||||
|
{{- if eq .Values.defaultStorageClass "dynfile" }}
|
||||||
|
annotations:
|
||||||
|
storageclass.kubernetes.io/is-default-class: "true"
|
||||||
|
{{- end }}
|
||||||
|
provisioner: {{ include "nutanix-csi-storage.drivername" . }}
|
||||||
|
parameters:
|
||||||
|
storageType: NutanixFiles
|
||||||
|
dynamicProv: ENABLED
|
||||||
|
nfsServerName: {{ .Values.fileServerName }}
|
||||||
|
csi.storage.k8s.io/provisioner-secret-name: {{ .Values.secretName }}
|
||||||
|
csi.storage.k8s.io/provisioner-secret-namespace: {{ .Release.Namespace }}
|
||||||
|
{{- end }}
|
|
@ -0,0 +1,11 @@
|
||||||
|
{{- if eq .Values.createSecret true }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.secretName }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
data:
|
||||||
|
# base64 encoded prism-ip:prism-port:admin:password.
|
||||||
|
# E.g.: echo -n "10.83.0.91:9440:admin:mypassword" | base64
|
||||||
|
key: {{ printf "%s:9440:%s:%s" .Values.prismEndPoint .Values.username .Values.password | b64enc}}
|
||||||
|
{{- end }}
|
|
@ -0,0 +1,46 @@
|
||||||
|
# Copyright 2021 Nutanix Inc
|
||||||
|
#
|
||||||
|
# example usage: kubectl create -f <this_file>
|
||||||
|
#
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: csi-metrics-service
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app: csi-provisioner-ntnx-plugin
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
selector:
|
||||||
|
app: csi-provisioner-ntnx-plugin
|
||||||
|
ports:
|
||||||
|
- name: provisioner
|
||||||
|
port: 9809
|
||||||
|
targetPort: 9809
|
||||||
|
protocol: TCP
|
||||||
|
- name: resizer
|
||||||
|
port: 9810
|
||||||
|
targetPort: 9810
|
||||||
|
protocol: TCP
|
||||||
|
{{- if eq .Values.servicemonitor.enabled true }}
|
||||||
|
---
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
{{- with .Values.servicemonitor.labels }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
name: csi-driver
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
spec:
|
||||||
|
endpoints:
|
||||||
|
- interval: 30s
|
||||||
|
port: provisioner
|
||||||
|
- interval: 30s
|
||||||
|
port: resizer
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: csi-provisioner-ntnx-plugin
|
||||||
|
{{- end }}
|
|
@ -0,0 +1,78 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: snapshot-controller
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
---
|
||||||
|
kind: ClusterRole
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: snapshot-controller-runner
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["persistentvolumes"]
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["persistentvolumeclaims"]
|
||||||
|
verbs: ["get", "list", "watch", "update"]
|
||||||
|
- apiGroups: ["storage.k8s.io"]
|
||||||
|
resources: ["storageclasses"]
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["events"]
|
||||||
|
verbs: ["list", "watch", "create", "update", "patch"]
|
||||||
|
- 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: ["volumesnapshots"]
|
||||||
|
verbs: ["get", "list", "watch", "update"]
|
||||||
|
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||||
|
resources: ["volumesnapshots/status"]
|
||||||
|
verbs: ["update"]
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: snapshot-controller-role
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: snapshot-controller
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
roleRef:
|
||||||
|
kind: ClusterRole
|
||||||
|
name: snapshot-controller-runner
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: Role
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: snapshot-controller-leaderelection
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
rules:
|
||||||
|
- apiGroups: ["coordination.k8s.io"]
|
||||||
|
resources: ["leases"]
|
||||||
|
verbs: ["get", "watch", "list", "delete", "update", "create"]
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: RoleBinding
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: snapshot-controller-leaderelection
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: snapshot-controller
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
roleRef:
|
||||||
|
kind: Role
|
||||||
|
name: snapshot-controller-leaderelection
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
kind: StatefulSet
|
||||||
|
apiVersion: apps/v1
|
||||||
|
metadata:
|
||||||
|
name: snapshot-controller
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
spec:
|
||||||
|
serviceName: "snapshot-controller"
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: snapshot-controller
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: snapshot-controller
|
||||||
|
spec:
|
||||||
|
serviceAccount: snapshot-controller
|
||||||
|
containers:
|
||||||
|
- name: snapshot-controller
|
||||||
|
image: {{ .Values.sidecars.snapshotController.image }}
|
||||||
|
imagePullPolicy: {{ .Values.imagePullPolicy }}
|
||||||
|
args:
|
||||||
|
- "--v=5"
|
||||||
|
- "--leader-election=false"
|
||||||
|
{{- with (.Values.sidecars.snapshotController.nodeSelector | default .Values.nodeSelector ) }}
|
||||||
|
nodeSelector:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with (.Values.sidecars.snapshotController.tolerations | default .Values.tolerations)}}
|
||||||
|
tolerations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
|
@ -0,0 +1,121 @@
|
||||||
|
# Default values for nutanix-csi-storage.
|
||||||
|
# This is a YAML-formatted file.
|
||||||
|
# Declare variables to be passed into your templates.
|
||||||
|
|
||||||
|
# parameters
|
||||||
|
|
||||||
|
# Legacy mode
|
||||||
|
#
|
||||||
|
# if legacy set to true we keep the old reverse domain notation for CSI driver name (com.nutanix.csi).
|
||||||
|
# need to be set to true only if upgrade and initialy installed with helm package before 2.2.x
|
||||||
|
legacy: false
|
||||||
|
|
||||||
|
# OS settings
|
||||||
|
#
|
||||||
|
# Starting v2.3.1 CSI driver is OS independent, this value is reserved
|
||||||
|
os: none
|
||||||
|
|
||||||
|
# kubeletDir allows overriding the host location of kubelet's internal state.
|
||||||
|
kubeletDir: "/var/lib/kubelet"
|
||||||
|
|
||||||
|
# Global Settings for all pods
|
||||||
|
|
||||||
|
nodeSelector: {}
|
||||||
|
tolerations: []
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
|
||||||
|
# Storage Class settings
|
||||||
|
#
|
||||||
|
# choose for which mode (Volume, File, Dynamic File) storageclass need to be created
|
||||||
|
volumeClass: true
|
||||||
|
volumeClassName: "nutanix-volume"
|
||||||
|
|
||||||
|
fileClass: false
|
||||||
|
fileClassName: "nutanix-file"
|
||||||
|
|
||||||
|
dynamicFileClass: false
|
||||||
|
dynamicFileClassName: "nutanix-dynamicfile"
|
||||||
|
|
||||||
|
|
||||||
|
# Default Storage Class settings
|
||||||
|
#
|
||||||
|
# Decide wich storageclass will be the default
|
||||||
|
# value are: node, volume, file, dynfile
|
||||||
|
defaultStorageClass: none
|
||||||
|
|
||||||
|
# Nutanix Prism Elements settings
|
||||||
|
#
|
||||||
|
# Allow dynamic creation of Volumes and Fileshare
|
||||||
|
# needed if volumeClass or dynamicFileClass is set to true
|
||||||
|
|
||||||
|
prismEndPoint: 10.0.0.1
|
||||||
|
|
||||||
|
username: admin
|
||||||
|
password: nutanix/4u
|
||||||
|
|
||||||
|
secretName: ntnx-secret
|
||||||
|
|
||||||
|
# Nutanix Prism Elements Existing Secret
|
||||||
|
#
|
||||||
|
# if set to false a new secret will not be created
|
||||||
|
createSecret: true
|
||||||
|
|
||||||
|
|
||||||
|
# Volumes Settings
|
||||||
|
#
|
||||||
|
dataServiceEndPoint: 10.0.0.2
|
||||||
|
storageContainer: default
|
||||||
|
fsType: xfs
|
||||||
|
|
||||||
|
lvmVolume: false
|
||||||
|
lvmDisks: 4
|
||||||
|
|
||||||
|
# Files Settings
|
||||||
|
#
|
||||||
|
fileHost: 10.0.0.3
|
||||||
|
filePath: share
|
||||||
|
|
||||||
|
# Dynamic Files Settings
|
||||||
|
#
|
||||||
|
fileServerName: file
|
||||||
|
|
||||||
|
|
||||||
|
# Volume metrics and CSI operations metrics configuration
|
||||||
|
#
|
||||||
|
|
||||||
|
servicemonitor:
|
||||||
|
enabled: false
|
||||||
|
labels:
|
||||||
|
# This should match the serviceMonitorSelector logic configured
|
||||||
|
# on the prometheus.
|
||||||
|
k8s-app: csi-driver
|
||||||
|
|
||||||
|
|
||||||
|
# Pod pecific Settings
|
||||||
|
#
|
||||||
|
|
||||||
|
provisioner:
|
||||||
|
image: quay.io/karbon/ntnx-csi:v2.4.1
|
||||||
|
nodeSelector: {}
|
||||||
|
tolerations: []
|
||||||
|
|
||||||
|
node:
|
||||||
|
image: quay.io/karbon/ntnx-csi:v2.4.1
|
||||||
|
nodeSelector: {}
|
||||||
|
tolerations: []
|
||||||
|
|
||||||
|
sidecars:
|
||||||
|
registrar:
|
||||||
|
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.2.0
|
||||||
|
provisioner:
|
||||||
|
image: k8s.gcr.io/sig-storage/csi-provisioner:v2.2.0
|
||||||
|
snapshotter:
|
||||||
|
image: quay.io/k8scsi/csi-snapshotter:v2.1.0
|
||||||
|
resizer:
|
||||||
|
image: k8s.gcr.io/sig-storage/csi-resizer:v1.2.0
|
||||||
|
livenessprobe:
|
||||||
|
image: k8s.gcr.io/sig-storage/livenessprobe:v2.3.0
|
||||||
|
snapshotController:
|
||||||
|
image: quay.io/k8scsi/snapshot-controller:v2.1.0
|
||||||
|
nodeSelector: {}
|
||||||
|
tolerations: []
|
37
index.yaml
37
index.yaml
|
@ -1341,6 +1341,43 @@ entries:
|
||||||
- assets/nginx-ingress/nginx-ingress-0.10.0.tgz
|
- assets/nginx-ingress/nginx-ingress-0.10.0.tgz
|
||||||
version: 0.10.0
|
version: 0.10.0
|
||||||
nutanix-csi-storage:
|
nutanix-csi-storage:
|
||||||
|
- annotations:
|
||||||
|
artifacthub.io/changes: |
|
||||||
|
- Update Nutanix CSI Driver to 2.4.1
|
||||||
|
artifacthub.io/containsSecurityUpdates: "true"
|
||||||
|
artifacthub.io/links: |
|
||||||
|
- name: Nutanix CSI Driver documentation
|
||||||
|
url: https://portal.nutanix.com/page/documents/details?targetId=CSI-Volume-Driver-v2_4_1:CSI-Volume-Driver-v2_4_1
|
||||||
|
artifacthub.io/maintainers: |
|
||||||
|
- name: Christophe Jauffret
|
||||||
|
email: christophe@nutanix.com
|
||||||
|
- name: Subodh Mathur
|
||||||
|
email: subodh@nutanix.com
|
||||||
|
catalog.cattle.io/certified: partner
|
||||||
|
catalog.cattle.io/display-name: Nutanix CSI Storage
|
||||||
|
catalog.cattle.io/release-name: nutanix-csi-storage
|
||||||
|
apiVersion: v1
|
||||||
|
appVersion: 2.4.1
|
||||||
|
created: "2021-10-12T13:49:40.882873+02:00"
|
||||||
|
description: A Helm chart for installing Nutanix CSI Volume Driver
|
||||||
|
digest: d6840660e6bba29919fcf749b5b10e72c5609ded0049d4f14b21a8b116f58d94
|
||||||
|
home: https://github.com/nutanix/helm
|
||||||
|
icon: https://avatars2.githubusercontent.com/u/6165865?s=200&v=4
|
||||||
|
keywords:
|
||||||
|
- Nutanix
|
||||||
|
- Storage
|
||||||
|
- Volumes
|
||||||
|
- Files
|
||||||
|
- StorageClass
|
||||||
|
- CentOS
|
||||||
|
- Ubuntu
|
||||||
|
kubeVersion: '>= 1.17.0-0'
|
||||||
|
maintainers:
|
||||||
|
- name: tuxtof
|
||||||
|
name: nutanix-csi-storage
|
||||||
|
urls:
|
||||||
|
- assets/nutanix-csi-storage/nutanix-csi-storage-2.4.100.tgz
|
||||||
|
version: 2.4.100
|
||||||
- annotations:
|
- annotations:
|
||||||
catalog.cattle.io/certified: partner
|
catalog.cattle.io/certified: partner
|
||||||
catalog.cattle.io/release-name: nutanix-csi-storage
|
catalog.cattle.io/release-name: nutanix-csi-storage
|
||||||
|
|
Loading…
Reference in New Issue