Skip to content

Commit

Permalink
Enable multiple csi
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed May 20, 2024
1 parent 0ab8286 commit 25c6b0a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
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

0 comments on commit 25c6b0a

Please sign in to comment.