Add MinIO manifests

This commit is contained in:
Björn Busse 2024-02-19 14:34:26 +01:00
parent 9db32d41b2
commit e16373d94d
1 changed files with 20 additions and 1 deletions

21
deploy
View File

@ -5,7 +5,8 @@
set -o pipefail
FLUX_MANIFEST_PATH="clusters/minikube"
# Namespaces
FLUX_MANIFEST_PATH="clusters/dev"
readonly FLUX_MANIFEST_PATH
APP_NAMESPACE="app"
readonly APP_NAMESPACE
@ -15,6 +16,10 @@ MONITORING_NAMESPACE="monitoring"
readonly MONITORING_NAMESPACE
SPINNAKER_NAMESPACE="cicd"
readonly SPINNAKER_NAMESPACE
MINIO_NAMESPACE="monitoring"
readonly MINIO_NAMESPACE
# Helm Chart versions
PGSQLHA_CHART_VERSION="12.3.7"
readonly PGSQLHA_CHART_VERSION
PGSQLHA_OCI_URL="oci://registry-1.docker.io/bitnamicharts/postgresql-ha"
@ -29,6 +34,8 @@ SPINNAKER_OPERATOR_CHART_VERSION="1.8.11"
readonly SPINNAKER_OPERATOR_CHART_VERSION
TRIVY_CHART_VERSION="0.18.4"
readonly TRIVY_CHART_VERSION
MINIO_CHART_VERSION="4.3.7"
readonly MINIO_CHART_VERSION
mkdir -p "${FLUX_MANIFEST_PATH}"
@ -108,3 +115,15 @@ printf "Using flux to create Sources and HelmReleases\n"
--namespace "${SECSCAN_NAMESPACE}" \
--source=HelmRepository/aqua \
--export > "${FLUX_MANIFEST_PATH}/trivy.yaml"
# MinIO Object Storage
./flux create source helm minio \
--url minio-operator https://operator.min.io \
--namespace "${MINIO_NAMESPACE}" \
--export > "${FLUX_MANIFEST_PATH}/source_minio.yaml"
./flux create helmrelease minio \
--chart minio-operator \
--chart-version "${MINIO_CHART_VERSION}" \
--namespace "${MINIO_NAMESPACE}" \
--source=HelmRepository/ \
--export > "${FLUX_MANIFEST_PATH}/minio.yaml"