Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable multiple csi #180

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ kube_nfs_path: /pv
kube_nfs_server: kubeserver.localdomain
# Set reclaimPolicy of NFS StorageClass Delete or Retain
kube_nfs_reclaim_policy: Delete
# Set default storage class
kube_nfs_set_default: true
# Extra options for the flannel plugin
kube_flanneld_extra_args: []
# Enable to install and manage Certificates with Cert-manager
Expand Down Expand Up @@ -143,7 +145,7 @@ cilium_hubble_ui_ingress_host: ""
cilium_hubble_ui_ingress_tls_host: ""
cilium_hubble_ui_ingress_annotations: {}

# Longhorn support, if it is activated, the NFS client will be not installed
# Longhorn support
kube_install_longhorn: false
# Install ingress for Longhorn UI
kube_install_longhorn_ingress: false
Expand All @@ -153,3 +155,5 @@ kube_longhorn_ingress_auth: "longhorn:$apr1$e6BbrO3Q$llbCJ6cWJS/RWnLGYQhxX."
longhorn_num_replicas: 3
# Set reclaimPolicy of Longhorn StorageClass Delete or Retain
longhorn_reclaim_policy: Delete
# Set default storage class
longhorn_set_default: false
2 changes: 2 additions & 0 deletions templates/longhorn.j2
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ data:
apiVersion: storage.k8s.io/v1
metadata:
name: longhorn
{% if longhorn_set_default %}
annotations:
storageclass.kubernetes.io/is-default-class: "true"
{% endif %}
provisioner: driver.longhorn.io
allowVolumeExpansion: true
reclaimPolicy: "{{ longhorn_reclaim_policy }}"
Expand Down
2 changes: 2 additions & 0 deletions templates/nfs-client.j2
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: managed-nfs-storage
{% if kube_nfs_set_default %}
annotations:
storageclass.kubernetes.io/is-default-class: "true"
{% endif %}
provisioner: fuseim.pri/ifs # or choose another name, must match deployment's env PROVISIONER_NAME'
parameters:
archiveOnDelete: "false"
Expand Down
Loading