Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions docs/modules/hive/examples/getting_started/getting_started.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand Down Expand Up @@ -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[]
;;
*)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand Down Expand Up @@ -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[]
;;
*)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
clusterConfig:
metadataDatabase:
postgresql:
host: postgresql
host: postgresql.hive-minio-postgres.svc.cluster.local
database: hive
credentialsSecretName: hive-credentials
s3:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
clusterConfig:
metadataDatabase:
postgresql:
host: postgresql
host: postgresql.hive-minio-postgres.svc.cluster.local
database: hive
credentialsSecretName: hive-credentials
s3:
Expand Down
3 changes: 3 additions & 0 deletions docs/modules/hive/pages/getting_started/first_steps.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 2 additions & 1 deletion docs/modules/hive/pages/getting_started/installation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,15 @@ 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 <<Stackable Operators>> step that follows next.

TIP: Consult the xref:management:stackablectl:quickstart.adoc[Quickstart] to learn more about how to use `stackablectl`.

=== 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 ====

Expand Down