Skip to content
Snippets Groups Projects
Commit cab24ccc authored by Guilherme Carbonari Boneti's avatar Guilherme Carbonari Boneti
Browse files

[add] files

parent 4d00f77c
No related branches found
No related tags found
No related merge requests found
---
apiVersion: secrets.stackable.tech/v1alpha1
kind: SecretClass
metadata:
name: hive-s3-secret-class
spec:
backend:
k8sSearch:
searchNamespace:
pod: {}
---
apiVersion: v1
kind: Secret
metadata:
name: hive-s3-secret
labels:
secrets.stackable.tech/class: hive-s3-secret-class
stringData:
accessKey: hive
secretKey: hivehive
---
apiVersion: s3.stackable.tech/v1alpha1
kind: S3Connection
metadata:
name: minio
spec:
host: minio
port: 9000
accessStyle: Path
credentials:
secretClass: hive-s3-secret-class
---
apiVersion: hive.stackable.tech/v1alpha1
kind: HiveCluster
metadata:
name: hive-postgres-s3
spec:
image:
productVersion: 3.1.3
clusterConfig:
database:
connString: jdbc:postgresql://postgresql:5432/hive
credentialsSecret: hive-credentials
dbType: postgres
s3:
reference: minio
metastore:
roleGroups:
default:
replicas: 1
---
apiVersion: v1
kind: Secret
metadata:
name: hive-credentials
type: Opaque
stringData:
username: hive
password: hive
apiVersion: v1
kind: Namespace
metadata:
name: minio-dev # Change this value if you want a different namespace name
labels:
name: minio-dev # Change this value to match metadata.name
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: minio-pvc
namespace: minio-dev
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: minio-deployment
namespace: minio-dev
labels: # Corrigido para "labels" no plural
app: minio
spec:
replicas: 1
selector:
matchLabels:
app: minio
template:
metadata:
labels:
app: minio
spec:
containers:
- name: minio
image: quay.io/minio/minio:latest
args:
- "server"
- "/data"
- "--console-address=:9090"
env:
- name: MINIO_ROOT_USER
value: "minioadmin" # Defina sua chave de acesso
- name: MINIO_ROOT_PASSWORD
value: "minioadmin" # Defina sua chave secreta
volumeMounts:
- mountPath: /data
name: minio-storage
volumes:
- name: minio-storage
persistentVolumeClaim:
claimName: minio-pvc
---
releaseName: minio
name: minio
repo:
name: minio
url: https://charts.min.io/
version: 4.0.2
options:
rootUser: root
rootPassword: rootroot
mode: standalone
users:
- accessKey: hive
secretKey: hivehive
policy: readwrite
buckets:
- name: hive
policy: public
resources:
requests:
memory: 2Gi
service:
type: NodePort
nodePort: null
consoleService:
type: NodePort
nodePort: null
---
releaseName: postgresql
name: postgresql
repo:
name: bitnami
url: https://charts.bitnami.com/bitnami/
version: 12.1.5
options:
volumePermissions:
enabled: false
securityContext:
runAsUser: auto
primary:
extendedConfiguration: |
password_encryption=md5
auth:
username: hive
password: hive
database: hive
---
releases:
hive-getting-started:
releaseDate: 2023-03-14
description: Demo / Test release for Hive getting started guide
products:
commons:
operatorVersion: 24.7.0
hive:
operatorVersion: 24.7.0
listener:
operatorVersion: 24.7.0
secret:
operatorVersion: 24.7.0
---
stacks:
hive-minio-postgres:
stackableRelease: hive-getting-started
description: Stack for Hive getting started guide
stackableOperators:
- commons
- listener
- secret
- hive
labels:
- minio
- postgresql
manifests:
- helmChart: minio-stack.yaml
- helmChart: postgres-stack.yaml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment