Generated changes
parent
be01f02a5d
commit
92b849562d
|
@ -411,6 +411,32 @@ entries:
|
|||
urls:
|
||||
- assets/k8s-triliovault-operator/k8s-triliovault-operator-v2.0.200.tgz
|
||||
version: v2.0.200
|
||||
nutanix-csi-storage:
|
||||
- annotations:
|
||||
catalog.cattle.io/certified: partner
|
||||
catalog.cattle.io/release-name: nutanix-csi-storage
|
||||
apiVersion: v1
|
||||
appVersion: 2.3.1
|
||||
created: "2021-02-25T20:17:31.426894175Z"
|
||||
description: A Helm chart for installing Nutanix CSI Volume Driver
|
||||
digest: 319009a424d1748dc5e7e32e3c0a424621f9555b3ccb0a583f204c561078ef29
|
||||
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.13.0'
|
||||
maintainers:
|
||||
- name: tuxtof
|
||||
name: nutanix-csi-storage
|
||||
urls:
|
||||
- assets/nutanix-csi-storage/nutanix-csi-storage-2.3.100.tgz
|
||||
version: 2.3.100
|
||||
openebs:
|
||||
- annotations:
|
||||
catalog.cattle.io/certified: partner
|
||||
|
@ -501,4 +527,4 @@ entries:
|
|||
urls:
|
||||
- assets/sysdig/sysdig-1.9.200.tgz
|
||||
version: 1.9.200
|
||||
generated: "2021-02-16T21:56:04.136897878Z"
|
||||
generated: "2021-02-25T20:17:31.425563557Z"
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,21 @@
|
|||
apiVersion: v1
|
||||
appVersion: 2.3.1
|
||||
annotations:
|
||||
catalog.cattle.io/certified: partner
|
||||
catalog.cattle.io/release-name: nutanix-csi-storage
|
||||
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.13.0'
|
||||
maintainers:
|
||||
- name: tuxtof
|
||||
name: nutanix-csi-storage
|
||||
version: 2.3.100
|
|
@ -0,0 +1,93 @@
|
|||
# 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_3:CSI-Volume-Driver-v2_3
|
||||
|
||||
## Features list
|
||||
|
||||
- Nutanix CSI Driver v2.3.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
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Kubernetes 1.13 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.
|
||||
|
||||
## 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` |
|
||||
| `fileClass` | Activate Nutanix Files Storage Class | `false` |
|
||||
| `dynamicFileClass` | Activate Nutanix Dynamic Files Storage Class | `false` |
|
||||
| `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`|
|
||||
| `fileHost` | NFS server IP address | `10.0.0.3`|
|
||||
| `filePath` | path of the NFS share |`share`|
|
||||
| `fileServerName` | name of the Nutanix FIle Server | `file`|
|
||||
| `nodeSelector` | add nodeSelector to pods spec | |
|
||||
| `tolerations` | add tolerations to pods spec | |
|
||||
|
||||
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 --set os=centos
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```console
|
||||
helm install nutanix-csi nutanix/nutanix-csi-storage -f value.yaml
|
||||
```
|
|
@ -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,116 @@
|
|||
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: 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,7 @@
|
|||
apiVersion: storage.k8s.io/v1beta1
|
||||
kind: CSIDriver
|
||||
metadata:
|
||||
name: {{ include "nutanix-csi-storage.drivername" . }}
|
||||
spec:
|
||||
attachRequired: false
|
||||
podInfoOnMount: true
|
|
@ -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,128 @@
|
|||
# Copyright 2019 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: quay.io/k8scsi/csi-node-driver-registrar:v1.2.0
|
||||
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: /var/lib/kubelet/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: quay.io/karbon/ntnx-csi:v2.3.1
|
||||
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: /var/lib/kubelet
|
||||
# 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
|
||||
ports:
|
||||
- containerPort: 9808
|
||||
name: healthz
|
||||
protocol: TCP
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: healthz
|
||||
initialDelaySeconds: 10
|
||||
timeoutSeconds: 3
|
||||
periodSeconds: 2
|
||||
failureThreshold: 3
|
||||
- name: liveness-probe
|
||||
imagePullPolicy: Always
|
||||
volumeMounts:
|
||||
- mountPath: /csi
|
||||
name: plugin-dir
|
||||
image: quay.io/k8scsi/livenessprobe:v1.1.0
|
||||
args:
|
||||
- --csi-address=/csi/csi.sock
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.tolerations }}
|
||||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
volumes:
|
||||
- name: registration-dir
|
||||
hostPath:
|
||||
path: /var/lib/kubelet/plugins_registry/
|
||||
type: Directory
|
||||
- name: plugin-dir
|
||||
hostPath:
|
||||
path: /var/lib/kubelet/plugins/{{ include "nutanix-csi-storage.drivername" . }}/
|
||||
type: DirectoryOrCreate
|
||||
- name: pods-mount-dir
|
||||
hostPath:
|
||||
path: /var/lib/kubelet
|
||||
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,111 @@
|
|||
# Copyright 2019 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: quay.io/k8scsi/csi-provisioner:v1.5.0
|
||||
args:
|
||||
- --provisioner={{ include "nutanix-csi-storage.drivername" . }}
|
||||
- --csi-address=$(ADDRESS)
|
||||
- --timeout=60s
|
||||
- --v=5
|
||||
env:
|
||||
- name: ADDRESS
|
||||
value: /var/lib/csi/sockets/pluginproxy/csi.sock
|
||||
imagePullPolicy: IfNotPresent
|
||||
volumeMounts:
|
||||
- name: socket-dir
|
||||
mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||
- name: csi-resizer
|
||||
image: quay.io/k8scsi/csi-resizer:v0.3.0
|
||||
args:
|
||||
- --v=5
|
||||
- --csi-address=$(ADDRESS)
|
||||
- --leader-election=false
|
||||
env:
|
||||
- name: ADDRESS
|
||||
value: /var/lib/csi/sockets/pluginproxy/csi.sock
|
||||
imagePullPolicy: IfNotPresent
|
||||
volumeMounts:
|
||||
- name: socket-dir
|
||||
mountPath: /var/lib/csi/sockets/pluginproxy/
|
||||
- name: csi-snapshotter
|
||||
image: quay.io/k8scsi/csi-snapshotter:v2.1.0
|
||||
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: quay.io/karbon/ntnx-csi:v2.3.1
|
||||
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
|
||||
ports:
|
||||
- containerPort: 9808
|
||||
name: healthz
|
||||
protocol: TCP
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: healthz
|
||||
initialDelaySeconds: 10
|
||||
timeoutSeconds: 3
|
||||
periodSeconds: 2
|
||||
failureThreshold: 3
|
||||
- name: liveness-probe
|
||||
volumeMounts:
|
||||
- mountPath: /csi
|
||||
name: socket-dir
|
||||
image: quay.io/k8scsi/livenessprobe:v1.1.0
|
||||
args:
|
||||
- --csi-address=/csi/csi.sock
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.tolerations }}
|
||||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
volumes:
|
||||
- emptyDir: {}
|
||||
name: socket-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,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,73 @@
|
|||
{{- if eq .Values.volumeClass true }}
|
||||
kind: StorageClass
|
||||
apiVersion: storage.k8s.io/v1
|
||||
metadata:
|
||||
name: nutanix-volume
|
||||
{{- 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: nutanix-file
|
||||
{{- 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: nutanix-dynamicfile
|
||||
{{- 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,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,24 @@
|
|||
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: quay.io/k8scsi/snapshot-controller:v2.0.1
|
||||
args:
|
||||
- "--v=5"
|
||||
- "--leader-election=false"
|
||||
imagePullPolicy: Always
|
|
@ -0,0 +1,67 @@
|
|||
# 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 deprecated
|
||||
os: none
|
||||
|
||||
|
||||
# Storage Class settings
|
||||
#
|
||||
# choose for wich mode (Volume, File, Dynamic File) storageclass need to be created
|
||||
volumeClass: true
|
||||
fileClass: false
|
||||
dynamicFileClass: false
|
||||
|
||||
|
||||
# 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
|
28
index.yaml
28
index.yaml
|
@ -411,6 +411,32 @@ entries:
|
|||
urls:
|
||||
- assets/k8s-triliovault-operator/k8s-triliovault-operator-v2.0.200.tgz
|
||||
version: v2.0.200
|
||||
nutanix-csi-storage:
|
||||
- annotations:
|
||||
catalog.cattle.io/certified: partner
|
||||
catalog.cattle.io/release-name: nutanix-csi-storage
|
||||
apiVersion: v1
|
||||
appVersion: 2.3.1
|
||||
created: "2021-02-25T20:17:31.426894175Z"
|
||||
description: A Helm chart for installing Nutanix CSI Volume Driver
|
||||
digest: 319009a424d1748dc5e7e32e3c0a424621f9555b3ccb0a583f204c561078ef29
|
||||
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.13.0'
|
||||
maintainers:
|
||||
- name: tuxtof
|
||||
name: nutanix-csi-storage
|
||||
urls:
|
||||
- assets/nutanix-csi-storage/nutanix-csi-storage-2.3.100.tgz
|
||||
version: 2.3.100
|
||||
openebs:
|
||||
- annotations:
|
||||
catalog.cattle.io/certified: partner
|
||||
|
@ -501,4 +527,4 @@ entries:
|
|||
urls:
|
||||
- assets/sysdig/sysdig-1.9.200.tgz
|
||||
version: 1.9.200
|
||||
generated: "2021-02-16T21:56:04.136897878Z"
|
||||
generated: "2021-02-25T20:17:31.425563557Z"
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
6a9a07be0d04a61adc72be35a160bda03f22138134d7d365095e0cc72306c436 packages/nutanix-csi-storage/nutanix-csi-storage.patch
|
||||
0580d9b6b40d1089f2e74b1e5c1747ec0391eba865596ed4637fb1071aa06ad8 packages/nutanix-csi-storage/overlay/app-readme.md
|
||||
afb36631277db7c1a5e6105b902ec9c805c794132515e59a4f6e9e5a57308a1c packages/nutanix-csi-storage/package.yaml
|
Loading…
Reference in New Issue