Files
auricom-home-cluster/kubernetes/apps/default/atuin/app/helmrelease.yaml
2024-02-20 19:48:34 +01:00

108 lines
2.7 KiB
YAML

---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: atuin
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 2.6.0
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
values:
controllers:
main:
replicas: 2
strategy: RollingUpdate
annotations:
reloader.stakater.com/auto: "true"
initContainers:
init-db:
image:
repository: ghcr.io/onedr0p/postgres-init
tag: 16
envFrom: &envFrom
- secretRef:
name: atuin-secret
containers:
main:
image:
repository: ghcr.io/atuinsh/atuin
tag: 18.0.1@sha256:49df5708d7fc085acf76c7868f10f25fa7ba947c8a7d3354a97207ba69c85cc3
env:
ATUIN_HOST: 0.0.0.0
ATUIN_PORT: &port 80
ATUIN_OPEN_REGISTRATION: "true"
ATUIN_METRICS__ENABLE: "true"
ATUIN_METRICS__HOST: 0.0.0.0
ATUIN_METRICS__PORT: &metricsPort 8080
ATUIN_TLS__ENABLE: "false"
envFrom: *envFrom
args: ["server", "start"]
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities: { drop: ["ALL"] }
resources:
requests:
cpu: 10m
limits:
memory: 256Mi
pod:
securityContext:
runAsUser: 568
runAsGroup: 568
runAsNonRoot: true
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
service:
main:
ports:
http:
port: *port
metrics:
port: *metricsPort
serviceMonitor:
main:
enabled: true
endpoints:
- port: metrics
scheme: http
path: /metrics
interval: 1m
scrapeTimeout: 10s
ingress:
main:
enabled: true
className: "nginx"
annotations:
hajimari.io/icon: mdi:powershell
hosts:
- host: &host "sh.${SECRET_CLUSTER_DOMAIN}"
paths:
- path: /
service:
name: main
port: http
tls:
- hosts:
- *host
persistence:
config:
enabled: true
type: emptyDir