* Fix bitnami chart dependencies There have been problems with the old style bitami repo. Bitnami is suggesting users switch to oci for their charts. Signed-off-by: Kevin Fox <[email protected]> * Fix repos Signed-off-by: Kevin Fox <[email protected]> * Fix repos Signed-off-by: Kevin Fox <[email protected]> * Fix updater script Signed-off-by: Kevin Fox <[email protected]> --------- Signed-off-by: Kevin Fox <[email protected]>
50 lines
1.5 KiB
Bash
Executable File
50 lines
1.5 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -xe
|
|
|
|
SCRIPT="$(readlink -f "$0")"
|
|
SCRIPTPATH="$(dirname "${SCRIPT}")"
|
|
DEPS="${SCRIPTPATH}/dependencies"
|
|
|
|
# shellcheck source=/dev/null
|
|
source "${SCRIPTPATH}/../scripts/parse-versions.sh"
|
|
|
|
helm_install=(helm upgrade --install --create-namespace)
|
|
|
|
# namespace override
|
|
kubectl create namespace spire-system || true
|
|
kubectl create namespace spire-server || true
|
|
|
|
# nginx ingress
|
|
"${helm_install[@]}" ingress-nginx ingress-nginx --version "${VERSION_INGRESS_NGINX}" --repo "${HELM_REPO_INGRESS_NGINX}" \
|
|
--namespace ingress-nginx \
|
|
--set controller.extraArgs.enable-ssl-passthrough=
|
|
kubectl wait --namespace ingress-nginx --for=condition=ready --timeout 60s pod --selector=app.kubernetes.io/component=controller
|
|
|
|
# prometheus
|
|
"${helm_install[@]}" kube-prometheus-stack kube-prometheus-stack \
|
|
--namespace prometheus \
|
|
--version "${VERSION_KUBE_PROMETHEUS_STACK}" \
|
|
--repo "${HELM_REPO_KUBE_PROMETHEUS_STACK}" \
|
|
--wait
|
|
|
|
# cert-manager
|
|
"${helm_install[@]}" cert-manager cert-manager --version "$VERSION_CERT_MANAGER" --repo "$HELM_REPO_CERT_MANAGER" \
|
|
--namespace cert-manager \
|
|
--set installCRDs=true \
|
|
--wait
|
|
|
|
# external database
|
|
|
|
# mysql
|
|
"${helm_install[@]}" mysql "${HELM_REGISTRY_MYSQL}" --version "$VERSION_MYSQL" \
|
|
--namespace mysql \
|
|
--values "${DEPS}/mysql.yaml" \
|
|
--wait
|
|
|
|
# postgres
|
|
"${helm_install[@]}" postgresql "${HELM_REGISTRY_POSTGRESQL}" --version "$VERSION_POSTGRESQL" \
|
|
--namespace postgresql \
|
|
--values "${DEPS}/postgresql.yaml" \
|
|
--wait
|