Skip to content

Commit

Permalink
Update current feature
Browse files Browse the repository at this point in the history
  • Loading branch information
fjammes committed Oct 10, 2024
1 parent 1948dcb commit 5bbd340
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pgsql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}')

Expand All @@ -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
Expand Down

0 comments on commit 5bbd340

Please sign in to comment.