Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(media/overseer): upgrade overseer kustomization and helmrelease #1988

Merged
merged 1 commit into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kubernetes/main/apps/media/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resources:
- ./namespace.yaml
# Flux-Kustomizations
- ./bazarr
- ./overseerr
- ./overseerr/ks.yaml
- ./plex/ks.yaml
- ./prowlarr
- ./qbittorrent
Expand Down
103 changes: 68 additions & 35 deletions kubernetes/main/apps/media/overseerr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta1.json
# 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: overseerr
namespace: media
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 1.5.1
version: 2.4.0
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
maxHistory: 2
install:
createNamespace: true
remediation:
retries: 3
upgrade:
Expand All @@ -32,15 +29,51 @@ spec:
- name: volsync
namespace: volsync
values:
controller:
type: statefulset
image:
repository: ghcr.io/sct/overseerr
tag: 1.33.2
env:
TZ: America/Santiago
LOG_LEVEL: "info"
PORT: &port 80
controllers:
main:
annotations:
reloader.stakater.com/auto: "true"
containers:
main:
image:
repository: ghcr.io/sct/overseerr
tag: 1.33.2@sha256:714ea6db2bc007a2262d112bef7eec74972eb33d9c72bddb9cbd98b8742de950
env:
TZ: America/Santiago
LOG_LEVEL: "info"
PORT: &port 80
probes:
liveness: &probes
enabled: true
custom: true
spec:
httpGet:
path: /api/v1/status
port: *port
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
readiness: *probes
startup:
enabled: false
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities: { drop: ["ALL"] }
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
memory: 2Gi
pod:
securityContext:
runAsUser: 568
runAsGroup: 568
runAsNonRoot: true
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
service:
main:
ports:
Expand All @@ -49,31 +82,31 @@ spec:
ingress:
main:
enabled: true
ingressClassName: external
className: external
annotations:
external-dns.alpha.kubernetes.io/target: ingress.donoso.family
external-dns.alpha.kubernetes.io/target: external.donoso.family
hosts:
- host: &host requests.donoso.family
- host: &host "{{ .Release.Name }}.donoso.family"
paths:
- path: /
pathType: Prefix
service:
name: main
port: http
- host: &customHost requests.donoso.family
paths:
- path: /
service:
name: main
port: http
tls:
- hosts:
- *host
podSecurityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
volumeClaimTemplates:
- name: config
mountPath: /app/config
accessMode: ReadWriteOnce
size: 1Gi
storageClass: ceph-block
resources:
requests:
cpu: 10m
memory: 250Mi
limits:
memory: 1500Mi
- *customHost
persistence:
config:
enabled: true
existingClaim: config-overseerr-0
globalMounts:
- path: /app/config
tmp:
type: emptyDir
21 changes: 21 additions & 0 deletions kubernetes/main/apps/media/overseerr/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app overseerr
namespace: flux-system
spec:
targetNamespace: media
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./kubernetes/main/apps/media/overseerr/app
prune: true
sourceRef:
kind: GitRepository
name: home-kubernetes
wait: false
interval: 30m
retryInterval: 1m
timeout: 5m
5 changes: 0 additions & 5 deletions kubernetes/main/apps/media/overseerr/kustomization.yaml

This file was deleted.