add minio tenant
This commit is contained in:
18
deploy/grafana/secret.yaml
Normal file
18
deploy/grafana/secret.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: grafana-db-secret
|
||||
namespace: grafana
|
||||
type: Opaque
|
||||
data:
|
||||
username: Z3JhZmFuYQ==
|
||||
password: dndyMGc5aWpoMGIzaXJka3ZqMG1ndXZoM3I=
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: grafana-oauth-secret
|
||||
namespace: grafana
|
||||
type: Opaque
|
||||
data:
|
||||
client-secret: VFVEYU5uY091b1Y1QzFmeUJaeXN3ZzNEU3VYWU9laEQ=
|
||||
9
deploy/keycloak/secret.yaml
Normal file
9
deploy/keycloak/secret.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: keycloak-db-secret
|
||||
namespace: keycloak
|
||||
type: Opaque
|
||||
data:
|
||||
username: a2V5Y2xvYWs= # base64 encoded
|
||||
password: dTgyNXFDTnhmckJTY0tUb1RkM1c5ektWUHhwVnNpN0w= # base64 encoded
|
||||
37
deploy/minio-tenant/ingress.yaml
Normal file
37
deploy/minio-tenant/ingress.yaml
Normal file
@@ -0,0 +1,37 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: minio-ingress
|
||||
namespace: minio-tenant
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: nginx
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
|
||||
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
|
||||
spec:
|
||||
rules:
|
||||
- host: s3.minio.panic.haus
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: myminio
|
||||
port:
|
||||
number: 443
|
||||
- host: console.minio.panic.haus
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: myminio-console
|
||||
port:
|
||||
number: 9443
|
||||
tls:
|
||||
- hosts:
|
||||
- s3.minio.panic.haus
|
||||
- console.minio.panic.haus
|
||||
secretName: minio-tls
|
||||
10
deploy/minio-tenant/kustomization.yaml
Normal file
10
deploy/minio-tenant/kustomization.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
namespace: minio-tenant
|
||||
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- secret.yaml
|
||||
- tenant.yaml
|
||||
- ingress.yaml
|
||||
4
deploy/minio-tenant/namespace.yaml
Normal file
4
deploy/minio-tenant/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: minio-tenant
|
||||
22
deploy/minio-tenant/secret.yaml
Normal file
22
deploy/minio-tenant/secret.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: storage-configuration
|
||||
namespace: minio-tenant
|
||||
stringData:
|
||||
config.env: |-
|
||||
export MINIO_ROOT_USER="minio"
|
||||
export MINIO_ROOT_PASSWORD="minio123"
|
||||
export MINIO_STORAGE_CLASS_STANDARD="EC:2"
|
||||
export MINIO_BROWSER="on"
|
||||
type: Opaque
|
||||
---
|
||||
apiVersion: v1
|
||||
data:
|
||||
CONSOLE_ACCESS_KEY: Y29uc29sZQ==
|
||||
CONSOLE_SECRET_KEY: Y29uc29sZTEyMw==
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: storage-user
|
||||
namespace: minio-tenant
|
||||
type: Opaque
|
||||
80
deploy/minio-tenant/tenant.yaml
Normal file
80
deploy/minio-tenant/tenant.yaml
Normal file
@@ -0,0 +1,80 @@
|
||||
apiVersion: minio.min.io/v2
|
||||
kind: Tenant
|
||||
metadata:
|
||||
annotations:
|
||||
prometheus.io/path: /minio/v2/metrics/cluster
|
||||
prometheus.io/port: "9000"
|
||||
prometheus.io/scrape: "true"
|
||||
labels:
|
||||
app: minio
|
||||
name: myminio
|
||||
namespace: minio-tenant
|
||||
spec:
|
||||
exposeServices:
|
||||
console: true
|
||||
minio: true
|
||||
certConfig: {}
|
||||
configuration:
|
||||
name: storage-configuration
|
||||
env: []
|
||||
externalCaCertSecret: []
|
||||
externalCertSecret: []
|
||||
externalClientCertSecrets: []
|
||||
features:
|
||||
bucketDNS: false
|
||||
domains: {}
|
||||
image: quay.io/minio/minio:RELEASE.2025-03-12T18-04-18Z
|
||||
imagePullSecret: {}
|
||||
mountPath: /export
|
||||
podManagementPolicy: Parallel
|
||||
pools:
|
||||
- affinity:
|
||||
nodeAffinity: {}
|
||||
podAffinity: {}
|
||||
podAntiAffinity: {}
|
||||
containerSecurityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
runAsGroup: 1000
|
||||
runAsNonRoot: true
|
||||
runAsUser: 1000
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
name: pool-0
|
||||
nodeSelector: {}
|
||||
resources: {}
|
||||
securityContext:
|
||||
fsGroup: 1000
|
||||
fsGroupChangePolicy: OnRootMismatch
|
||||
runAsGroup: 1000
|
||||
runAsNonRoot: true
|
||||
runAsUser: 1000
|
||||
servers: 4
|
||||
tolerations: []
|
||||
topologySpreadConstraints: []
|
||||
volumeClaimTemplate:
|
||||
apiVersion: v1
|
||||
kind: persistentvolumeclaims
|
||||
metadata: {}
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
storageClassName: longhorn
|
||||
status: {}
|
||||
volumesPerServer: 1
|
||||
priorityClassName: ""
|
||||
requestAutoCert: true
|
||||
serviceAccountName: ""
|
||||
serviceMetadata:
|
||||
consoleServiceAnnotations: {}
|
||||
consoleServiceLabels: {}
|
||||
minioServiceAnnotations: {}
|
||||
minioServiceLabels: {}
|
||||
subPath: ""
|
||||
users:
|
||||
- name: storage-user
|
||||
9
deploy/n8n/secret.yaml
Normal file
9
deploy/n8n/secret.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: n8n-db-secret
|
||||
namespace: n8n
|
||||
type: Opaque
|
||||
data:
|
||||
username: bjhu # base64 encoded
|
||||
password: SHFCTkdHcndzN1VFSk5tUDJRa3lIWGF6YkJaN3lTUkY= # base64 encoded
|
||||
Reference in New Issue
Block a user