Skip to content

Commit

Permalink
chore(kubernetes): ingress house keeping
Browse files Browse the repository at this point in the history
  • Loading branch information
buroa committed Dec 10, 2024
1 parent 9dd29ae commit 27218c4
Show file tree
Hide file tree
Showing 26 changed files with 34 additions and 134 deletions.
5 changes: 1 addition & 4 deletions kubernetes/apps/databases/emqx/cluster/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
spec:
ingressClassName: internal
rules:
- host: &host emqx.ktwo.io
- host: emqx.ktwo.io
http:
paths:
- path: /
Expand All @@ -16,6 +16,3 @@ spec:
name: emqx-dashboard
port:
number: 18083
tls:
- hosts:
- *host
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
spec:
ingressClassName: external
rules:
- host: &host flux-webhook.ktwo.io
- host: flux-webhook.ktwo.io
http:
paths:
- path: /hook/
Expand All @@ -18,6 +18,3 @@ spec:
name: webhook-receiver
port:
number: 80
tls:
- hosts:
- *host
8 changes: 2 additions & 6 deletions kubernetes/apps/home/atuin/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,14 @@ spec:
app:
className: internal
hosts:
- host: &host "{{ .Release.Name }}.ktwo.io"
- host: "{{ .Release.Name }}.ktwo.io"
paths: &paths
- path: /
service:
identifier: app
port: http
- host: &customHost sh.ktwo.io
- host: sh.ktwo.io
paths: *paths
tls:
- hosts:
- *host
- *customHost
persistence:
config:
type: emptyDir
Expand Down
5 changes: 1 addition & 4 deletions kubernetes/apps/home/go2rtc/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,12 @@ spec:
app:
className: internal
hosts:
- host: &host "{{ .Release.Name }}.ktwo.io"
- host: "{{ .Release.Name }}.ktwo.io"
paths:
- path: /
service:
identifier: app
port: http
tls:
- hosts:
- *host
persistence:
config:
type: configMap
Expand Down
8 changes: 2 additions & 6 deletions kubernetes/apps/home/home-assistant/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,14 @@ spec:
app:
className: internal
hosts:
- host: &host "{{ .Release.Name }}.ktwo.io"
- host: "{{ .Release.Name }}.ktwo.io"
paths: &paths
- path: /
service:
identifier: app
port: http
- host: &customHost hass.ktwo.io
- host: hass.ktwo.io
paths: *paths
tls:
- hosts:
- *host
- *customHost
persistence:
config:
existingClaim: *app
Expand Down
8 changes: 2 additions & 6 deletions kubernetes/apps/home/zigbee2mqtt/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,14 @@ spec:
app:
className: internal
hosts:
- host: &host "{{ .Release.Name }}.ktwo.io"
- host: "{{ .Release.Name }}.ktwo.io"
paths: &paths
- path: /
service:
identifier: app
port: http
- host: &customHost zigbee.ktwo.io
- host: zigbee.ktwo.io
paths: *paths
tls:
- hosts:
- *host
- *customHost
persistence:
config:
existingClaim: *app
Expand Down
6 changes: 1 addition & 5 deletions kubernetes/apps/kube-system/cilium/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,7 @@ spec:
ingress:
enabled: true
className: internal
hosts:
- &host hubble.ktwo.io
tls:
- hosts:
- *host
hosts: ["hubble.ktwo.io"]
operator:
prometheus:
enabled: true
Expand Down
5 changes: 1 addition & 4 deletions kubernetes/apps/media/autobrr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,12 @@ spec:
app:
className: internal
hosts:
- host: &host "{{ .Release.Name }}.ktwo.io"
- host: "{{ .Release.Name }}.ktwo.io"
paths:
- path: /
service:
identifier: app
port: http
tls:
- hosts:
- *host
persistence:
tmp:
type: emptyDir
Expand Down
5 changes: 1 addition & 4 deletions kubernetes/apps/media/bazarr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,12 @@ spec:
app:
className: internal
hosts:
- host: &host "{{ .Release.Name }}.ktwo.io"
- host: "{{ .Release.Name }}.ktwo.io"
paths:
- path: /
service:
identifier: app
port: http
tls:
- hosts:
- *host
persistence:
add-ons:
type: emptyDir
Expand Down
8 changes: 2 additions & 6 deletions kubernetes/apps/media/overseerr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,14 @@ spec:
annotations:
gatus.io/path: *path
hosts:
- host: &host "{{ .Release.Name }}.ktwo.io"
- host: "{{ .Release.Name }}.ktwo.io"
paths: &paths
- path: /
service:
identifier: app
port: http
- host: &customHost requests.ktwo.io
- host: requests.ktwo.io
paths: *paths
tls:
- hosts:
- *host
- *customHost
persistence:
cache:
existingClaim: overseerr-cache
Expand Down
5 changes: 1 addition & 4 deletions kubernetes/apps/media/plex/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,12 @@ spec:
gatus.io/path: *path
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
hosts:
- host: &host "{{ .Release.Name }}.ktwo.io"
- host: "{{ .Release.Name }}.ktwo.io"
paths:
- path: /
service:
identifier: app
port: http
tls:
- hosts:
- *host
persistence:
cache:
existingClaim: plex-cache
Expand Down
5 changes: 1 addition & 4 deletions kubernetes/apps/media/prowlarr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,12 @@ spec:
app:
className: internal
hosts:
- host: &host "{{ .Release.Name }}.ktwo.io"
- host: "{{ .Release.Name }}.ktwo.io"
paths:
- path: /
service:
identifier: app
port: http
tls:
- hosts:
- *host
persistence:
config:
type: emptyDir
Expand Down
8 changes: 2 additions & 6 deletions kubernetes/apps/media/qbittorrent/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,14 @@ spec:
app:
className: internal
hosts:
- host: &host "{{ .Release.Name }}.ktwo.io"
- host: "{{ .Release.Name }}.ktwo.io"
paths: &paths
- path: /
service:
identifier: app
port: http
- host: &customHost qb.ktwo.io
- host: qb.ktwo.io
paths: *paths
tls:
- hosts:
- *host
- *customHost
persistence:
config:
existingClaim: *app
Expand Down
5 changes: 1 addition & 4 deletions kubernetes/apps/media/radarr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,12 @@ spec:
app:
className: internal
hosts:
- host: &host "{{ .Release.Name }}.ktwo.io"
- host: "{{ .Release.Name }}.ktwo.io"
paths:
- path: /
service:
identifier: app
port: http
tls:
- hosts:
- *host
persistence:
config:
existingClaim: *app
Expand Down
8 changes: 2 additions & 6 deletions kubernetes/apps/media/sabnzbd/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,14 @@ spec:
app:
className: internal
hosts:
- host: &host "{{ .Release.Name }}.ktwo.io"
- host: "{{ .Release.Name }}.ktwo.io"
paths: &paths
- path: /
service:
identifier: app
port: http
- host: &customHost sab.ktwo.io
- host: sab.ktwo.io
paths: *paths
tls:
- hosts:
- *host
- *customHost
persistence:
config:
existingClaim: *app
Expand Down
5 changes: 1 addition & 4 deletions kubernetes/apps/media/sonarr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,12 @@ spec:
app:
className: internal
hosts:
- host: &host "{{ .Release.Name }}.ktwo.io"
- host: "{{ .Release.Name }}.ktwo.io"
paths:
- path: /
service:
identifier: app
port: http
tls:
- hosts:
- *host
persistence:
config:
existingClaim: *app
Expand Down
5 changes: 1 addition & 4 deletions kubernetes/apps/media/tautulli/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,12 @@ spec:
annotations:
gatus.io/path: *path
hosts:
- host: &host "{{ .Release.Name }}.ktwo.io"
- host: "{{ .Release.Name }}.ktwo.io"
paths:
- path: /
service:
identifier: app
port: http
tls:
- hosts:
- *host
persistence:
add-ons:
type: emptyDir
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,10 @@ spec:
enabled: true
className: internal
hosts:
- host: &host blackbox.ktwo.io
- host: blackbox.ktwo.io
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- *host
securityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
Expand Down
8 changes: 2 additions & 6 deletions kubernetes/apps/monitoring/gatus/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,14 @@ spec:
annotations:
gatus.io/path: *path
hosts:
- host: &host "{{ .Release.Name }}.ktwo.io"
- host: "{{ .Release.Name }}.ktwo.io"
paths: &paths
- path: /
service:
identifier: app
port: http
- host: &customHost status.ktwo.io
- host: status.ktwo.io
paths: *paths
tls:
- hosts:
- *host
- *customHost
persistence:
config:
type: emptyDir
Expand Down
8 changes: 1 addition & 7 deletions kubernetes/apps/monitoring/grafana/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -321,13 +321,7 @@ spec:
ingress:
enabled: true
ingressClassName: internal
hosts:
- &host "{{ .Release.Name }}.ktwo.io"
paths:
- /
tls:
- hosts:
- *host
hosts: ["{{ .Release.Name }}.ktwo.io"]
persistence:
enabled: false
testFramework:
Expand Down
5 changes: 1 addition & 4 deletions kubernetes/apps/monitoring/karma/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,12 @@ spec:
app:
className: internal
hosts:
- host: &host "{{ .Release.Name }}.ktwo.io"
- host: "{{ .Release.Name }}.ktwo.io"
paths:
- path: /
service:
identifier: app
port: http
tls:
- hosts:
- *host
service:
app:
controller: *app
Expand Down
5 changes: 1 addition & 4 deletions kubernetes/apps/monitoring/kromgo/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,12 @@ spec:
annotations:
gatus.io/status-code: "404"
hosts:
- host: &host "{{ .Release.Name }}.ktwo.io"
- host: "{{ .Release.Name }}.ktwo.io"
paths:
- path: /
service:
identifier: app
port: http
tls:
- hosts:
- *host
persistence:
config:
type: configMap
Expand Down
Loading

0 comments on commit 27218c4

Please sign in to comment.