Skip to content

Commit

Permalink
feat: deploy valhalla
Browse files Browse the repository at this point in the history
  • Loading branch information
fr3fou committed Nov 15, 2024
1 parent 2b1d8cd commit f5dba87
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/valhalla/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./valhalla.yaml
namespace: apps
62 changes: 62 additions & 0 deletions apps/valhalla/valhalla.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: &app valhalla
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 3.4.0
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: apps
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
values:
controllers:
valhalla:
containers:
app:
image:
repository: ghcr.io/nilsnolde/docker-valhalla/valhalla
tag: latest@sha256:213e31a04f832782059f0dec2b5714700a384d7bd3c13918a303e713e7fc31d6
service:
app:
controller: *app
ports:
http:
port: 8002
ingress:
app:
className: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt
nginx.ingress.kubernetes.io/whitelist-source-range: ${PRIVATE_WHITELIST}
hosts:
- host: &host "{{ .Release.Name }}.${PERSONAL_DOMAIN}"
paths:
- path: /
service:
identifier: app
port: http
tls:
- hosts:
- *host
secretName: letsencrypt-valhalla
persistence:
customFiles:
enabled: true
type: hostPath
hostPath: /home/simo/Valhalla
globalMounts:
- path: /custom_files
1 change: 1 addition & 0 deletions clusters/anton/apps/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ resources:
- ./windmill.yaml
- ./alloy.yaml
- ./suwayomi.yaml
- ./valhalla.yaml
14 changes: 14 additions & 0 deletions clusters/anton/apps/valhalla.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: valhalla
namespace: flux-system
spec:
interval: 10m0s
sourceRef:
kind: GitRepository
name: flux-system
path: ./apps/valhalla
prune: true
dependsOn:
- name: apps-base

0 comments on commit f5dba87

Please sign in to comment.