k3s-cluster/cluster/apps/database/minio/helm-release.yaml

118 lines
2.9 KiB
YAML
Raw Normal View History

2023-04-14 19:49:30 -04:00
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
2023-04-14 19:51:18 -04:00
name: minio
2023-04-14 19:49:30 -04:00
namespace: database
spec:
interval: 5m
chart:
spec:
2023-04-14 20:17:25 -04:00
chart: app-template
version: 1.3.x
2023-04-14 19:49:30 -04:00
sourceRef:
kind: HelmRepository
2023-04-14 20:17:25 -04:00
name: bjws-charts
2023-04-14 19:49:30 -04:00
namespace: flux-system
2023-04-14 20:17:25 -04:00
2023-04-14 19:49:30 -04:00
values:
2023-04-14 20:17:25 -04:00
image:
repository: quay.io/minio/minio
tag: RELEASE.2023-04-13T03-08-07Z
env:
TZ: "America/New_York"
MINIO_UPDATE: "off"
MINIO_BROWSER_REDIRECT_URL: "https://minio.${SECRET_NEW_DOMAIN}"
MINIO_SERVER_URL: "https://s3.${SECRET_NEW_DOMAIN}"
2023-04-14 20:17:25 -04:00
envFrom:
- secretRef:
name: minio-secret
args: ["server", "/data", "--console-address", ":9090"]
2023-04-14 19:49:30 -04:00
2023-04-14 20:17:25 -04:00
service:
main:
enabled: true
ports:
http:
port: &console-port 9090
2023-04-14 20:17:25 -04:00
api:
enabled: true
port: &api-port 9000
probes:
liveness: &probes
enabled: true
custom: true
spec:
httpGet:
path: /minio/health/live
port: *api-port
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
readiness: *probes
startup:
enabled: false
2023-04-14 19:49:30 -04:00
2023-04-14 20:17:25 -04:00
ingress:
main:
enabled: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
traefik.ingress.kubernetes.io/router.entrypoints: websecure
hosts:
- host: &console-host minio.${SECRET_NEW_DOMAIN}
paths:
- path: /
pathType: Prefix
service:
port: *console-port
tls:
- hosts:
- *console-host
secretName: wildcard-main-tls
2023-04-14 20:20:34 -04:00
2023-04-14 20:17:25 -04:00
s3:
enabled: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
traefik.ingress.kubernetes.io/router.entrypoints: websecure
hosts:
- host: &api-host s3.${SECRET_NEW_DOMAIN}
paths:
- path: /
pathType: Prefix
service:
port: *api-port
2023-04-25 20:07:10 -04:00
- host: &api-host-wildcard "*.s3.${SECRET_NEW_DOMAIN}"
paths:
- path: /
pathType: Prefix
service:
port: *api-port
2023-04-14 20:17:25 -04:00
tls:
- hosts:
- *api-host
2023-04-25 20:07:10 -04:00
- *api-host-wildcard
2023-04-14 20:17:25 -04:00
secretName: wildcard-main-tls
2023-04-14 19:49:30 -04:00
2023-04-14 20:17:25 -04:00
podSecurityContext:
runAsUser: 10000
runAsGroup: 10000
2023-04-14 20:17:25 -04:00
fsGroup: 100
fsGroupChangePolicy: "OnRootMismatch"
2023-04-14 19:49:30 -04:00
persistence:
2023-04-14 20:17:25 -04:00
storage:
enabled: true
type: hostPath
2023-04-14 20:20:34 -04:00
hostPath: /mnt/MainPool/Kubernetes/databases/minio
2023-04-14 20:17:25 -04:00
mountPath: /data
2023-04-14 19:49:30 -04:00
2023-04-14 20:17:25 -04:00
resources:
requests:
memory: 100Mi
cpu: 10m
limits:
memory: 750Mi