-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsimple-hive-cluster-postgres-s3.yaml
More file actions
76 lines (76 loc) · 2.19 KB
/
Copy pathsimple-hive-cluster-postgres-s3.yaml
File metadata and controls
76 lines (76 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# helm install secret-operator \
# oci://oci.stackable.tech/sdp-charts/secret-operator
# helm install listener-operator \
# oci://oci.stackable.tech/sdp-charts/listener-operator
# helm install hive-operator \
# oci://oci.stackable.tech/sdp-charts/hive-operator
# helm install minio \
# oci://registry-1.docker.io/bitnamicharts/minio \
# --set image.repository=bitnamilegacy/minio \
# --set clientImage.repository=bitnamilegacy/minio-client \
# --set defaultInitContainers.volumePermissions.image.repository=bitnamilegacy/os-shell \
# --set console.image.repository=bitnamilegacy/minio-object-browser \
# --set global.security.allowInsecureImages=true \
# --set auth.rootUser=minio-access-key \
# --set auth.rootPassword=minio-secret-key
# helm install hive bitnami/postgresql --version=12.1.5 \
# --set image.repository=bitnamilegacy/postgresql \
# --set volumePermissions.image.repository=bitnamilegacy/os-shell \
# --set metrics.image.repository=bitnamilegacy/postgres-exporter \
# --set global.security.allowInsecureImages=true \
# --set auth.username=hive \
# --set auth.password=hive \
# --set auth.database=hive
---
apiVersion: hive.stackable.tech/v1alpha1
kind: HiveCluster
metadata:
name: simple-hive-postgres
spec:
image:
productVersion: 4.2.0
clusterConfig:
database:
connString: jdbc:postgresql://hive-postgresql.default.svc.cluster.local:5432/hive
credentialsSecret: hive-credentials
dbType: postgres
s3:
inline:
host: test-minio
port: 9000
accessStyle: Path
credentials:
secretClass: simple-hive-s3-secret-class
metastore:
roleGroups:
default:
replicas: 1
---
apiVersion: secrets.stackable.tech/v1alpha1
kind: SecretClass
metadata:
name: simple-hive-s3-secret-class
spec:
backend:
k8sSearch:
searchNamespace:
pod: {}
---
apiVersion: v1
kind: Secret
metadata:
name: simple-hive-s3-secret
labels:
secrets.stackable.tech/class: simple-hive-s3-secret-class
stringData:
accessKey: minio-access-key
secretKey: minio-secret-key
---
apiVersion: v1
kind: Secret
metadata:
name: hive-credentials
type: Opaque
stringData:
username: hive
password: hive