Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(examples): add a simple usage for operator #156

Merged
merged 1 commit into from
Nov 18, 2024
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
66 changes: 66 additions & 0 deletions examples/simple-hive-cluster-postgres-s3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# helm install secret-operator \
# secret-operator \
# --repo https://zncdatadev.github.io/kubedoop-helm-charts/
# helm install minio \
# minio \
# --repo https://charts.bitnami.com/bitnami \
# --set auth.rootUser=minio-access-key \
# --set auth.rootPassword=minio-secret-key
# helm install hive bitnami/postgresql --version=12.1.5 \
# --set postgresqlUsername=hive \
# --set postgresqlPassword=hive \
# --set postgresqlDatabase=hive
---
apiVersion: hive.kubedoop.dev/v1alpha1
kind: HiveCluster
metadata:
name: simple-hive-postgres
spec:
image:
productVersion: 4.0.0
stackableVersion: 0.0.0-dev
clusterConfig:
database:
connString: jdbc:derby:;databaseName=/tmp/hive;create=true
credentialsSecret: hive-credentials
dbType: derby
s3:
inline:
host: test-minio
port: 9000
accessStyle: Path
credentials:
secretClass: simple-hive-s3-secret-class
metastore:
roleGroups:
default:
replicas: 1
---
apiVersion: secrets.kubedoop.dev/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.kubedoop.dev/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: APP
password: mine
34 changes: 34 additions & 0 deletions examples/simple-hive-cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
apiVersion: hive.kubedoop.dev/v1alpha1
kind: HiveCluster
metadata:
name: simple-hive-derby
spec:
image:
productVersion: 4.0.0
stackableVersion: 0.0.0-dev
clusterConfig:
database:
connString: jdbc:derby:;databaseName=/tmp/hive;create=true
credentialsSecret: hive-credentials
dbType: derby
metastore:
roleGroups:
default:
replicas: 1
config:
resources:
cpu:
min: 300m
max: "2"
memory:
limit: 5Gi
---
apiVersion: v1
kind: Secret
metadata:
name: hive-credentials
type: Opaque
stringData:
username: APP
password: mine
Loading