From 5bbd34066dd34c815d37514843102400baaaf3ce Mon Sep 17 00:00:00 2001 From: Fabrice Jammes Date: Thu, 10 Oct 2024 12:26:58 +0200 Subject: [PATCH] Update current feature --- pgsql.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pgsql.sh b/pgsql.sh index ef717ce..e192f8f 100755 --- a/pgsql.sh +++ b/pgsql.sh @@ -11,6 +11,8 @@ DIR=$(cd "$(dirname "$0")"; pwd -P) ID=0 NS="helm-$ID" +version="16.0.1" + NODE1_IP=$(kubectl get nodes --selector="! node-role.kubernetes.io/master" \ -o=jsonpath='{.items[0].status.addresses[0].address}') @@ -24,7 +26,7 @@ kubectl label ns "$NS" "helm=$NS" # Disable data persistence helm delete pgsql --namespace "$NS" || echo "WARN pgsql release not found" -helm install --version 15.0.0 --namespace "$NS" pgsql oci://registry-1.docker.io/bitnamicharts/postgresql --set primary.podLabels.tier="database",persistence.enabled="false" +helm install --version "$version" --namespace "$NS" pgsql oci://registry-1.docker.io/bitnamicharts/postgresql --set primary.podLabels.tier="database",persistence.enabled="false" kubectl run -n "$NS" nginx --image=nginx:$NGINX_VERSION -l "tier=webserver" kubectl wait --timeout=60s -n "$NS" --for=condition=Ready pods nginx