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

fix: Yoink updates from onedr0p #2218

Merged
merged 7 commits into from
Nov 12, 2024
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
20 changes: 13 additions & 7 deletions .github/workflows/flux-diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
uses: tj-actions/changed-files@v45
with:
files: kubernetes/**
files_ignore: kubernetes/shared/**
dir_names: true
dir_names_max_depth: 2
matrix: true
Expand Down Expand Up @@ -93,13 +94,18 @@ jobs:
- name: Generate Diff
id: diff
run: |
echo "diff<<EOF" >> $GITHUB_OUTPUT
cat diff.patch >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
echo "### Diff" >> $GITHUB_STEP_SUMMARY
echo '```diff' >> $GITHUB_STEP_SUMMARY
cat diff.patch >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
cat diff.patch;
{
echo 'diff<<EOF'
cat diff.patch
echo EOF
} >> "$GITHUB_OUTPUT";
{
echo "### Diff"
echo '```diff'
cat diff.patch
echo '```'
} >> "$GITHUB_STEP_SUMMARY"

- if: ${{ steps.diff.outputs.diff != '' }}
name: Add comment
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/flux-image-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
uses: tj-actions/changed-files@v45
with:
files: kubernetes/**
files_ignore: kubernetes/shared/**
dir_names: true
dir_names_max_depth: 2
matrix: true
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ jobs:
labeler:
name: Labeler
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
steps:
- name: Generate Token
uses: actions/create-github-app-token@v1
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/main/apps/kube-system/cilium/config/ip-pools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ spec:
apiVersion: cilium.io/v2alpha1
kind: CiliumLoadBalancerIPPool
metadata:
name: networking-pool
name: network-pool
spec:
allowFirstLastIPs: "Yes"
blocks:
- start: 10.1.1.150
stop: 10.1.1.160
serviceSelector:
matchLabels:
"io.kubernetes.service.namespace": "networking"
"io.kubernetes.service.namespace": "network"
51 changes: 51 additions & 0 deletions kubernetes/main/apps/kube-system/coredns/app/helm-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
fullnameOverride: coredns
replicaCount: 3
k8sAppLabelOverride: kube-dns
serviceAccount:
create: true
service:
name: kube-dns
clusterIP: 10.43.0.10
servers:
- zones:
- zone: .
scheme: dns://
use_tcp: true
port: 53
plugins:
- name: errors
- name: health
configBlock: |-
lameduck 5s
- name: ready
- name: log
configBlock: |-
class error
- name: prometheus
parameters: 0.0.0.0:9153
- name: kubernetes
parameters: cluster.local in-addr.arpa ip6.arpa
configBlock: |-
pods insecure
fallthrough in-addr.arpa ip6.arpa
- name: forward
parameters: . /etc/resolv.conf
- name: cache
parameters: 30
- name: loop
- name: reload
- name: loadbalance
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- key: node-role.kubernetes.io/control-plane
operator: Exists
effect: NoSchedule
27 changes: 27 additions & 0 deletions kubernetes/main/apps/kube-system/coredns/app/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: coredns
spec:
interval: 30m
chart:
spec:
chart: coredns
version: 1.36.1
sourceRef:
kind: HelmRepository
name: coredns
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
valuesFrom:
- kind: ConfigMap
name: coredns-helm-values
12 changes: 12 additions & 0 deletions kubernetes/main/apps/kube-system/coredns/app/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml
configMapGenerator:
- name: coredns-helm-values
files:
- values.yaml=./helm-values.yaml
configurations:
- kustomizeconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
nameReference:
- kind: ConfigMap
version: v1
fieldSpecs:
- path: spec/valuesFrom/name
kind: HelmRelease
20 changes: 20 additions & 0 deletions kubernetes/main/apps/kube-system/coredns/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
# 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 coredns
namespace: flux-system
spec:
targetNamespace: kube-system
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./kubernetes/main/apps/kube-system/coredns/app
prune: false # never should be deleted
sourceRef:
kind: GitRepository
name: home-kubernetes
wait: false
interval: 30m
timeout: 5m
1 change: 1 addition & 0 deletions kubernetes/main/apps/kube-system/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ resources:
- ./namespace.yaml
# Flux-Kustomizations
- ./cilium/ks.yaml
# - ./coredns/ks.yaml
- ./kubelet-csr-approver/ks.yaml
- ./metrics-server/ks.yaml
- ./spegel/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ spec:
dependsOn:
- name: rook-ceph-cluster
namespace: rook-ceph
- name: volsync
namespace: volsync-system
values:
controllers:
audiobookshelf:
Expand Down
1 change: 1 addition & 0 deletions kubernetes/main/apps/media/audiobookshelf/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spec:
app.kubernetes.io/name: *app
dependsOn:
- name: external-secrets-stores
- name: volsync
path: ./kubernetes/main/apps/media/audiobookshelf/app
prune: true
sourceRef:
Expand Down
2 changes: 0 additions & 2 deletions kubernetes/main/apps/media/bazarr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ spec:
dependsOn:
- name: rook-ceph-cluster
namespace: rook-ceph
- name: volsync
namespace: volsync-system
values:
controllers:
bazarr:
Expand Down
1 change: 1 addition & 0 deletions kubernetes/main/apps/media/bazarr/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spec:
app.kubernetes.io/name: *app
dependsOn:
- name: external-secrets-stores
- name: volsync
path: ./kubernetes/main/apps/media/bazarr/app
prune: true
sourceRef:
Expand Down
2 changes: 0 additions & 2 deletions kubernetes/main/apps/media/jellyfin/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ spec:
namespace: system
- name: rook-ceph-cluster
namespace: rook-ceph
- name: volsync
namespace: volsync-system
values:
controllers:
jellyfin:
Expand Down
2 changes: 2 additions & 0 deletions kubernetes/main/apps/media/jellyfin/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ spec:
commonMetadata:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: volsync
path: ./kubernetes/main/apps/media/jellyfin/app
prune: true
sourceRef:
Expand Down
2 changes: 0 additions & 2 deletions kubernetes/main/apps/media/overseerr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ spec:
dependsOn:
- name: rook-ceph-cluster
namespace: rook-ceph
- name: volsync
namespace: volsync-system
values:
controllers:
overseerr:
Expand Down
2 changes: 2 additions & 0 deletions kubernetes/main/apps/media/overseerr/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ spec:
commonMetadata:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: volsync
path: ./kubernetes/main/apps/media/overseerr/app
prune: true
sourceRef:
Expand Down
2 changes: 0 additions & 2 deletions kubernetes/main/apps/media/plex/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ spec:
namespace: system
- name: rook-ceph-cluster
namespace: rook-ceph
- name: volsync
namespace: volsync-system
values:
controllers:
plex:
Expand Down
2 changes: 2 additions & 0 deletions kubernetes/main/apps/media/plex/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ spec:
commonMetadata:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: volsync
path: ./kubernetes/main/apps/media/plex/app
prune: true
sourceRef:
Expand Down
2 changes: 0 additions & 2 deletions kubernetes/main/apps/media/qbittorrent/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ spec:
dependsOn:
- name: rook-ceph-cluster
namespace: rook-ceph
- name: volsync
namespace: volsync-system
values:
controllers:
qbittorrent:
Expand Down
2 changes: 2 additions & 0 deletions kubernetes/main/apps/media/qbittorrent/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ spec:
commonMetadata:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: volsync
path: ./kubernetes/main/apps/media/qbittorrent/app
prune: true
sourceRef:
Expand Down
2 changes: 0 additions & 2 deletions kubernetes/main/apps/media/recyclarr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ spec:
dependsOn:
- name: rook-ceph-cluster
namespace: rook-ceph
- name: volsync
namespace: volsync-system
values:
controllers:
recyclarr:
Expand Down
1 change: 1 addition & 0 deletions kubernetes/main/apps/media/recyclarr/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spec:
app.kubernetes.io/name: *app
dependsOn:
- name: external-secrets-stores
- name: volsync
path: ./kubernetes/main/apps/media/recyclarr/app
prune: true
sourceRef:
Expand Down
2 changes: 0 additions & 2 deletions kubernetes/main/apps/media/tautulli/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ spec:
dependsOn:
- name: rook-ceph-cluster
namespace: rook-ceph
- name: volsync
namespace: volsync-system
values:
controllers:
tautulli:
Expand Down
2 changes: 2 additions & 0 deletions kubernetes/main/apps/media/tautulli/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ spec:
commonMetadata:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: volsync
path: ./kubernetes/main/apps/media/tautulli/app
prune: true
sourceRef:
Expand Down
2 changes: 0 additions & 2 deletions kubernetes/main/apps/media/xteve/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ spec:
dependsOn:
- name: rook-ceph-cluster
namespace: rook-ceph
- name: volsync
namespace: volsync-system
values:
controllers:
xteve:
Expand Down
2 changes: 2 additions & 0 deletions kubernetes/main/apps/media/xteve/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ spec:
commonMetadata:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: volsync
path: ./kubernetes/main/apps/media/xteve/app
prune: true
sourceRef:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ spec:
endpoints:
- dnsName: external.rodent.cc
recordType: CNAME
targets: ["${CLUSTER_CLOUDFLARE_TUNNEL_ID}.cfargotunnel.com"]
targets: ["73f66c1e-1048-49b5-bba5-c535ca8162d9.cfargotunnel.com"]
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
{
"AccountTag": "{{ .CLOUDFLARE_ACCOUNT_TAG }}",
"TunnelSecret": "{{ .CLOUDFLARE_TUNNEL_SECRET }}",
"TunnelID": "${CLUSTER_CLOUDFLARE_TUNNEL_ID}"
"TunnelID": "73f66c1e-1048-49b5-bba5-c535ca8162d9"
}
dataFrom:
- extract:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
retries: 3
dependsOn:
- name: nginx-external
namespace: networking
namespace: network
values:
controllers:
cloudflared:
Expand All @@ -49,7 +49,7 @@ spec:
- --config
- /etc/cloudflared/config/config.yaml
- run
- "${CLUSTER_CLOUDFLARE_TUNNEL_ID}"
- "73f66c1e-1048-49b5-bba5-c535ca8162d9"
probes:
liveness: &probes
enabled: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ originRequest:

ingress:
- hostname: rodent.cc
service: https://nginx-external-controller.networking.svc.cluster.local:443
service: https://nginx-external-controller.network.svc.cluster.local:443
- hostname: "*.rodent.cc"
service: https://nginx-external-controller.networking.svc.cluster.local:443
service: https://nginx-external-controller.network.svc.cluster.local:443
- service: http_status:404
Loading
Loading