Compare commits

..

41 Commits

Author SHA1 Message Date
Devin Buhl
9043eddd45 fix: set containerIPForwarding to Enabled in Calico config 2023-04-29 14:45:54 -04:00
renovate[bot]
ec59b671bd chore(container): update image ghcr.io/onedr0p/kubernetes-kubectl to 2067b52 2023-04-29 18:19:48 +00:00
Devin Buhl
432d281287 fix: automerge containers pinned to a digest 2023-04-29 14:16:10 -04:00
renovate[bot]
38089c9255 feat(ansible): update community.general to 6.6.0 (#709)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-28 21:07:43 -04:00
renovate[bot]
1080234b8a feat(github-release): update k3s-io/k3s to v1.27.1+k3s1 (#710)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-28 21:07:35 -04:00
renovate[bot]
c76a5c55f1 feat(terraform): update terraform http to 3.3.0 (#711)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-28 21:07:17 -04:00
renovate[bot]
baa0610011 fix(helm): update chart weave-gitops to 4.0.20 (#708)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-28 21:07:05 -04:00
renovate[bot]
26d5d8e97b fix(helm): update chart reloader to v1.0.24 (#707)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-28 21:06:59 -04:00
renovate[bot]
9a25a4f35f feat(terraform): update terraform cloudflare to 4.4.0 (#706)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-21 21:06:04 -04:00
renovate[bot]
8042876b60 feat(github-release): update pre-commit hook adrienverge/yamllint to v1.31.0 (#705)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-21 21:05:48 -04:00
renovate[bot]
dcd12bfa44 feat(container): update image ghcr.io/tarampampam/error-pages to v2.24.0 (#704)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-21 21:05:37 -04:00
renovate[bot]
7aa0625949 fix(github-release): update pre-commit hook gruntwork-io/pre-commit to v0.1.21 (#703)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-21 21:05:31 -04:00
renovate[bot]
02e92f49ef feat(container): update image ghcr.io/tarampampam/error-pages to v2.23.0 (#702)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-19 08:56:38 -04:00
renovate[bot]
35c43b764d feat(github-action): update lycheeverse/lychee-action action to v1.7.0 2023-04-19 00:00:28 +00:00
renovate[bot]
14c56a27a7 feat(helm): update chart metrics-server to 3.10.0 (#701)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-15 00:33:50 -04:00
renovate[bot]
f37d0fd807 feat(helm): update chart app-template to 1.4.0 (#700)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-15 00:33:35 -04:00
renovate[bot]
965c53f1e3 feat(container): update image ghcr.io/onedr0p/kubernetes-kubectl to v1.27.1 (#699)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-15 00:33:21 -04:00
renovate[bot]
d9fd3d10eb fix(helm): update chart weave-gitops to 4.0.19 (#698)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-15 00:33:06 -04:00
renovate[bot]
ad3b3f838f fix(helm): update chart kubernetes-dashboard to 6.0.7 (#697)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-15 00:32:57 -04:00
renovate[bot]
8acc1cc416 fix(container): update image ghcr.io/kube-vip/kube-vip to v0.5.12 (#696)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-15 00:32:43 -04:00
renovate[bot]
6afc052136 fix(ansible): update ansible.posix to 1.5.2 (#695)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-15 00:32:28 -04:00
renovate[bot]
ed65c76100 chore(container): update image ghcr.io/onedr0p/kubernetes-kubectl to e0607ef 2023-04-15 03:55:59 +00:00
renovate[bot]
61ce8ff2ff fix(github-action): update actions/checkout action to v3.5.2 2023-04-15 03:55:43 +00:00
Devin Buhl
d025b91352 fix: Update bootstrap kustomization and include note in file 2023-04-13 09:24:02 -04:00
Devin Buhl
278e55b10a feat: Enable drift detection and oom watcher for helm controller 2023-04-13 09:17:31 -04:00
Devin Buhl
79968169bc fix: actually set the correct flux version in bootstrap 2023-04-09 20:41:22 -04:00
Devin Buhl
70c1799d76 feat!: Upgrade Flux to v2.0.0-rc.1 and update apiVersions (#693) 2023-04-08 13:41:58 -04:00
renovate[bot]
d4e712c555 feat(terraform): update terraform cloudflare to 4.3.0 (#692)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-07 21:35:43 -04:00
renovate[bot]
5bf751533f feat(container): update image ghcr.io/tarampampam/error-pages to v2.22.0 (#691)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-07 21:35:35 -04:00
renovate[bot]
886db559f9 fix(helm): update chart reloader to v1.0.22 (#690)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-07 21:35:20 -04:00
renovate[bot]
8769776fc6 fix(helm): update chart k8s-gateway to 2.0.3 (#689)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-07 21:35:11 -04:00
renovate[bot]
ba93035426 fix(helm): update chart cert-manager to v1.11.1 (#688)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-07 21:35:01 -04:00
Devin Buhl
7c2ebedc98 chore: be clear about not using Ubuntu server minimal 2023-04-02 10:54:44 -04:00
renovate[bot]
3ea15ad84d feat(helm): update chart metrics-server to 3.9.0 (#685)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-01 06:45:12 -04:00
renovate[bot]
4357af7446 feat(ansible): update community.general to 6.5.0 (#684)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-01 06:45:04 -04:00
renovate[bot]
1f278e02b5 fix(helm): update chart reloader to v1.0.18 (#682)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-01 06:44:53 -04:00
renovate[bot]
861699f57c fix(helm): update chart weave-gitops to 4.0.17 (#683)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-01 06:44:34 -04:00
renovate[bot]
f524f27467 fix(helm): update chart external-dns to 1.12.2 (#681)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-01 06:44:25 -04:00
renovate[bot]
fd739eee9f fix(github-release): update pre-commit hook gruntwork-io/pre-commit to v0.1.20 (#680)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-01 06:44:16 -04:00
renovate[bot]
c48ddfc1f5 fix(github-release): update k3s-io/k3s to v1.26.3+k3s1 (#679)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-01 06:44:04 -04:00
Devin Buhl
07decda9b4 Revert "feat: Disable kube-proxy and enable Calico in eBPF mode" (#678) 2023-03-27 17:29:10 -04:00
47 changed files with 147 additions and 94 deletions

View File

@@ -8,6 +8,14 @@
"automergeType": "branch",
"ignoreTests": true,
"matchUpdateTypes": ["minor", "patch", "digest"]
},
{
"description": "Auto merge container digests",
"matchDatasources": ["docker"],
"automerge": true,
"automergeType": "branch",
"ignoreTests": true,
"matchUpdateTypes": ["digest"]
}
]
}

View File

@@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: Link Checker
uses: lycheeverse/lychee-action@9ace499fe66cee282a29eaa628fdac2c72fa087f # v1.6.1
uses: lycheeverse/lychee-action@97189f2c0a3c8b0cb0e704fd4e878af6e5e2b2c5 # v1.7.0
id: lychee
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

View File

@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: Sync Labels
uses: EndBug/label-sync@da00f2c11fdb78e4fae44adac2fdd713778ea3e8 # renovate: tag=v2.3.2

View File

@@ -2,13 +2,13 @@
fail_fast: false
repos:
- repo: https://github.com/adrienverge/yamllint
rev: v1.30.0
rev: v1.31.0
hooks:
- args:
- --config-file
- .yamllint.yaml
id: yamllint
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.19
rev: v0.1.21
hooks:
- id: terraform-fmt

View File

@@ -48,7 +48,7 @@ First and foremost some experience in debugging/troubleshooting problems **and a
### 💻 Systems
- One or more nodes with a fresh install of [Fedora Server 36](https://getfedora.org/en/server/download/) or [Ubuntu 22.04 Server](https://ubuntu.com/download/server).
- One or more nodes with a fresh install of [Fedora Server 37](https://getfedora.org/en/server/download/) or [Ubuntu 22.04 Server](https://ubuntu.com/download/server) (not minimal).
- These nodes can be ARM64/AMD64 bare metal or VMs.
- An odd number of control plane nodes, greater than or equal to 3 is required if deploying more than one control plane node.
- A [Cloudflare](https://www.cloudflare.com/) account with a domain, this will be managed by Terraform and external-dns. You can [register new domains](https://www.cloudflare.com/products/registrar/) directly thru Cloudflare.

View File

@@ -6,7 +6,7 @@
# (string) Use a specific version of k3s
# renovate: datasource=github-releases depName=k3s-io/k3s
k3s_release_version: "v1.26.2+k3s1"
k3s_release_version: "v1.27.1+k3s1"
# (bool) Install using hard links rather than symbolic links.
k3s_install_hard_links: true
@@ -55,6 +55,5 @@ k3s_server_manifests_urls:
# (list) A flat list of templates to deploy on the primary control plane
# /var/lib/rancher/k3s/server/manifests
k3s_server_manifests_templates:
- calico-ebpf.yaml.j2
- calico-installation.yaml.j2
- kube-vip-daemonset.yaml.j2

View File

@@ -10,25 +10,38 @@ k3s_server:
node-ip: "{{ ansible_host }}"
tls-san:
- "{{ kubevip_address }}"
https-listen-port: 6443
docker: false # Disable Docker - this will use the default containerd CRI
flannel-backend: "none" # This needs to be in quotes
# Disable Docker - this will use the default containerd CRI
docker: false
flannel-backend: "none" # This needs to be in quotes
disable:
- flannel # Disable flannel - replaced with Calico
- local-storage # Disable local-path-provisioner - installed with Flux
- metrics-server # Disable metrics-server - installed with Flux
- servicelb # Disable servicelb - replaced with metallb and installed with Flux
- traefik # Disable traefik - replaced with ingress-nginx and installed with Flux
# Disable flannel - replaced with Calico
- flannel
# Disable local-path-provisioner - installed with Flux
- local-storage
# Disable metrics-server - installed with Flux
- metrics-server
# Disable servicelb - replaced with metallb and installed with Flux
- servicelb
# Disable traefik - replaced with ingress-nginx and installed with Flux
- traefik
disable-network-policy: true
disable-cloud-controller: true
disable-kube-proxy: true # Disable kube-proxy - replaced with Calico eBPF
write-kubeconfig-mode: "644"
cluster-cidr: "10.42.0.0/16" # Network CIDR to use for pod IPs
service-cidr: "10.43.0.0/16" # Network CIDR to use for service IPs
# Network CIDR to use for pod IPs
cluster-cidr: "10.42.0.0/16"
# Network CIDR to use for service IPs
service-cidr: "10.43.0.0/16"
kube-controller-manager-arg:
- "bind-address=0.0.0.0" # Required to monitor kube-controller-manager with kube-prometheus-stack
# Required to monitor kube-controller-manager with kube-prometheus-stack
- "bind-address=0.0.0.0"
kube-proxy-arg:
# Required to monitor kube-proxy with kube-prometheus-stack
- "metrics-bind-address=0.0.0.0"
kube-scheduler-arg:
- "bind-address=0.0.0.0" # Required to monitor kube-scheduler with kube-prometheus-stack
etcd-expose-metrics: true # Required to monitor etcd with kube-prometheus-stack
# Required to monitor kube-scheduler with kube-prometheus-stack
- "bind-address=0.0.0.0"
# Required to monitor etcd with kube-prometheus-stack
etcd-expose-metrics: true
kube-apiserver-arg:
- "anonymous-auth=true" # Required for HAProxy health-checks
# Required for HAProxy health-checks
- "anonymous-auth=true"

View File

@@ -1,14 +0,0 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: tigera-operator
---
apiVersion: v1
kind: ConfigMap
metadata:
name: kubernetes-services-endpoint
namespace: tigera-operator
data:
KUBERNETES_SERVICE_HOST: "{{ k3s_registration_address }}"
KUBERNETES_SERVICE_PORT: "{{ k3s_server['https-listen-port'] }}"

View File

@@ -7,8 +7,8 @@ spec:
registry: quay.io
imagePath: calico
calicoNetwork:
hostPorts: Disabled
linuxDataplane: BPF
# https://docs.k3s.io/installation/network-options#custom-cni
containerIPForwarding: "Enabled"
# https://projectcalico.docs.tigera.io/networking/ip-autodetection
nodeAddressAutodetectionV4:
cidrs:

View File

@@ -20,7 +20,7 @@ spec:
spec:
containers:
- name: kube-vip
image: ghcr.io/kube-vip/kube-vip:v0.5.11
image: ghcr.io/kube-vip/kube-vip:v0.5.12
imagePullPolicy: IfNotPresent
args: ["manager"]
env:

View File

@@ -1,11 +1,11 @@
---
collections:
- name: community.general
version: 6.4.0
version: 6.6.0
- name: community.sops
version: 1.6.1
- name: ansible.posix
version: 1.5.1
version: 1.5.2
- name: ansible.utils
version: 2.9.0
- name: kubernetes.core

View File

@@ -9,7 +9,7 @@ spec:
chart:
spec:
chart: cert-manager
version: v1.11.0
version: v1.11.1
sourceRef:
kind: HelmRepository
name: jetstack

View File

@@ -1,5 +1,5 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-cert-manager
@@ -19,7 +19,7 @@ spec:
retryInterval: 1m
timeout: 3m
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-cert-manager-issuers

View File

@@ -9,7 +9,7 @@ spec:
chart:
spec:
chart: app-template
version: 1.3.2
version: 1.4.0
sourceRef:
kind: HelmRepository
name: bjw-s

View File

@@ -1,5 +1,5 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-echo-server

View File

@@ -1,5 +1,5 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-hajimari

View File

@@ -1,5 +1,5 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-flux-webhooks

View File

@@ -1,5 +1,5 @@
---
apiVersion: notification.toolkit.fluxcd.io/v1beta1
apiVersion: notification.toolkit.fluxcd.io/v1
kind: Receiver
metadata:
name: github-receiver
@@ -12,15 +12,15 @@ spec:
secretRef:
name: github-webhook-token-secret
resources:
- apiVersion: source.toolkit.fluxcd.io/v1beta2
- apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
name: home-kubernetes
namespace: flux-system
- apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
- apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
name: cluster
namespace: flux-system
- apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
- apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
name: cluster-apps
namespace: flux-system

View File

@@ -9,7 +9,7 @@ spec:
chart:
spec:
chart: weave-gitops
version: 4.0.16
version: 4.0.20
sourceRef:
kind: HelmRepository
name: weave-gitops

View File

@@ -1,5 +1,5 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-weave-gitops

View File

@@ -20,7 +20,7 @@ spec:
spec:
containers:
- name: kube-vip
image: ghcr.io/kube-vip/kube-vip:v0.5.11
image: ghcr.io/kube-vip/kube-vip:v0.5.12
imagePullPolicy: IfNotPresent
args: ["manager"]
env:

View File

@@ -1,5 +1,5 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-kube-vip

View File

@@ -1,5 +1,5 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-local-path-provisioner

View File

@@ -9,7 +9,7 @@ spec:
chart:
spec:
chart: metrics-server
version: 3.8.4
version: 3.10.0
sourceRef:
kind: HelmRepository
name: metrics-server

View File

@@ -1,5 +1,5 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-metrics-server

View File

@@ -9,7 +9,7 @@ spec:
chart:
spec:
chart: reloader
version: v1.0.15
version: v1.0.24
sourceRef:
kind: HelmRepository
name: stakater

View File

@@ -1,5 +1,5 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-reloader

View File

@@ -9,7 +9,7 @@ spec:
chart:
spec:
chart: kubernetes-dashboard
version: 6.0.6
version: 6.0.7
sourceRef:
kind: HelmRepository
name: kubernetes-dashboard

View File

@@ -1,5 +1,5 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-kubernetes-dashboard

View File

@@ -9,7 +9,7 @@ spec:
chart:
spec:
chart: app-template
version: 1.3.2
version: 1.4.0
sourceRef:
kind: HelmRepository
name: bjw-s
@@ -34,7 +34,7 @@ spec:
restartPolicy: OnFailure
image:
repository: ghcr.io/onedr0p/kubernetes-kubectl
tag: 1.26.3@sha256:4dd76f75fc0b465e2cc976570380152c428b5047fd87b5538e16502fb5c8978a
tag: 1.27.1@sha256:2067b52145cdcb99b1db4e92fa114babc0a8a91e08711cbe1aae05ba5a277dd9
command: ["/bin/bash", "/app/cloudflare-ddns.sh"]
envFrom:
- secretRef:

View File

@@ -1,5 +1,5 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-cloudflare-ddns

View File

@@ -9,7 +9,7 @@ spec:
chart:
spec:
chart: external-dns
version: 1.12.1
version: 1.12.2
sourceRef:
kind: HelmRepository
name: external-dns

View File

@@ -1,5 +1,5 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-external-dns

View File

@@ -76,7 +76,7 @@ spec:
enabled: true
image:
repository: ghcr.io/tarampampam/error-pages
tag: 2.21.0
tag: 2.24.0
extraEnvs:
- name: TEMPLATE_NAME
value: lost-in-space

View File

@@ -1,5 +1,5 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-ingress-nginx-certificates
@@ -17,7 +17,7 @@ spec:
retryInterval: 1m
timeout: 3m
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-ingress-nginx

View File

@@ -9,7 +9,7 @@ spec:
chart:
spec:
chart: k8s-gateway
version: 2.0.2
version: 2.0.3
sourceRef:
kind: HelmRepository
name: k8s-gateway

View File

@@ -1,5 +1,5 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-k8s-gateway

View File

@@ -1,5 +1,5 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-metallb
@@ -19,7 +19,7 @@ spec:
retryInterval: 1m
timeout: 3m
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-metallb-config

View File

@@ -1,5 +1,5 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-system-upgrade-controller
@@ -15,7 +15,7 @@ spec:
retryInterval: 1m
timeout: 3m
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-system-upgrade-controller-plans

View File

@@ -6,7 +6,7 @@ metadata:
namespace: system-upgrade
spec:
# renovate: datasource=github-releases depName=k3s-io/k3s
version: "v1.26.2+k3s1"
version: "v1.27.1+k3s1"
serviceAccountName: system-upgrade
concurrency: 1
nodeSelector:

View File

@@ -6,7 +6,7 @@ metadata:
namespace: system-upgrade
spec:
# renovate: datasource=github-releases depName=k3s-io/k3s
version: "v1.26.2+k3s1"
version: "v1.27.1+k3s1"
serviceAccountName: system-upgrade
concurrency: 1
cordon: true

View File

@@ -1,9 +1,12 @@
# IMPORTANT: This file is not tracked by flux and should never be. Its
# purpose is to only install the Flux components and CRDs into your cluster.
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- github.com/fluxcd/flux2/manifests/install?ref=v0.41.2
- github.com/fluxcd/flux2/manifests/install?ref=v2.0.0-rc.1
patches:
# Remove the network policies that does not work with k3s
- patch: |-
$patch: delete
apiVersion: networking.k8s.io/v1
@@ -12,5 +15,4 @@ patches:
name: not-used
target:
group: networking.k8s.io
version: v1
kind: NetworkPolicy

View File

@@ -1,5 +1,5 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps
@@ -23,7 +23,7 @@ spec:
name: cluster-secrets
patches:
- patch: |-
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: not-used
@@ -40,6 +40,5 @@ spec:
name: cluster-secrets
target:
group: kustomize.toolkit.fluxcd.io
version: v1beta2
kind: Kustomization
labelSelector: substitution.flux.home.arpa/disabled notin (true)

View File

@@ -8,9 +8,9 @@ spec:
interval: 10m
url: oci://ghcr.io/fluxcd/flux-manifests
ref:
tag: v0.41.2
tag: v2.0.0-rc.1
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: flux
@@ -24,6 +24,7 @@ spec:
kind: OCIRepository
name: flux-manifests
patches:
# Remove the network policies that does not work with k3s
- patch: |
$patch: delete
apiVersion: networking.k8s.io/v1
@@ -32,8 +33,9 @@ spec:
name: not-used
target:
group: networking.k8s.io
version: v1
kind: NetworkPolicy
# Increase the number of reconciliations that can be performed in parallel and bump the resources limits
# https://fluxcd.io/flux/cheatsheets/bootstrap/#increase-the-number-of-workers
- patch: |
- op: add
path: /spec/template/spec/containers/0/args/-
@@ -49,4 +51,48 @@ spec:
value: --requeue-dependency=5s
target:
kind: Deployment
name: "(kustomize-controller|helm-controller|source-controller)"
name: (kustomize-controller|helm-controller|source-controller)
- patch: |
apiVersion: apps/v1
kind: Deployment
metadata:
name: not-used
spec:
template:
spec:
containers:
- name: manager
resources:
limits:
cpu: 2000m
memory: 2Gi
target:
kind: Deployment
name: (kustomize-controller|helm-controller|source-controller)
# Enable drift detection for HelmReleases and set the log level to debug
# https://fluxcd.io/flux/components/helm/helmreleases/#drift-detection
- patch: |
- op: add
path: /spec/template/spec/containers/0/args/-
value: --feature-gates=DetectDrift=true,CorrectDrift=false
- op: add
path: /spec/template/spec/containers/0/args/-
value: --log-level=debug
target:
kind: Deployment
name: helm-controller
# Enable Helm near OOM detection
# https://fluxcd.io/flux/cheatsheets/bootstrap/#enable-helm-near-oom-detection
- patch: |
- op: add
path: /spec/template/spec/containers/0/args/-
value: --feature-gates=OOMWatch=true
- op: add
path: /spec/template/spec/containers/0/args/-
value: --oom-watch-memory-threshold=95
- op: add
path: /spec/template/spec/containers/0/args/-
value: --oom-watch-interval=500ms
target:
kind: Deployment
name: helm-controller

View File

@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: local-path-provisioner

View File

@@ -3,11 +3,11 @@ terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "4.2.0"
version = "4.4.0"
}
http = {
source = "hashicorp/http"
version = "3.2.1"
version = "3.3.0"
}
sops = {
source = "carlpett/sops"

View File

@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: home-kubernetes
@@ -15,7 +15,7 @@ spec:
# include kubernetes directory
!/kubernetes
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster