Skip to content
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
10 changes: 5 additions & 5 deletions playbooks/add-ons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
block:
- name: Setup Mounts for NFS
shell: |
mkdir -p /data/nfs
chown nobody:nogroup /data/nfs
chmod 2770 /data/nfs
mkdir -p {{ nfs_path | default('/data/nfs') }}
chown nobody:nogroup {{ nfs_path | default('/data/nfs') }}
chmod 2770 {{ nfs_path | default('/data/nfs') }}
retries: 5
delay: 5
register: setup_nfs_mounts
Expand All @@ -67,7 +67,7 @@
lineinfile:
path: /etc/exports
insertafter: EOF
line: "/data/nfs *(rw,sync,no_subtree_check,no_root_squash,insecure)"
line: "{{ nfs_path | default('/data/nfs') }} *(rw,sync,no_subtree_check,no_root_squash,insecure)"
retries: 5
delay: 5
register: update_nfs_exports
Expand Down Expand Up @@ -109,7 +109,7 @@
shell: |
helm repo add nfs-subdir-external-provisioner https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner --force-update
helm repo update
helm install --version {{ nfs_provisioner }} nfs-subdir-external-provisioner nfs-subdir-external-provisioner/nfs-subdir-external-provisioner --set nfs.server={{ ansible_default_ipv4.address }} --set nfs.path=/data/nfs --set storageClass.archiveOnDelete=false --create-namespace --namespace nfs-client
helm install --version {{ nfs_provisioner }} nfs-subdir-external-provisioner nfs-subdir-external-provisioner/nfs-subdir-external-provisioner --set nfs.server={{ ansible_default_ipv4.address }} --set nfs.path={{ nfs_path | default('/data/nfs') }} --set storageClass.archiveOnDelete=false --create-namespace --namespace nfs-client
sleep 10
kubectl patch storageclass nfs-client -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
retries: 5
Expand Down
2 changes: 2 additions & 0 deletions playbooks/cns_values_14.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ lws: no

# Local Path Provisioner and NFS Provisoner as Storage option
storage: no
# NFS storage path
nfs_path: "/data/nfs"

# Monitoring Stack Prometheus/Grafana with GPU Metrics and Elastic Logging stack
monitoring: no
Expand Down
2 changes: 2 additions & 0 deletions playbooks/cns_values_14.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ lws: no

# Local Path Provisioner and NFS Provisoner as Storage option
storage: no
# NFS storage path
nfs_path: "/data/nfs"

# Monitoring Stack Prometheus/Grafana with GPU Metrics and Elastic Logging stack
monitoring: no
Expand Down
2 changes: 2 additions & 0 deletions playbooks/cns_values_14.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ lws: no

# Local Path Provisioner and NFS Provisoner as Storage option
storage: no
# NFS storage path
nfs_path: "/data/nfs"

# Monitoring Stack Prometheus/Grafana with GPU Metrics and Elastic Logging stack
monitoring: no
Expand Down
2 changes: 2 additions & 0 deletions playbooks/cns_values_15.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ lws: no

# Local Path Provisioner and NFS Provisoner as Storage option
storage: no
# NFS storage path
nfs_path: "/data/nfs"

# Monitoring Stack Prometheus/Grafana with GPU Metrics and Elastic Logging stack
monitoring: no
Expand Down
2 changes: 2 additions & 0 deletions playbooks/cns_values_15.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ lws: no

# Local Path Provisioner and NFS Provisoner as Storage option
storage: no
# NFS storage path
nfs_path: "/data/nfs"

# Monitoring Stack Prometheus/Grafana with GPU Metrics and Elastic Logging stack
monitoring: no
Expand Down
2 changes: 2 additions & 0 deletions playbooks/cns_values_16.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ lws: no

# Local Path Provisioner and NFS Provisoner as Storage option
storage: no
# NFS storage path
nfs_path: "/data/nfs"

# Monitoring Stack Prometheus/Grafana with GPU Metrics and Elastic Logging stack
monitoring: no
Expand Down