diff --git a/docs/modules/hive/examples/getting_started/getting_started.sh b/docs/modules/hive/examples/getting_started/getting_started.sh index c88dafa8..86eba137 100755 --- a/docs/modules/hive/examples/getting_started/getting_started.sh +++ b/docs/modules/hive/examples/getting_started/getting_started.sh @@ -39,7 +39,8 @@ echo "Install minio for S3" # tag::helm-install-minio[] helm install minio \ --version 12.6.4 \ - --namespace default \ + --namespace hive-minio-postgres \ + --create-namespace \ --set global.security.allowInsecureImages=true \ --set image.repository=bitnamilegacy/minio \ --set clientImage.repository=bitnamilegacy/minio-client \ @@ -57,7 +58,8 @@ echo "Install postgres for Hive" # tag::helm-install-postgres[] helm install postgresql oci://registry-1.docker.io/bitnamicharts/postgresql \ --version 16.5.0 \ - --namespace default \ + --namespace hive-minio-postgres \ + --create-namespace \ --set image.repository=bitnamilegacy/postgresql \ --set volumePermissions.image.repository=bitnamilegacy/os-shell \ --set metrics.image.repository=bitnamilegacy/postgres-exporter \ @@ -89,7 +91,8 @@ echo "Installing MinIO and PostgreSQL with stackablectl" stackablectl \ --stack-file stackablectl-hive-postgres-minio-stack.yaml \ --release-file release.yaml \ -stack install hive-minio-postgres +stack install hive-minio-postgres \ +--namespace hive-minio-postgres # end::stackablectl-install-minio-postgres-stack[] ;; *) diff --git a/docs/modules/hive/examples/getting_started/getting_started.sh.j2 b/docs/modules/hive/examples/getting_started/getting_started.sh.j2 index 10b1cea8..bece9696 100755 --- a/docs/modules/hive/examples/getting_started/getting_started.sh.j2 +++ b/docs/modules/hive/examples/getting_started/getting_started.sh.j2 @@ -39,7 +39,8 @@ echo "Install minio for S3" # tag::helm-install-minio[] helm install minio \ --version {{ versions.minio }} \ - --namespace default \ + --namespace hive-minio-postgres \ + --create-namespace \ --set global.security.allowInsecureImages=true \ --set image.repository=bitnamilegacy/minio \ --set clientImage.repository=bitnamilegacy/minio-client \ @@ -57,7 +58,8 @@ echo "Install postgres for Hive" # tag::helm-install-postgres[] helm install postgresql oci://registry-1.docker.io/bitnamicharts/postgresql \ --version {{ versions.postgresql }} \ - --namespace default \ + --namespace hive-minio-postgres \ + --create-namespace \ --set image.repository=bitnamilegacy/postgresql \ --set volumePermissions.image.repository=bitnamilegacy/os-shell \ --set metrics.image.repository=bitnamilegacy/postgres-exporter \ @@ -89,7 +91,8 @@ echo "Installing MinIO and PostgreSQL with stackablectl" stackablectl \ --stack-file stackablectl-hive-postgres-minio-stack.yaml \ --release-file release.yaml \ -stack install hive-minio-postgres +stack install hive-minio-postgres \ +--namespace hive-minio-postgres # end::stackablectl-install-minio-postgres-stack[] ;; *) diff --git a/docs/modules/hive/examples/getting_started/hive-minio-s3-connection.yaml b/docs/modules/hive/examples/getting_started/hive-minio-s3-connection.yaml index d6229044..114f932b 100644 --- a/docs/modules/hive/examples/getting_started/hive-minio-s3-connection.yaml +++ b/docs/modules/hive/examples/getting_started/hive-minio-s3-connection.yaml @@ -4,7 +4,7 @@ kind: S3Connection metadata: name: minio spec: - host: minio + host: minio.hive-minio-postgres.svc.cluster.local port: 9000 accessStyle: Path credentials: diff --git a/docs/modules/hive/examples/getting_started/hive-postgres-s3.yaml b/docs/modules/hive/examples/getting_started/hive-postgres-s3.yaml index 34aff112..671cf714 100644 --- a/docs/modules/hive/examples/getting_started/hive-postgres-s3.yaml +++ b/docs/modules/hive/examples/getting_started/hive-postgres-s3.yaml @@ -9,7 +9,7 @@ spec: clusterConfig: metadataDatabase: postgresql: - host: postgresql + host: postgresql.hive-minio-postgres.svc.cluster.local database: hive credentialsSecretName: hive-credentials s3: diff --git a/docs/modules/hive/examples/getting_started/hive-postgres-s3.yaml.j2 b/docs/modules/hive/examples/getting_started/hive-postgres-s3.yaml.j2 index 34aff112..671cf714 100644 --- a/docs/modules/hive/examples/getting_started/hive-postgres-s3.yaml.j2 +++ b/docs/modules/hive/examples/getting_started/hive-postgres-s3.yaml.j2 @@ -9,7 +9,7 @@ spec: clusterConfig: metadataDatabase: postgresql: - host: postgresql + host: postgresql.hive-minio-postgres.svc.cluster.local database: hive credentialsSecretName: hive-credentials s3: diff --git a/docs/modules/hive/pages/getting_started/first_steps.adoc b/docs/modules/hive/pages/getting_started/first_steps.adoc index 5a18f979..5c3e8fa8 100644 --- a/docs/modules/hive/pages/getting_started/first_steps.adoc +++ b/docs/modules/hive/pages/getting_started/first_steps.adoc @@ -26,6 +26,9 @@ An xref:concepts:s3.adoc[S3Connection] to connect to MinIO (`hive-minio-s3-conne include::example$getting_started/hive-minio-s3-connection.yaml[] ---- +MinIO and PostgreSQL run in the `hive-minio-postgres` namespace, while Hive runs in the `default` namespace. +Therefore, the S3Connection and the HiveCluster reference them by their fully qualified domain names. + Credentials for the S3Connection to log into MinIO (`hive-minio-credentials.yaml`) [source,yaml] diff --git a/docs/modules/hive/pages/getting_started/installation.adoc b/docs/modules/hive/pages/getting_started/installation.adoc index 39e3f3f2..f5da2306 100644 --- a/docs/modules/hive/pages/getting_started/installation.adoc +++ b/docs/modules/hive/pages/getting_started/installation.adoc @@ -66,7 +66,7 @@ Now call `stackablectl` and reference those two files: include::example$getting_started/getting_started.sh[tag=stackablectl-install-minio-postgres-stack] ---- -This installs MinIO and PostgreSQL as defined in the Stacks, as well as the operators. +This installs MinIO and PostgreSQL as defined in the Stacks into the `hive-minio-postgres` namespace, as well as the operators. You can now skip the <> step that follows next. TIP: Consult the xref:management:stackablectl:quickstart.adoc[Quickstart] to learn more about how to use `stackablectl`. @@ -74,6 +74,7 @@ TIP: Consult the xref:management:stackablectl:quickstart.adoc[Quickstart] to lea === Helm In order to install the MinIO and PostgreSQL dependencies via Helm, you have to deploy two charts. +Both are installed into the `hive-minio-postgres` namespace. ==== Minio ====