From a3ac949ba57af352d555f2182a4f96aaa22f8260 Mon Sep 17 00:00:00 2001 From: Maksim Paskal Date: Wed, 15 Jan 2025 16:01:15 +0100 Subject: [PATCH] feat: Increase number of nfs threads Signed-off-by: Maksim Paskal --- scripts/chart/Chart.yaml | 2 +- scripts/chart/templates/nfs-server.yaml | 10 +++------- scripts/chart/values.yaml | 7 +++++++ 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/scripts/chart/Chart.yaml b/scripts/chart/Chart.yaml index bacd327..d6a159d 100644 --- a/scripts/chart/Chart.yaml +++ b/scripts/chart/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: hcloud-k8s-ctl -version: 0.0.2 +version: 0.0.3 dependencies: - name: nfs-subdir-external-provisioner version: "4.0.16" diff --git a/scripts/chart/templates/nfs-server.yaml b/scripts/chart/templates/nfs-server.yaml index abcec0a..4a861e3 100644 --- a/scripts/chart/templates/nfs-server.yaml +++ b/scripts/chart/templates/nfs-server.yaml @@ -49,14 +49,10 @@ spec: {{ end }} containers: - name: nfs-server - # git clone git@github.com:sjiveson/nfs-server-alpine.git - # cd nfs-server-alpine - # remove --no-nfs-version 2 in nfsd.sh - # docker build . --platform=linux/amd64,linux/arm64 --pull --push -t paskalmaksim/nfs-server-alpine:$(date '+%Y%m%d')$(git rev-parse --short HEAD) - image: paskalmaksim/nfs-server-alpine:20231106ca320f7 + image: {{ printf "%s:%s" .Values.deployments.nfs.server.image.repository .Values.deployments.nfs.server.image.tag }} + imagePullPolicy: {{ .Values.deployments.nfs.server.image.pullPolicy }} env: - - name: SHARED_DIRECTORY - value: "/exports" +{{ toYaml .Values.deployments.nfs.server.env | indent 8 }} volumeMounts: - mountPath: /exports name: nfs-data diff --git a/scripts/chart/values.yaml b/scripts/chart/values.yaml index e10dc45..181d25d 100644 --- a/scripts/chart/values.yaml +++ b/scripts/chart/values.yaml @@ -9,6 +9,13 @@ deployments: nodeSelector: {} tolerations: [] affinity: {} + image: + repository: paskalmaksim/nfs-server-alpine + tag: 20250115653a8da + pullPolicy: IfNotPresent + env: + - name: SHARED_DIRECTORY + value: "/exports" nfs-subdir-external-provisioner: enabled: false registry: