Skip to content

Commit

Permalink
libreddit
Browse files Browse the repository at this point in the history
  • Loading branch information
drewpayment committed Mar 25, 2024
1 parent 7310e33 commit 328ce2b
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kubernetes/apps/apps/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./namespace.yaml
- ./libreddit/ks.yaml
80 changes: 80 additions & 0 deletions kubernetes/apps/apps/libreddit/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: libreddit
namespace: default
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 1.5.1
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
install:
createNamespace: true
remediation:
retries: 5
upgrade:
remediation:
retries: 5
values:
controller:
replicas: 1

image:
repository: ghcr.io/auricom/libreddit
tag: 0.30.1@sha256:4106b2aa4d9ce76f16ea9db1aa75ace2e9c80c067f698dad2f92c68c7cd94c30

env:
LIBREDDIT_DEFAULT_SHOW_NSFW: "on"
LIBREDDIT_DEFAULT_WIDE: "on"

service:
main:
ports:
http:
port: &port 8080

ingress:
main:
enabled: true
ingressClassName: nginx
annotations:
external-dns.alpha.kubernetes.io/target: "ingress.${SECRET_DOMAIN}"
external-dns.home.arpa/enabled: "true"
hajimari.io/icon: video-input-antenna
hosts:
- host: &host "libreddit.${SECRET_DOMAIN}"
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- *host

probes:
liveness: &probes
enabled: true
custom: true
spec:
httpGet:
path: /settings
port: *port
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
readiness: *probes
startup:
enabled: false

resources:
requests:
cpu: 5m
memory: 50Mi
limits:
memory: 250Mi
5 changes: 5 additions & 0 deletions kubernetes/apps/apps/libreddit/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:
- helmrelease.yaml
7 changes: 7 additions & 0 deletions kubernetes/apps/apps/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: apps
labels:
kustomize.toolkit.fluxcd.io/prune: disabled

0 comments on commit 328ce2b

Please sign in to comment.