🚀 attic

This commit is contained in:
auricom
2023-10-01 23:53:59 +02:00
parent 3e59cb4c27
commit 25cff0ad81
10 changed files with 506 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta1.json
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: &app attic-garbage-collector
namespace: default
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 1.5.1
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
maxHistory: 2
install:
createNamespace: true
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
values:
controller:
replicas: 1
strategy: Recreate
annotations:
configmap.reloader.stakater.com/reload: &configMap attic-configmap
secret.reloader.stakater.com/reload: &secret attic-secret
image:
repository: ghcr.io/zhaofengli/attic
tag: latest@sha256:06d9ca943cfe38ef954cbe2dd453dac0788f55661f84c31254a3a8044aa3100f
args: ["-f", "/config/server.toml", "--mode", "garbage-collector" ]
envFrom:
- secretRef:
name: *secret
service:
main:
ports:
http:
port: &port 8080
probes:
liveness: &probe
enabled: false
readiness: *probe
startup: *probe
persistence:
config:
enabled: true
type: configMap
name: *configMap
subPath: server.toml
mountPath: /config/server.toml
readOnly: false
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app.kubernetes.io/name: *app
resources:
requests:
cpu: 50m
memory: 200Mi
limits:
memory: 1Gi

View File

@@ -0,0 +1,7 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: default
resources:
- ./helmrelease.yaml