Compare commits
20 commits
68b6c98ea6
...
096534120c
Author | SHA1 | Date | |
---|---|---|---|
096534120c | |||
d8bc1b0846 | |||
fdc5f9c013 | |||
d23065af9e | |||
dc93791c99 | |||
e813e5a3a9 | |||
d0a631d430 | |||
6598e55d95 | |||
3ea1d2feee | |||
594c5c618f | |||
c2fb8c2864 | |||
24a60c6c1f | |||
7a96b01ac1 | |||
2fce057054 | |||
87fa9d0efa | |||
a3bdedc3df | |||
da0ad97810 | |||
89b093b947 | |||
03b2c2b14f | |||
9335c045cd |
9 changed files with 53 additions and 15 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
# all invalid values, pushed to git for testing with flux.
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
@ -74,26 +74,30 @@ spec:
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
---
|
---
|
||||||
apiVersion: traefik.io/v1alpha1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: IngressRoute
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: bazarr
|
name: bazarr
|
||||||
namespace: default
|
namespace: default
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: traefik-external
|
kubernetes.io/ingress.class: traefik-external
|
||||||
spec:
|
spec:
|
||||||
entryPoints:
|
rules:
|
||||||
- websecure
|
- host: "bazarr.mafyuh.com"
|
||||||
routes:
|
http:
|
||||||
- match: Host(`bazarr.${LOCAL_DOMAIN}`)
|
paths:
|
||||||
kind: Rule
|
- path: /
|
||||||
services:
|
pathType: Prefix
|
||||||
- name: headless-bazarr
|
backend:
|
||||||
port: 6767
|
service:
|
||||||
middlewares:
|
name: headless-bazarr
|
||||||
- name: default-headers
|
port:
|
||||||
|
number: 6767
|
||||||
tls:
|
tls:
|
||||||
secretName: local-mafyuh-com-production-tls
|
- hosts:
|
||||||
|
- "bazarr.local.mafyuh.com"
|
||||||
|
secretName: local-mafyuh-com-production-tls
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: traefik.io/v1alpha1
|
apiVersion: traefik.io/v1alpha1
|
||||||
kind: IngressRoute
|
kind: IngressRoute
|
||||||
|
|
|
@ -6,3 +6,4 @@ metadata:
|
||||||
data:
|
data:
|
||||||
LOCAL_DOMAIN: "local.mafyuh.com"
|
LOCAL_DOMAIN: "local.mafyuh.com"
|
||||||
PUBLIC_DOMAIN: "mafyuh.com"
|
PUBLIC_DOMAIN: "mafyuh.com"
|
||||||
|
NAS_IP: "10.0.0.10"
|
||||||
|
|
4
cluster/apps/production/radarr/kustomization.yaml
Normal file
4
cluster/apps/production/radarr/kustomization.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- radarr.yaml
|
|
@ -42,7 +42,7 @@ spec:
|
||||||
- name: nas
|
- name: nas
|
||||||
nfs:
|
nfs:
|
||||||
path: /mnt/thePool/thePoolShare
|
path: /mnt/thePool/thePoolShare
|
||||||
server: 10.0.0.10
|
server: ${NAS_IP}
|
||||||
- name: radarr-config
|
- name: radarr-config
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: radarr-config
|
claimName: radarr-config
|
||||||
|
|
|
@ -17,7 +17,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: sonarr
|
- name: sonarr
|
||||||
image: ghcr.io/linuxserver/sonarr@sha256:8414846e440ca34c1cbed96daf7d5b3bcde20aab79761aaaaef496f24cec8d20
|
image: ghcr.io/linuxserver/sonarr@sha256:a9f25c54b7eb8ecf11e506e90ee7eab9e9786143e08eeb76d5bfc3e82531eeab
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
env:
|
env:
|
||||||
- name: PUID
|
- name: PUID
|
||||||
|
|
18
cluster/infra/flux-secret-map.yaml
Normal file
18
cluster/infra/flux-secret-map.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: apps
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 10m0s
|
||||||
|
path: ./cluster/apps/production
|
||||||
|
prune: true
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: kub-repo
|
||||||
|
postBuild:
|
||||||
|
substitute:
|
||||||
|
NAS_IP: 10.0.0.10
|
||||||
|
substituteFrom:
|
||||||
|
- kind: ConfigMap
|
||||||
|
name: global-vars
|
10
cluster/infra/git-repo.yaml
Normal file
10
cluster/infra/git-repo.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
apiVersion: source.toolkit.fluxcd.io/v1
|
||||||
|
kind: GitRepository
|
||||||
|
metadata:
|
||||||
|
name: kub-repo
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 10m0s
|
||||||
|
url: https://git.mafyuh.dev/mafyuh/kub
|
||||||
|
ref:
|
||||||
|
branch: main
|
Loading…
Reference in a new issue