126 Commits

Author SHA1 Message Date
e5f5c29294 chore(deps): update ghcr.io/fluxcd/notification-controller docker tag to v1.4.0 2024-09-27 16:01:46 +00:00
92c45e7a01 Merge branch 'master' of https://git.fascinated.cc/Fascinated/homelab-argocd 2024-09-27 11:35:44 +01:00
4ce37ccdd5 make the helm chart repos update their cache faster 2024-09-27 11:35:43 +01:00
Lee
281eeb2571 Merge pull request 'chore(deps): update helm release kube-prometheus-stack to v63.1.0' (#37) from renovate/kube-prometheus-stack-63.x into master
Reviewed-on: #37
2024-09-27 10:23:44 +00:00
Lee
104338b3aa Merge pull request 'chore(deps): update dependency traefik-crds to v32' (#38) from renovate/traefik-crds-32.x into master
Reviewed-on: #38
2024-09-27 10:23:26 +00:00
Lee
a555f67fc7 Merge pull request 'chore(deps): update helm release traefik to v32' (#39) from renovate/traefik-32.x into master
Reviewed-on: #39
2024-09-27 10:23:19 +00:00
2d51e7e85a Merge branch 'master' of https://git.fascinated.cc/Fascinated/homelab-argocd 2024-09-27 11:19:28 +01:00
f3ff5fbb9f fix readme link 2024-09-27 11:19:27 +01:00
eac3b18ef2 chore(deps): update helm release traefik to v32 2024-09-27 10:01:52 +00:00
bc6e85fe90 chore(deps): update dependency traefik-crds to v32 2024-09-27 10:01:51 +00:00
ceae756a2f chore(deps): update helm release kube-prometheus-stack to v63.1.0 2024-09-27 09:01:49 +00:00
Lee
b056354f20 Merge pull request 'chore(deps): update helm release kube-prometheus-stack to v63' (#33) from renovate/kube-prometheus-stack-63.x into master
Reviewed-on: #33
2024-09-26 19:26:01 +00:00
Lee
d053452ba1 Update README.md 2024-09-26 19:01:35 +00:00
1a34c57cf7 chore(deps): update helm release kube-prometheus-stack to v63 2024-09-26 18:01:48 +00:00
991bc7b7fe update eraser link 2024-09-26 15:44:53 +01:00
9c5f8a0daa fixed it on github? 2024-09-26 15:44:06 +01:00
ce8e5ad849 Add Flux v2.3.0 component manifests 2024-09-26 15:39:57 +01:00
Lee
2bf0f95105 Merge pull request 'chore(deps): update ghcr.io/fluxcd/source-controller docker tag to v1.4.0' (#31) from renovate/ghcr.io-fluxcd-source-controller-1.x into master
Reviewed-on: #31
2024-09-26 14:37:59 +00:00
Lee
c90f84c5a4 Merge pull request 'chore(deps): update ghcr.io/eraser-dev/eraser-manager docker tag to v1.5.0' (#30) from renovate/ghcr.io-eraser-dev-eraser-manager-1.x into master
Reviewed-on: #30
2024-09-26 14:37:54 +00:00
Lee
39ed7b7cb1 Merge pull request 'chore(deps): update dependency helmrepository to source.toolkit.fluxcd.io/v1' (#29) from renovate/helmrepository-1.x into master
Reviewed-on: #29
2024-09-26 14:37:47 +00:00
Lee
af5e343156 Merge pull request 'chore(deps): update dependency helmrelease to helm.toolkit.fluxcd.io/v2' (#28) from renovate/helmrelease-2.x into master
Reviewed-on: #28
2024-09-26 14:37:40 +00:00
8aee3d5bb0 more chatgpt help 2024-09-26 15:17:36 +01:00
3f060684af might work, might not - ask chatgpt 2024-09-26 15:15:05 +01:00
90ee70bdef chore(deps): update ghcr.io/fluxcd/source-controller docker tag to v1.4.0 2024-09-26 14:01:55 +00:00
e151807d90 chore(deps): update ghcr.io/eraser-dev/eraser-manager docker tag to v1.5.0 2024-09-26 14:01:54 +00:00
f071b695ea chore(deps): update dependency helmrepository to source.toolkit.fluxcd.io/v1 2024-09-26 14:01:52 +00:00
faa091b8ac chore(deps): update dependency helmrelease to helm.toolkit.fluxcd.io/v2 2024-09-26 14:01:51 +00:00
118c384ad7 change interval to 5 mins 2024-09-26 14:59:13 +01:00
f553351c5a Merge branch 'master' of https://git.fascinated.cc/Fascinated/homelab-argocd 2024-09-26 14:52:20 +01:00
6eb7e56134 oopsie 2024-09-26 14:52:19 +01:00
Lee
80fbeb9aaa Merge pull request 'chore(deps): update flyimg/flyimg docker tag to v1.4.13' (#27) from renovate/flyimg-flyimg-1.x into master
All checks were successful
Check Kubernetes YAMLs / scan (push) Successful in 18s
Reviewed-on: #27
2024-09-26 13:50:36 +00:00
3a041a1e1e fix containerd path for talos 2024-09-26 14:50:23 +01:00
06ef30c97d make spegel priviliaged 2024-09-26 14:44:25 +01:00
71991a1b34 update readme 2024-09-26 14:42:01 +01:00
b40520f11b oops 2024-09-26 14:39:22 +01:00
040387339e add spegel 2024-09-26 14:39:09 +01:00
647e50ddf9 fix 2024-09-26 14:26:48 +01:00
3db60cda74 Merge branch 'master' of https://git.fascinated.cc/Fascinated/homelab-argocd 2024-09-26 14:25:08 +01:00
ff87e5e8ef add eraser 2024-09-26 14:25:07 +01:00
7e24f9e097 Add Flux v2.3.0 component manifests 2024-09-26 14:02:14 +01:00
bfcbb7ddbf Merge branch 'master' of https://git.fascinated.cc/Fascinated/homelab-argocd 2024-09-26 14:00:35 +01:00
e4bf53ddc9 update api ver 2024-09-26 14:00:34 +01:00
ac4d3b56e6 chore(deps): update flyimg/flyimg docker tag to v1.4.13
All checks were successful
Check Kubernetes YAMLs / scan (pull_request) Successful in 17s
2024-09-26 07:01:50 +00:00
Lee
224a384725 Merge pull request 'chore(deps): update ghcr.io/fluxcd/source-controller docker tag to v1.4.0' (#26) from renovate/ghcr.io-fluxcd-source-controller-1.x into master
Reviewed-on: #26
2024-09-25 23:48:56 +00:00
efd310e1e9 chore(deps): update ghcr.io/fluxcd/source-controller docker tag to v1.4.0 2024-09-25 19:02:04 +00:00
Lee
9cb9156d4a Update README.md 2024-09-25 14:29:51 +00:00
1fb2cedf28 disable searngx (mem usage is too much)
All checks were successful
Check Kubernetes YAMLs / scan (push) Successful in 20s
2024-09-24 08:01:21 +01:00
6318c34ad1 surely it'll work now
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 20s
2024-09-24 07:55:14 +01:00
6639673c00 now?!??!!?!!?!?!?!!?!?!?!?!?!
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 17s
2024-09-24 07:46:33 +01:00
861bff92ed now?!??!?!?!??!?!?
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 17s
2024-09-24 07:40:23 +01:00
7435a89d40 7
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 21s
2024-09-24 07:38:13 +01:00
0bf065ffc9 now?
All checks were successful
Check Kubernetes YAMLs / scan (push) Successful in 17s
2024-09-24 07:36:02 +01:00
df3a8eac72 meow.
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 18s
2024-09-24 07:33:44 +01:00
954b80c508 fix resource limits
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 17s
2024-09-24 07:32:57 +01:00
5b5dd72b6a I AM SO SMART
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 17s
2024-09-24 07:32:28 +01:00
8878f764a3 ports are helpful
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 18s
2024-09-24 07:31:10 +01:00
d0fcc1d6dc update resource limits for searngx
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 17s
2024-09-24 07:29:16 +01:00
7728f16fa6 fix redis url
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 17s
2024-09-24 07:26:18 +01:00
dd923ae991 fix secret env var
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 17s
2024-09-24 07:25:41 +01:00
bcfc194b4d maybe this?
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 19s
2024-09-24 07:20:43 +01:00
6bb410d8d0 maybe this will fix it?
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 17s
2024-09-24 07:18:35 +01:00
cb18fc6991 add configs to searngx
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 29s
2024-09-24 07:17:17 +01:00
60cad84180 fix mem limit
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 18s
2024-09-24 07:07:51 +01:00
3d88cad982 7
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 17s
2024-09-24 07:05:01 +01:00
c44e24d2f4 fix(apps): fix restart policy on searxng
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 18s
2024-09-24 07:03:19 +01:00
767985e5d5 feat(apps): add searxng
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 21s
2024-09-24 07:01:24 +01:00
602155cf53 fix linter paths 2024-09-24 06:51:22 +01:00
9909e7fa73 7
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 21s
2024-09-24 06:50:02 +01:00
fbbdde5f1e re-add drone but under disabled 2024-09-24 06:49:40 +01:00
a97fbbfa00 the drone support is awful for k8s.
All checks were successful
Check Kubernetes YAMLs / scan (push) Successful in 18s
2024-09-24 04:09:51 +01:00
b53eb881ad maybe maybe baby
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 19s
2024-09-24 04:03:42 +01:00
d6917fece0 idek what im doing
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 23s
2024-09-24 03:59:09 +01:00
402959e354 disable drone registation
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 18s
2024-09-24 01:39:00 +01:00
5eb53de71c enable drone registration
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 18s
2024-09-24 01:37:14 +01:00
99cb42c744 fix drone url
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 21s
2024-09-24 01:33:49 +01:00
7b8ab87016 update readme 2024-09-24 01:29:06 +01:00
f35129f8d2 update readme 2024-09-24 01:22:07 +01:00
4a2c9cf796 Add Flux sync manifests 2024-09-24 01:18:13 +01:00
b1a77f3ebb fix 2024-09-24 01:15:59 +01:00
1b2e2f48b2 oops 2024-09-24 01:14:48 +01:00
c5309a0d13 oops 2024-09-24 01:14:19 +01:00
bbf84a1fd2 use notifications 2024-09-24 01:13:18 +01:00
Lee
412a0cdc64 re-add drone
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 24s
revert remove drone
2024-09-23 23:59:54 +00:00
e6d3433ed1 remove drone
All checks were successful
Check Kubernetes YAMLs / scan (push) Successful in 16s
2024-09-23 23:40:36 +01:00
99f032e5ae i love and hate permissions
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 18s
2024-09-23 23:17:32 +01:00
d8b49d515c maybe this will fix it?
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 16s
2024-09-23 23:14:50 +01:00
2e1b2ebace now?
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 17s
2024-09-23 23:09:38 +01:00
8ea5fa1b4b oops
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 17s
2024-09-23 23:06:16 +01:00
e9fca673ca fix(apps): fix namespace for drone rbac
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 20s
2024-09-23 23:04:07 +01:00
ed63a5a6f0 fix(apps): drone - use https for the runner
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 19s
2024-09-23 23:01:09 +01:00
f65f2fdc53 expose drone
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 19s
2024-09-23 22:59:29 +01:00
8996017e2c smh (my head)
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 17s
2024-09-23 22:44:23 +01:00
Lee
138f7b2982 revert 1ac657d4f7292cecb0b57b0675a2846d54ada2a6
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 17s
revert guess i can't make it pretty :c
2024-09-23 21:43:44 +00:00
1ac657d4f7 guess i can't make it pretty :c
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 17s
2024-09-23 22:41:55 +01:00
abda2d20e7 fix(apps): fix clashing resource ids
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 17s
2024-09-23 22:39:28 +01:00
4a07c274a6 feat(apps): add drone runner and change the structure of the drone app
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 18s
2024-09-23 22:37:13 +01:00
a1b5e6b50f fix(apps): add resource limits and disable user registration for drone
All checks were successful
Check Kubernetes YAMLs / scan (push) Successful in 18s
2024-09-23 22:33:26 +01:00
a627d8ced3 feat(common): add sealed secrets script
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 17s
2024-09-23 22:29:21 +01:00
61fb1964c6 fix(apps): fix drone sealed secret 2024-09-23 22:29:11 +01:00
cb6fca88ab chore: update readme 2024-09-23 22:17:30 +01:00
0cb82395a2 fix(apps): oops - add names to the ports
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 17s
2024-09-23 22:12:37 +01:00
1b6562ba38 fix(apps): fix drone metadata name
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 18s
2024-09-23 22:10:05 +01:00
b89a0cd7c9 fix(apps): fix drone ci gitea endpoint
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 17s
2024-09-23 22:06:30 +01:00
0cc06ea7fd feat(apps): drone-ci
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 18s
2024-09-23 22:05:44 +01:00
8a0e065039 fix(infra): add missing values to sealed-secrets 2024-09-23 21:32:25 +01:00
14f7a519c6 fix(infra): add missing resource 2024-09-23 21:28:21 +01:00
89cf9d9cc6 feat(apps): add sealed-secrets 2024-09-23 21:27:04 +01:00
bb53d8c834 apps(flyimg): fix kustomization resources
All checks were successful
Check Kubernetes YAMLs / scan (push) Successful in 19s
2024-09-23 21:15:01 +01:00
f7aac46e00 app(flyimg): prefer avif over webp
All checks were successful
Check Kubernetes YAMLs / scan (push) Successful in 21s
2024-09-23 21:10:26 +01:00
fa06f7ef80 update traefik resource limits 2024-09-23 20:55:06 +01:00
d531b1207e disable traefik access log (no longer needed) 2024-09-23 10:49:49 +01:00
30dba403ce actually disable traefik metrics 2024-09-23 10:47:38 +01:00
faa9d3ee94 disable traefik metrics 2024-09-23 10:44:44 +01:00
4a5816859a fix spacing on readme 2024-09-23 10:36:05 +01:00
21ace17373 update todo 2024-09-23 10:35:22 +01:00
d9029563bc fix readme 2024-09-23 10:30:05 +01:00
aaefe79301 fix linter config
All checks were successful
Check Kubernetes YAMLs / scan (push) Successful in 18s
2024-09-23 10:28:32 +01:00
f8e3c15a12 oops
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 17s
2024-09-23 10:26:44 +01:00
39a98d5ee9 force run linter
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 17s
2024-09-23 10:25:53 +01:00
1fa9465b40 now ! 2024-09-23 10:25:21 +01:00
937b11ca35 disable run-as-non-root lint check
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 18s
2024-09-23 10:21:44 +01:00
3146a164a3 oops why are images in there 2024-09-23 10:16:51 +01:00
02e7b17f8a Merge branch 'master' of https://git.fascinated.cc/Fascinated/homelab-argocd 2024-09-23 10:15:36 +01:00
9bbc5f246e fix resouce limits for traefik 2024-09-23 10:15:35 +01:00
d3400bcdbc Add Flux sync manifests 2024-09-23 10:14:03 +01:00
7a0bade84f fix linter and flux paths 2024-09-23 10:13:51 +01:00
54 changed files with 1277 additions and 1350 deletions

View File

@ -14,10 +14,6 @@ insert_final_newline = true
indent_style = tab indent_style = tab
indent_size = 4 indent_size = 4
[*.md]
indent_size = 4
trim_trailing_whitespace = false
[{Dockerfile,*.bash,*.sh}] [{Dockerfile,*.bash,*.sh}]
indent_style = space indent_style = space
indent_size = 4 indent_size = 4

View File

@ -4,16 +4,17 @@ on:
push: push:
branches: [main, master] branches: [main, master]
paths: paths:
- "apps/**" - "kubernetes/apps/production/**"
pull_request: pull_request:
paths: paths:
- "apps/**" - "kubernetes/apps/production/**"
jobs: jobs:
scan: scan:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - name: Checkout
uses: actions/checkout@v4
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
@ -36,4 +37,4 @@ jobs:
- name: Scan yaml files with kube-linter - name: Scan yaml files with kube-linter
run: | run: |
kube-linter lint ./apps kube-linter lint ./kubernetes/apps/production --config kubelinter-config.yaml

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
kubeconfig kubeconfig
secrets.yaml secrets.yaml
talos-cluster

View File

@ -1,43 +1,42 @@
<!-- PROJECT LOGO --> <!-- PROJECT LOGO -->
<br /> <br />
<div align="center"> <div align="center">
<a href="https://github.com/github_username/repo_name"> <a href="https://git.fascinated.cc/Fascinated/homelab">
<img src="images/logo.png" alt="Logo" width="80" height="80"> <img src="images/logo.png" alt="Logo" width="80" height="80">
</a> </a>
<h3 align="center">Homelab</h3> <h3 align="center">Homelab</h3>
<p align="center"> <p align="center">
Welcome to the configuration for my homelab. Welcome to the configuration for my homelab.
<br /> <br />
<br /> <a href="https://git.fascinated.cc/Fascinated/home-ops/issues">Report Issue</a>
<a href="https://git.fascinated.cc/Fascinated/home-ops/issues">Report Bug</a>
· ·
<a href="https://git.fascinated.cc/Fascinated/home-ops/issues">Request Something</a> <a href="https://git.fascinated.cc/Fascinated/home-ops/issues">Request Feature/Service</a>
</p> </p>
</div> </div>
### Infrastructure ### Infrastructure
- ![Kubernetes][k8s] - [Kubernetes][k8s] - Isn't it obvious?
- ![Helm][helm] - [Helm][helm] - Easily deploy and manage Kubernetes applications
- ![Traefik][traefik] - [Traefik][traefik] - Web reverse proxy
- ![Cert Manager][cert-manager] - [Cert Manager][cert-manager] - Generates LetsEncrypt certificates
- ![Metallb][metallb] - [Metallb][metallb] - Load Balancer
- ![NFS][nfs] - [NFS][nfs] - Remote Storage for PVs
- ![FluxCD][fluxcd] - [FluxCD][fluxcd] - GitOps
- [Spegel][spegel] - Local Docker registry cache
- [Eraser][eraser] - Automated cleanup of old docker images
### Services ### Services
See [services](./apps/production/) for a list of services that I use in my homelab. See [services](./kubernetes/apps/production/) for a list of services that I use in my homelab.
<!-- TODO --> <!-- TODO -->
## Todo ## Todo
- [ ] Hashicorp Vault & Consul - [ ] Setup Grafana and Traefik metrics
- [ ] DroneCI
### Backlog ### Backlog
@ -63,10 +62,12 @@ Don't forget to give the project a star! Thanks again!
<!-- MARKDOWN LINKS & IMAGES --> <!-- MARKDOWN LINKS & IMAGES -->
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --> <!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
[fluxcd]: https://fluxcd.io [fluxcd]: https://fluxcd.io/
[k8s]: https://kubernetes.io [k8s]: https://kubernetes.io/
[helm]: https://helm.sh [helm]: https://helm.sh/
[traefik]: https://traefik.io [traefik]: https://traefik.io/
[cert-manager]: https://cert-manager.io [cert-manager]: https://cert-manager.io/
[metallb]: https://metallb.org [metallb]: https://metallb.org/
[nfs]: https://nfs.fascinated.cc [nfs]: https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner/
[spegel]: https://github.com/spegel-org/spegel/
[eraser]: https://github.com/eraser-dev/eraser/

30
common/seal-secret.sh Normal file
View File

@ -0,0 +1,30 @@
#!/bin/bash
# Function to seal a Kubernetes secret
seal_secret() {
local input_file="$1"
if [[ -z "$input_file" ]]; then
echo "Usage: seal <path-to-secret-file>"
exit 1
fi
if [[ ! -f "$input_file" ]]; then
echo "Error: File '$input_file' does not exist."
exit 1
fi
local output_file="$(dirname "$input_file")/sealed-$(basename "$input_file")"
echo "Sealing secret from '$input_file'..."
kubeseal --format=yaml < "$input_file" > "$output_file"
if [[ $? -eq 0 ]]; then
echo "Success! Sealed secret created at '$output_file'"
else
echo "Error: Failed to seal the secret."
exit 1
fi
}
# Call the function with the provided argument
seal_secret "$1"

View File

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

3
kubelinter-config.yaml Normal file
View File

@ -0,0 +1,3 @@
checks:
include: []
exclude: ["run-as-non-root", "no-read-only-root-fs"]

View File

@ -0,0 +1,13 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: drone-ci
resources:
- namespace.yaml
- ./server/sealed-secrets.yaml
- ./server/pvc.yaml
- ./server/server-deployment.yaml
- ./server/service.yaml
- ./server/ingress.yaml
- ./runner/runner-deployment.yaml
- ./runner/rbac.yaml

View File

@ -0,0 +1,7 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: drone-ci
labels:
pod-security.kubernetes.io/enforce: privileged

View File

@ -0,0 +1,70 @@
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: drone
namespace: drone-ci
rules:
- apiGroups:
- ""
resources:
- secrets
verbs:
- create
- delete
- apiGroups:
- ""
resources:
- pods
- pods/log
verbs:
- get
- create
- delete
- list
- watch
- update
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: drone
namespace: drone-ci
subjects:
- kind: ServiceAccount
name: default
namespace: drone-ci
roleRef:
kind: Role
name: drone
apiGroup: rbac.authorization.k8s.io
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: drone-deploy-sa
namespace: public-services
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
namespace: public-services
name: drone-deployment-manager
rules:
- apiGroups: ["apps"]
resources: ["deployments"]
verbs: ["get", "list", "create", "update", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: drone-deployment-manager-binding
namespace: public-services
subjects:
- kind: ServiceAccount
name: drone-deploy-sa
namespace: public-services
roleRef:
kind: Role
name: drone-deployment-manager
apiGroup: rbac.authorization.k8s.io

View File

@ -0,0 +1,41 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: drone-runner
namespace: drone-ci
labels:
app.kubernetes.io/name: drone
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: drone
template:
metadata:
labels:
app.kubernetes.io/name: drone
spec:
containers:
- name: runner
image: drone/drone-runner-kube:latest
ports:
- containerPort: 3000
resources:
requests:
cpu: 50m
memory: 75Mi
limits:
cpu: 100m
memory: 200Mi
env:
- name: DRONE_RPC_HOST
value: drone.fascinated.cc
- name: DRONE_RPC_PROTO
value: https
- name: DRONE_NAMESPACE_DEFAULT
value: drone-ci
- name: DRONE_RPC_SECRET
valueFrom:
secretKeyRef:
name: drone-secret
key: DRONE_RPC_SECRET

View File

@ -0,0 +1,22 @@
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: drone-ci-ingress
namespace: drone-ci
annotations:
kubernetes.io/ingress.class: traefik-external
spec:
entryPoints:
- websecure
routes:
- match: Host(`drone.fascinated.cc`)
kind: Rule
middlewares:
- name: default-headers
namespace: traefik
services:
- name: drone-service
port: 80
tls:
secretName: fascinated-cc

View File

@ -0,0 +1,12 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: drone-pvc
namespace: drone-ci
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi

View File

@ -0,0 +1,18 @@
---
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: drone-secret
namespace: drone-ci
spec:
encryptedData:
DRONE_GITEA_CLIENT_ID: AgBvs/BRqipwanwhehkG+efGyDYwbvkaYkOSsoW6PCqiKx3GX7wFUnSEEljoTLn8qCx7GKGT73KBcK6ItwFisAlJwFHTC7DtgCSJzpHBwHvbCWs+QtKumHCtgnj2XCHGs8yt4o9I9KClGl6mqKFfWAWiDAoBcY6YHCM5l23jh/ipglT1jcRGm+dxouZ5QCCNjHSEN/SD0wVv4bCajRmZ7fwOrJ9lsJFhfhu6hvm0UsFggsrtOGavk0TzwzUoeZPvGM7LOhFk5qAFFdJAMucErcfKlEKcxfPd4V0rwJTNaSQqSL01iEQLSdgwQqsypJxKpKz5D2aByEiYHe4HvpFzm0KnwaOth7MO6gmnp7+mb008MyUL4KSdcj82z76YjD5S9uU3XaeuxlEWrAU1obGWNzFU5E8a9L0iJIoOhH33kwcYhUFjloZ3S2mL0gyl2EpZ3tIXlXpjr8B0WXC/bgWOk5kq+veIaM2+jeTge7iLXhS/8rtxAy7tUk22jEK9ecXT5zqlLrTIpcJz3UMpKTh5N397vIGfRNJ1DoRPCL/UHXWTleNBQTijhGWDb+JcT70makwroXYOLQorZXOVbRLWCC/b+i9Aq8yVNhyBUJy0SR1qhkO4tCgZ5/E5+mXFJvjkH64JYHCyFDI/KPjzefby2HSINjTR1AD5mW+KKOfINMCffFD7Zy90jcd9iViU9JE4coqBRPG4v1lmoGPv++fnJEC5ZNoWKy2FMTkf5rt0cPtuBSsP8CU=
DRONE_GITEA_CLIENT_SECRET: AgBBub2TZ2xb6oVxTVHWZkdiVMo9zFNUrYxL0Iw1YeUFgZmJ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ABibAEImoblgrRD2IPbwlNymiZdAqXpwjj++sAgoHvBDUkFk48TkIXb0uxOmVFeevgxJgYyXP9DPqJVPj+CtSRxWle7pAODYpmf1avn4bOB4DXdJVR1IR9si8OYgTZW3Fz4Lxh8naOuaTrnyzJosJBrB3Nks9q96IZQHitnzBJZKEuEjhfp6oAzkgaYPej4q2EAy8DoIb8kltFyaA+f+0s+9ipQeXL5OKhfCzNq6vBFsOqn3g5wHse/86NH3FHZnHEmqlOw/4N18gsj+g09TqJSeDVm/Tbzq+eYyPV6KKNN2F/890VAieUo+AyoCznjjv85AXHjA5gfj3JQj7zczW7CyQolcXxvcxoE9+/7fiy6sDQgFciDo1qswFRnYpVML4Y/UBb3howbVMONAt/fSnytT/DB5EH6FLKBxFOzmM9yuTacu4jo1HQ==
template:
metadata:
creationTimestamp: null
name: drone-secret
namespace: drone-ci
type: Opaque

View File

@ -0,0 +1,62 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: drone-server
namespace: drone-ci
labels:
app: drone
spec:
replicas: 1
selector:
matchLabels:
app: drone
template:
metadata:
labels:
app: drone
spec:
containers:
- name: drone
image: drone/drone:2
ports:
- containerPort: 80
- containerPort: 443
resources:
requests:
cpu: 50m
memory: 75Mi
limits:
cpu: 100m
memory: 200Mi
env:
- name: DRONE_GITEA_SERVER
value: "https://git.fascinated.cc"
- name: DRONE_GITEA_CLIENT_ID
valueFrom:
secretKeyRef:
name: drone-secret
key: DRONE_GITEA_CLIENT_ID
- name: DRONE_GITEA_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: drone-secret
key: DRONE_GITEA_CLIENT_SECRET
- name: DRONE_RPC_SECRET
valueFrom:
secretKeyRef:
name: drone-secret
key: DRONE_RPC_SECRET
- name: DRONE_SERVER_HOST
value: "drone.fascinated.cc"
- name: DRONE_SERVER_PROTO
value: "https"
- name: DRONE_REGISTRATION_CLOSED
value: "true"
volumeMounts:
- name: drone-data
mountPath: /data
volumes:
- name: drone-data
persistentVolumeClaim:
claimName: drone-pvc

View File

@ -0,0 +1,19 @@
---
apiVersion: v1
kind: Service
metadata:
name: drone-service
namespace: drone-ci
spec:
type: ClusterIP
ports:
- name: http
port: 80
targetPort: 80
protocol: TCP
- name: https
port: 443
targetPort: 443
protocol: TCP
selector:
app: drone

View File

@ -0,0 +1,25 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: searxng-config
data:
limiter.toml: |
# This configuration file updates the default configuration file
# See https://github.com/searxng/searxng/blob/master/searx/limiter.toml
[botdetection.ip_limit]
# activate link_token method in the ip_limit method
link_token = true
settings.yml: |
# see https://docs.searxng.org/admin/settings/settings.html#settings-use-default-settings
use_default_settings: true
server:
# base_url is defined in the SEARXNG_BASE_URL environment variable, see .env and docker-compose.yml
limiter: true # can be disabled for a private instance
image_proxy: false
ui:
static_use_hash: true
redis:
url: redis://searxng-redis:6379/0

View File

@ -0,0 +1,47 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: searxng
namespace: public-services
spec:
replicas: 1
selector:
matchLabels:
app: searxng
template:
metadata:
labels:
app: searxng
spec:
containers:
- name: searxng
image: docker.io/searxng/searxng:2024.9.23-6be56aee1
ports:
- containerPort: 8080
env:
- name: SEARXNG_BASE_URL
value: "https://search.fascinated.cc"
- name: SEARXNG_SECRET
valueFrom:
secretKeyRef:
name: searxng-secret
key: secret_key
volumeMounts:
- name: searxng-config-volume
mountPath: /etc/searxng/limiter.toml
subPath: limiter.toml
- name: searxng-config-volume
mountPath: /etc/searxng/settings.yml
subPath: settings.yml
resources:
requests:
memory: "1024Mi"
cpu: "100m"
limits:
memory: "1024M"
cpu: "500m"
volumes:
- name: searxng-config-volume
configMap:
name: searxng-config

View File

@ -0,0 +1,21 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: searxng-ingress
namespace: public-services
annotations:
kubernetes.io/ingress.class: traefik-external
spec:
entryPoints:
- websecure
routes:
- match: Host(`search.fascinated.cc`)
kind: Rule
middlewares:
- name: default-headers
namespace: traefik
services:
- name: searxng-service
port: 8080
tls:
secretName: fascinated-cc

View File

@ -0,0 +1,13 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: public-services
resources:
- ./redis/pvc.yaml
- ./redis/redis.yaml
- ./redis/service.yaml
- config.yaml
- sealed-secrets.yaml
- deployment.yaml
- service.yaml
- ingress.yaml

View File

@ -0,0 +1,12 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: searxng-redis-pvc
namespace: public-services
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi

View File

@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: searxng-redis
namespace: public-services
spec:
replicas: 1
selector:
matchLabels:
app: searxng-redis
template:
metadata:
labels:
app: searxng-redis
spec:
containers:
- name: searxng-redis
image: docker.io/valkey/valkey:8-alpine
command:
["valkey-server", "--save", "30", "1", "--loglevel", "warning"]
ports:
- containerPort: 6379
volumeMounts:
- name: redis-data
mountPath: /data
resources:
limits:
memory: "128Mi"
cpu: "100m"
volumes:
- name: redis-data
persistentVolumeClaim:
claimName: searxng-redis-pvc

View File

@ -0,0 +1,13 @@
---
apiVersion: v1
kind: Service
metadata:
name: searxng-redis
namespace: public-services
spec:
type: ClusterIP
ports:
- port: 6379
targetPort: 6379
selector:
app: searxng-redis

View File

@ -0,0 +1,16 @@
---
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: searxng-secret
namespace: public-services
spec:
encryptedData:
secret_key: AgC0GFaPKSBszjmam9HxhhPIKPj3aTaa7BtMEJJBaPUGRA7wPi/9utkHcQL5MG/1HB2nHwfVmBKQY/nmJaYIZBCE+MGjLljjVED37rNEj6PCTcptA/b27+Rnbn7XxH8Zt19uBZapWf0TO8EZaHu/6B9cYIiThlQ0o5+Im7nwuMoYymQSpxMAAr7O6i5cF4XaehYxiNhP1YfveW34Uit/VCMG8qyVi03YBnxsgUKdMeb8krAL2p5zH15ELSd6CprfYdkB8xTZkFYXxEctKyYywsI6ZEC3G0f2R+lcJ46e19wEEZSaCvT1Nviij/jdt4zafHjdQ+U3ZH69Sc83KwNxKJ3hDRdhM2Nl6wDrftl5IFtMFyk2fwOOPPxd8i096dmMBKzljgNgUYzbH4E3f4LBBjaoW0Nrdgkg0wEJplolfpiZVEOtlCm+Jm9tCxEWGEIkrysuZCv90kmd41fJb+k43/J5oY25gMMzUgqEryjR1fXXexgTQoNd1YKOft6DvWy6jZw/RjZWpwxmBHjtxKx9tbr0kwIx/ZCGAQhZ/4LjYCvmP9axV5h7anBbBgiVMA36BJq6nxg//wJ2GMy4CXlIs1oFpob0zTWOg/aCPwzTfK2GrzYXH6xLFqN1ueTdXSxNjb6qi4aOwOFtmZ9z53ffT/XeKyHVgXsLCt6THc1TJVzaqeHL7eM93RtPWlSezdSf84MfzewokisJd3TD3dDoSzhob43ckHlbFV7lbclzPBUAdw==
template:
metadata:
creationTimestamp: null
name: searxng-secret
namespace: public-services
type: Opaque

View File

@ -0,0 +1,13 @@
---
apiVersion: v1
kind: Service
metadata:
name: searxng-service
namespace: public-services
spec:
type: ClusterIP
ports:
- port: 8080
targetPort: 8080
selector:
app: searxng

View File

@ -1,154 +0,0 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: flyimg-config
namespace: public-services
data:
parameters.yml: |
---
# Debug
debug: false
# Home page title
home_page_title: Flyimg
# Number of days for header cache expires `max_age`
header_cache_days: 365
# To enable the Cleanup Cronjob to purge the var/tmp folder
enable_cronjob_cleanup: true
# The cronjob interval to cleanup the var/tmp folder
cronjob_cleanup_interval: "0 */5 * * *"
# Options separator
# When changing this value, you should change the OPTIONS_SEPARATOR value in web/js/main.js!
options_separator: ','
# Security: Signature generation
# Security key
security_key: ''
# Secret Initialization vector(IV)
security_iv: ''
# Restrict domains, false by default
restricted_domains: false
# If restricted_domains is enabled, put whitelist domains here
whitelist_domains:
- domain-1.com
- domain-2.com
# Default storage system is local, to use AWS S3, change this param to s3
storage_system: local
# In case storage_system: s3, you need to add those AWS S3 parameters:
aws_s3:
access_id: ''
secret_key: ''
region: 'eu-central-1'
bucket_name: ''
# Number of threads for Imagemagick to use
thread: 1
# For Avif format: conversion speed parameter for the HEIF library.
heic_speed: 8
# Read source image timeout in seconds
source_image_request_timeout: 5
# When set to true the generated image will be deleted from the cache in web/upload and served directly in the response
disable_cache: false
# When supported by the browser, AVIF format will be served as default output
enable_avif: true
# When supported by the browser, Webp format will be served as default output (after checking AVIF support)
enable_webp: true
# Extra options for the header sent to source image server, as some servers requires the User-Agent.
header_extra_options:
- 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; rv:2.2) Gecko/20110201'
# List of request header to forward to source image server (example Authorization)
forward_request_headers: []
# Keys used in url to match options. Ex: q_80,w_200,h_100
options_keys:
q: quality
o: output
unsh: unsharp
sh: sharpen
blr: blur
fc: face-crop
fcp: face-crop-position
fb: face-blur
w: width
h: height
c: crop
bg: background
st: strip
ao: auto-orient
rz: resize
g: gravity
f: filter
r: rotate
sc: scale
sf: sampling-factor
rf: refresh
smc: smart-crop
ett: extent
par: preserve-aspect-ratio
pns: preserve-natural-size
webpl: webp-lossless
gf: gif-frame
e: extract
p1x: extract-top-x
p1y: extract-top-y
p2x: extract-bottom-x
p2y: extract-bottom-y
pdfp: pdf-page-number
tm: time
clsp: colorspace
mnchr: monochrome
# Default options values
default_options:
quality: 70
output: webp
unsharp: null
sharpen: null
blur: null
face-crop: 0
face-crop-position: 0
face-blur: 0
width: null
height: null
crop: null
background: null
strip: 1
auto-orient: 0
resize: null
gravity: Center
filter: Lanczos
rotate: null
scale: null
sampling-factor: 1x1
refresh: false
smart-crop: false
extent: null
preserve-aspect-ratio: 1
preserve-natural-size: 1
webp-lossless: 0
gif-frame: 0
extract: null
extract-top-x: null
extract-top-y: null
extract-bottom-x: null
extract-bottom-y: null
pdf-page-number: 1
time: '00:00:01'
colorspace: 'sRGB'
monochrome: null

View File

@ -16,11 +16,9 @@ spec:
spec: spec:
containers: containers:
- name: flyimg-container - name: flyimg-container
image: flyimg/flyimg:1.4.12 image: flyimg/flyimg:1.4.13
securityContext: securityContext:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
ports: ports:
- containerPort: 80 - containerPort: 80
resources: resources:
@ -33,13 +31,7 @@ spec:
volumeMounts: volumeMounts:
- name: flyimg-storage - name: flyimg-storage
mountPath: /var/www/html/web/uploads mountPath: /var/www/html/web/uploads
- name: config-volume
mountPath: /var/www/html/config/parameters.yml
subPath: parameters.yml
volumes: volumes:
- name: flyimg-storage - name: flyimg-storage
persistentVolumeClaim: persistentVolumeClaim:
claimName: flyimg-pvc claimName: flyimg-pvc
- name: config-volume
configMap:
name: flyimg-config

View File

@ -1,7 +1,7 @@
apiVersion: traefik.io/v1alpha1 apiVersion: traefik.io/v1alpha1
kind: IngressRoute kind: IngressRoute
metadata: metadata:
name: capacitor-external-ingress name: capacitor-ingress
namespace: public-services namespace: public-services
annotations: annotations:
kubernetes.io/ingress.class: traefik-external kubernetes.io/ingress.class: traefik-external

View File

@ -3,7 +3,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
namespace: public-services namespace: public-services
resources: resources:
- config.yaml
- pvc.yaml - pvc.yaml
- deployment.yaml - deployment.yaml
- service.yaml - service.yaml

View File

@ -5,12 +5,12 @@ metadata:
name: apps name: apps
namespace: flux-system namespace: flux-system
spec: spec:
interval: 10m0s interval: 5m0s
dependsOn: dependsOn:
- name: infrastructure - name: infrastructure
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository
name: flux-system name: flux-system
path: ./apps/production path: ./kubernetes/apps/production
prune: true prune: true
wait: true wait: true

View File

@ -12331,7 +12331,7 @@ spec:
resourceFieldRef: resourceFieldRef:
containerName: manager containerName: manager
resource: limits.memory resource: limits.memory
image: ghcr.io/fluxcd/notification-controller:v1.3.0 image: ghcr.io/fluxcd/notification-controller:v1.4.0
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
livenessProbe: livenessProbe:
httpGet: httpGet:

View File

@ -6,12 +6,12 @@ metadata:
name: flux-system name: flux-system
namespace: flux-system namespace: flux-system
spec: spec:
interval: 10s interval: 1m0s
ref: ref:
branch: master branch: master
secretRef: secretRef:
name: flux-system name: flux-system
url: https://git.fascinated.cc/fascinated/home-ops.git url: https://git.fascinated.cc/fascinated/homelab.git
--- ---
apiVersion: kustomize.toolkit.fluxcd.io/v1 apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization kind: Kustomization
@ -20,7 +20,7 @@ metadata:
namespace: flux-system namespace: flux-system
spec: spec:
interval: 10m0s interval: 10m0s
path: ./clusters/production path: ./kubernetes/clusters/production
prune: true prune: true
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository

View File

@ -5,10 +5,10 @@ metadata:
name: infrastructure name: infrastructure
namespace: flux-system namespace: flux-system
spec: spec:
interval: 10m0s interval: 5m0s
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository
name: flux-system name: flux-system
path: ./infrastructure path: ./kubernetes/infrastructure
prune: true prune: true
wait: true wait: true

View File

@ -5,7 +5,7 @@ metadata:
name: volsync-repository name: volsync-repository
namespace: backups namespace: backups
spec: spec:
interval: 12h interval: 5m0s
url: https://backube.github.io/helm-charts/ url: https://backube.github.io/helm-charts/
--- ---
apiVersion: helm.toolkit.fluxcd.io/v2 apiVersion: helm.toolkit.fluxcd.io/v2

View File

@ -5,7 +5,7 @@ metadata:
name: cert-manager name: cert-manager
namespace: cert-manager namespace: cert-manager
spec: spec:
interval: 12h interval: 5m0s
url: https://charts.jetstack.io url: https://charts.jetstack.io
--- ---
apiVersion: helm.toolkit.fluxcd.io/v2 apiVersion: helm.toolkit.fluxcd.io/v2

View File

@ -8,7 +8,7 @@ spec:
interval: 30m interval: 30m
url: https://github.com/traefik/traefik-helm-chart.git url: https://github.com/traefik/traefik-helm-chart.git
ref: ref:
tag: v31.1.1 tag: v32.0.0
ignore: | ignore: |
# exclude all # exclude all
/* /*

View File

@ -0,0 +1,549 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
control-plane: controller-manager
name: eraser-system
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.0
creationTimestamp: null
name: imagejobs.eraser.sh
spec:
group: eraser.sh
names:
kind: ImageJob
listKind: ImageJobList
plural: imagejobs
singular: imagejob
scope: Cluster
versions:
- name: v1
schema:
openAPIV3Schema:
description: ImageJob is the Schema for the imagejobs API.
properties:
apiVersion:
description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
type: string
kind:
description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
type: string
metadata:
type: object
status:
description: ImageJobStatus defines the observed state of ImageJob.
properties:
deleteAfter:
description: Time to delay deletion until
format: date-time
type: string
desired:
description: desired number of pods
type: integer
failed:
description: number of pods that failed
type: integer
phase:
description: job running, successfully completed, or failed
type: string
skipped:
description: number of nodes that were skipped e.g. because they are not a linux node
type: integer
succeeded:
description: number of pods that completed successfully
type: integer
required:
- desired
- failed
- phase
- skipped
- succeeded
type: object
type: object
served: true
storage: true
subresources:
status: {}
- deprecated: true
deprecationWarning: v1alpha1 of the eraser API has been deprecated. Please migrate to v1.
name: v1alpha1
schema:
openAPIV3Schema:
description: ImageJob is the Schema for the imagejobs API.
properties:
apiVersion:
description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
type: string
kind:
description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
type: string
metadata:
type: object
status:
description: ImageJobStatus defines the observed state of ImageJob.
properties:
deleteAfter:
description: Time to delay deletion until
format: date-time
type: string
desired:
description: desired number of pods
type: integer
failed:
description: number of pods that failed
type: integer
phase:
description: job running, successfully completed, or failed
type: string
skipped:
description: number of nodes that were skipped e.g. because they are not a linux node
type: integer
succeeded:
description: number of pods that completed successfully
type: integer
required:
- desired
- failed
- phase
- skipped
- succeeded
type: object
type: object
served: true
storage: false
subresources:
status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.0
creationTimestamp: null
name: imagelists.eraser.sh
spec:
group: eraser.sh
names:
kind: ImageList
listKind: ImageListList
plural: imagelists
singular: imagelist
scope: Cluster
versions:
- name: v1
schema:
openAPIV3Schema:
description: ImageList is the Schema for the imagelists API.
properties:
apiVersion:
description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
type: string
kind:
description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
type: string
metadata:
type: object
spec:
description: ImageListSpec defines the desired state of ImageList.
properties:
images:
description: The list of non-compliant images to delete if non-running.
items:
type: string
type: array
required:
- images
type: object
status:
description: ImageListStatus defines the observed state of ImageList.
properties:
failed:
description: Number of nodes that failed to run the job
format: int64
type: integer
skipped:
description: Number of nodes that were skipped due to a skip selector
format: int64
type: integer
success:
description: Number of nodes that successfully ran the job
format: int64
type: integer
timestamp:
description: Information when the job was completed.
format: date-time
type: string
required:
- failed
- skipped
- success
- timestamp
type: object
type: object
served: true
storage: true
subresources:
status: {}
- deprecated: true
deprecationWarning: v1alpha1 of the eraser API has been deprecated. Please migrate to v1.
name: v1alpha1
schema:
openAPIV3Schema:
description: ImageList is the Schema for the imagelists API.
properties:
apiVersion:
description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
type: string
kind:
description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
type: string
metadata:
type: object
spec:
description: ImageListSpec defines the desired state of ImageList.
properties:
images:
description: The list of non-compliant images to delete if non-running.
items:
type: string
type: array
required:
- images
type: object
status:
description: ImageListStatus defines the observed state of ImageList.
properties:
failed:
description: Number of nodes that failed to run the job
format: int64
type: integer
skipped:
description: Number of nodes that were skipped due to a skip selector
format: int64
type: integer
success:
description: Number of nodes that successfully ran the job
format: int64
type: integer
timestamp:
description: Information when the job was completed.
format: date-time
type: string
required:
- failed
- skipped
- success
- timestamp
type: object
type: object
served: true
storage: false
subresources:
status: {}
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: eraser-controller-manager
namespace: eraser-system
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: eraser-imagejob-pods
namespace: eraser-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: eraser-imagejob-pods-cluster-role
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: eraser-manager-role
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- pods
verbs:
- create
- delete
- get
- list
- update
- watch
- apiGroups:
- ""
resources:
- podtemplates
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- eraser.sh
resources:
- imagejobs
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- eraser.sh
resources:
- imagejobs/status
verbs:
- get
- patch
- update
- apiGroups:
- eraser.sh
resources:
- imagelists
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- eraser.sh
resources:
- imagelists/status
verbs:
- get
- patch
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: eraser-imagejob-pods-cluster-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: eraser-imagejob-pods-cluster-role
subjects:
- kind: ServiceAccount
name: eraser-imagejob-pods
namespace: eraser-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: eraser-manager-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: eraser-manager-role
subjects:
- kind: ServiceAccount
name: eraser-controller-manager
namespace: eraser-system
---
apiVersion: v1
data:
controller_manager_config.yaml: |
apiVersion: eraser.sh/v1alpha3
kind: EraserConfig
manager:
runtime:
name: containerd
address: unix:///run/containerd/containerd.sock
otlpEndpoint: ""
logLevel: info
scheduling:
repeatInterval: 24h
beginImmediately: true
profile:
enabled: false
port: 6060
imageJob:
successRatio: 1.0
cleanup:
delayOnSuccess: 0s
delayOnFailure: 24h
pullSecrets: [] # image pull secrets for collector/scanner/eraser
priorityClassName: "" # priority class name for collector/scanner/eraser
nodeFilter:
type: exclude # must be either exclude|include
selectors:
- eraser.sh/cleanup.filter
- kubernetes.io/os=windows
components:
collector:
enabled: true
image:
repo: ghcr.io/eraser-dev/collector
tag: v1.4.0-beta.0
request:
mem: 25Mi
cpu: 7m
limit:
mem: 500Mi
# https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#how-pods-with-resource-limits-are-run
cpu: 0
scanner:
enabled: true
image:
repo: ghcr.io/eraser-dev/eraser-trivy-scanner # supply custom image for custom scanner
tag: v1.4.0-beta.0
request:
mem: 500Mi
cpu: 1000m
limit:
mem: 2Gi
# https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#how-pods-with-resource-limits-are-run
cpu: 0
# The config needs to be passed through to the scanner as yaml, as a
# single string. Because we allow custom scanner images, the scanner is
# responsible for defining a schema, parsing, and validating.
config: |
# this is the schema for the provided 'trivy-scanner'. custom scanners
# will define their own configuration.
cacheDir: /var/lib/trivy
dbRepo: ghcr.io/aquasecurity/trivy-db
deleteFailedImages: true
deleteEOLImages: true
vulnerabilities:
ignoreUnfixed: true
types:
- os
- library
securityChecks:
- vuln
severities:
- CRITICAL
- HIGH
- MEDIUM
- LOW
ignoredStatuses:
timeout:
total: 23h
perImage: 1h
remover:
image:
repo: ghcr.io/eraser-dev/remover
tag: v1.4.0-beta.0
request:
mem: 25Mi
# https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#how-pods-with-resource-limits-are-run
cpu: 0
limit:
mem: 30Mi
cpu: 0
kind: ConfigMap
metadata:
name: eraser-manager-config
namespace: eraser-system
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
control-plane: controller-manager
name: eraser-controller-manager
namespace: eraser-system
spec:
replicas: 1
selector:
matchLabels:
control-plane: controller-manager
template:
metadata:
labels:
control-plane: controller-manager
spec:
containers:
- args:
- --config=/config/controller_manager_config.yaml
command:
- /manager
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: OTEL_SERVICE_NAME
value: eraser-manager
image: ghcr.io/eraser-dev/eraser-manager:v1.5.0-beta.0
livenessProbe:
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
name: manager
readinessProbe:
httpGet:
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
resources:
limits:
memory: 30Mi
requests:
cpu: 100m
memory: 20Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsGroup: 65532
runAsNonRoot: true
runAsUser: 65532
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /config
name: manager-config
nodeSelector:
kubernetes.io/os: linux
serviceAccountName: eraser-controller-manager
terminationGracePeriodSeconds: 10
volumes:
- configMap:
name: eraser-manager-config
name: manager-config

View File

@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: eraser-system
resources:
- eraser.yaml

View File

@ -0,0 +1,8 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: flux-system
resources:
- ./notification/sealed-secrets.yaml
- ./notification/reciever.yaml
- ./notification/ingress.yaml

View File

@ -0,0 +1,22 @@
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: flux-notifications-ingress
namespace: flux-system
annotations:
kubernetes.io/ingress.class: traefik-external
spec:
entryPoints:
- websecure
routes:
- match: Host(`flux-notifications.local.fascinated.cc`)
kind: Rule
middlewares:
- name: default-headers
namespace: traefik
services:
- name: notification-controller
port: 80
tls:
secretName: fascinated-cc

View File

@ -0,0 +1,16 @@
---
apiVersion: notification.toolkit.fluxcd.io/v1
kind: Receiver
metadata:
name: webapp
namespace: flux-system
spec:
type: github
events:
- "ping"
- "push"
secretRef:
name: notification-secret
resources:
- kind: GitRepository
name: webapp

View File

@ -0,0 +1,16 @@
---
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: notification-secret
namespace: flux-system
spec:
encryptedData:
token: AgB9gxfRBYdK3njhBAyXkKsFDSxncYLfO33bvV4Rq7hu4H6OM43xseXveMoSN5+Bw9gvjoaIkn/2Z7pUXNCIUwzG+JAtkDDyY25Xkmu53FN96f3ZUFBQyvtPcB3WTai3spki8GABqLUUkRFX3j7j+hBKLLdryKpkv77OSs/rh0K6V+LhtDjedSW+dKaywPA2kwf1jaX4T675fZpe0h5xpiV1KWO+mHyAmF03CgCC2LvnpCze1/6ZToU6EC+hETe2W6r3fDMxffnkggDgDO0hGy6py4ID00TFXd23dMHu/72caUUgFZGgKTkCF5/+AvOPNoVAaZSrs1V9xPPljYyCzDTucV8O7TfrG6tvsyPG74wU+y9R1OAbq/ZWBh8grMB8zfRHNKMbpGnCphcnB98vkZLQXAnlWYpCJOmerkQYBxiMs3l6XBbDPURuyO2/xOJe70XXDQ7BPA7ZsCilNQNSm+xY9U0Uf8g9oycNBhFoy96+b3VMy7VvAl0smsBPu4VuUwGxAJTftAmqT6lBFoordynEcUiL+q/xph7gKEZj6JQtNibrw5p8k1V8MreoWZe2DmeelgDvZcT7QpPgrHDvbCKNeHM2xFlOzgemBK8+/+Qcr9gZAJGQKE8ppUssD5zDECzk76A2mZ7/tJkGQFaFrC5zh7WDnpMfdXDkQac5e6hKFDAvuBckfgcLok8AAMlCeQgDcdwjlnrGXs1ZFYbvf73gIoAJknB9WZ44tM0I7Um3nzlqGXn5GF2S
template:
metadata:
creationTimestamp: null
name: notification-secret
namespace: flux-system
type: Opaque

View File

@ -3,12 +3,16 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- namespaces - namespaces
- sealed-secrets
- cert-manager - cert-manager
- crds - crds
- metallb - metallb
- fluxci
- nfs - nfs
- traefik - traefik
- capacitor - capacitor
- monitoring - monitoring
- alerting/flux - alerting/flux
- eraser
- spegel
#- backup #- backup

View File

@ -5,7 +5,7 @@ metadata:
name: monitoring name: monitoring
namespace: monitoring namespace: monitoring
spec: spec:
interval: 12h interval: 5m0s
url: https://prometheus-community.github.io/helm-charts url: https://prometheus-community.github.io/helm-charts
--- ---
apiVersion: helm.toolkit.fluxcd.io/v2 apiVersion: helm.toolkit.fluxcd.io/v2
@ -18,7 +18,7 @@ spec:
chart: chart:
spec: spec:
chart: kube-prometheus-stack chart: kube-prometheus-stack
version: "62.7.0" version: "63.1.0"
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: monitoring name: monitoring
@ -56,3 +56,20 @@ spec:
resources: resources:
requests: requests:
storage: 50Gi storage: 50Gi
# ServiceMonitor configurations
serviceMonitors:
node-exporter:
metricRelabelings:
- action: replace
regex: (.*)
replacement: $1
sourceLabels:
- __meta_kubernetes_pod_node_name
targetLabel: kubernetes_node
kubelet:
metricRelabelings:
- action: replace
sourceLabels:
- node
targetLabel: instance

View File

@ -5,7 +5,7 @@ metadata:
name: csi-driver-nfs name: csi-driver-nfs
namespace: kube-system namespace: kube-system
spec: spec:
interval: 12h interval: 5m0s
url: https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/charts url: https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/charts
--- ---
apiVersion: helm.toolkit.fluxcd.io/v2 apiVersion: helm.toolkit.fluxcd.io/v2

View File

@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kube-system
resources:
- sealed-secrets.yaml

View File

@ -0,0 +1,28 @@
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: sealed-secrets
namespace: kube-system
spec:
interval: 5m0s
url: https://bitnami-labs.github.io/sealed-secrets
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: sealed-secrets
namespace: kube-system
spec:
interval: 30m
chart:
spec:
chart: sealed-secrets
version: "2.16.1"
sourceRef:
kind: HelmRepository
name: sealed-secrets
namespace: kube-system
interval: 12h
values:
fullnameOverride: "sealed-secrets-controller"

View File

@ -0,0 +1,7 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: spegel
resources:
- namespace.yaml
- spegel.yaml

View File

@ -0,0 +1,7 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: spegel
labels:
pod-security.kubernetes.io/enforce: privileged

View File

@ -0,0 +1,42 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: spegel
namespace: spegel
spec:
type: "oci"
interval: 5m0s
url: oci://ghcr.io/spegel-org/helm-charts
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: spegel
namespace: spegel
spec:
interval: 1m
chart:
spec:
chart: spegel
version: "v0.0.24"
interval: 5m
sourceRef:
kind: HelmRepository
name: spegel
values:
spegel:
containerdRegistryConfigPath: /etc/cri/conf.d/hosts
registries:
[
"https://cgr.dev",
"https://docker.io",
"https://ghcr.io",
"https://quay.io",
"https://mcr.microsoft.com",
"https://public.ecr.aws",
"https://gcr.io",
"https://registry.k8s.io",
"https://k8s.gcr.io",
"https://lscr.io",
"https://git.fascinated.cc",
]

View File

@ -5,7 +5,7 @@ metadata:
name: traefik name: traefik
namespace: traefik namespace: traefik
spec: spec:
interval: 12h interval: 5m0s
url: https://helm.traefik.io/traefik url: https://helm.traefik.io/traefik
--- ---
apiVersion: helm.toolkit.fluxcd.io/v2 apiVersion: helm.toolkit.fluxcd.io/v2
@ -18,7 +18,7 @@ spec:
chart: chart:
spec: spec:
chart: traefik chart: traefik
version: "31.1.1" version: "32.0.0"
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: traefik name: traefik
@ -31,17 +31,21 @@ spec:
additionalArguments: additionalArguments:
- "--serversTransport.insecureSkipVerify=true" - "--serversTransport.insecureSkipVerify=true"
- "--log.level=INFO"
- "--providers.kubernetescrd.allowCrossNamespace=true" - "--providers.kubernetescrd.allowCrossNamespace=true"
- "--accesslog=true" - "--log.level=INFO"
#- "--accesslog=true"
resources: resources:
limits:
cpu: 100m
memory: 128Mi
requests: requests:
cpu: 500m cpu: 50m
memory: 1Gi # Update when traefik fixes their shitty mem leak memory: 256Mi
limits:
cpu: 200m
memory: 512Mi # Update when traefik fixes their shitty mem leak
# Disable metrics
metrics:
prometheus: null
deployment: deployment:
enabled: true enabled: true

View File

@ -1,547 +0,0 @@
version: v1alpha1 # Indicates the schema used to decode the contents.
debug: false # Enable verbose logging to the console.
persist: true
# Provides machine specific configuration options.
machine:
type: controlplane # Defines the role of the machine within the cluster.
token: 5ab53f.syav4oqxxfjhkgvt # The `token` is used by a machine to join the PKI of the cluster.
# The root certificate authority of the PKI.
ca:
crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJQakNCOGFBREFnRUNBaEExa1dmcVNjNVNxRWZjSENObXRCb2ZNQVVHQXl0bGNEQVFNUTR3REFZRFZRUUsKRXdWMFlXeHZjekFlRncweU5EQTVNakV4T1RRNU1qUmFGdzB6TkRBNU1Ua3hPVFE1TWpSYU1CQXhEakFNQmdOVgpCQW9UQlhSaGJHOXpNQ293QlFZREsyVndBeUVBcDdCcExBbUEwWlMrYXJINWJHek1kRHRLTlVnQWVuZ2p4TmliCkw5Mm0zbkdqWVRCZk1BNEdBMVVkRHdFQi93UUVBd0lDaERBZEJnTlZIU1VFRmpBVUJnZ3JCZ0VGQlFjREFRWUkKS3dZQkJRVUhBd0l3RHdZRFZSMFRBUUgvQkFVd0F3RUIvekFkQmdOVkhRNEVGZ1FVSXZhb2FvRTRscFNDOUNqZApmV1k3TE5OZkh3Y3dCUVlESzJWd0EwRUFEQnFRSmZiOTVlbWJjSTVzNW52NW9lblRqc3RpOEpjaVYrbUppellUCjFYU1FsTm1uTngyVjJqSVhaclB2cCtXQWNkU1dVKzdnM3kvbUJITjlGL2hRQkE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
key: LS0tLS1CRUdJTiBFRDI1NTE5IFBSSVZBVEUgS0VZLS0tLS0KTUM0Q0FRQXdCUVlESzJWd0JDSUVJQWUzUUQ0OWM1bnZycjNWeGd4dklDc25yQ29JM3ZiMWRmV0JEbnlYcjhKNwotLS0tLUVORCBFRDI1NTE5IFBSSVZBVEUgS0VZLS0tLS0K
# Extra certificate subject alternative names for the machine's certificate.
certSANs: []
# # Uncomment this to enable SANs.
# - 10.0.0.10
# - 172.16.0.10
# - 192.168.0.10
# Used to provide additional options to the kubelet.
kubelet:
image: ghcr.io/siderolabs/kubelet:v1.30.3 # The `image` field is an optional reference to an alternative kubelet image.
defaultRuntimeSeccompProfileEnabled: true # Enable container runtime default Seccomp profile.
disableManifestsDirectory: true # The `disableManifestsDirectory` field configures the kubelet to get static pod manifests from the /etc/kubernetes/manifests directory.
# # The `ClusterDNS` field is an optional reference to an alternative kubelet clusterDNS ip list.
# clusterDNS:
# - 10.96.0.10
# - 169.254.2.53
# # The `extraArgs` field is used to provide additional flags to the kubelet.
# extraArgs:
# key: value
# # The `extraMounts` field is used to add additional mounts to the kubelet container.
# extraMounts:
# - destination: /var/lib/example # Destination is the absolute path where the mount will be placed in the container.
# type: bind # Type specifies the mount kind.
# source: /var/lib/example # Source specifies the source path of the mount.
# # Options are fstab style mount options.
# options:
# - bind
# - rshared
# - rw
# # The `extraConfig` field is used to provide kubelet configuration overrides.
# extraConfig:
# serverTLSBootstrap: true
# # The `KubeletCredentialProviderConfig` field is used to provide kubelet credential configuration.
# credentialProviderConfig:
# apiVersion: kubelet.config.k8s.io/v1
# kind: CredentialProviderConfig
# providers:
# - apiVersion: credentialprovider.kubelet.k8s.io/v1
# defaultCacheDuration: 12h
# matchImages:
# - '*.dkr.ecr.*.amazonaws.com'
# - '*.dkr.ecr.*.amazonaws.com.cn'
# - '*.dkr.ecr-fips.*.amazonaws.com'
# - '*.dkr.ecr.us-iso-east-1.c2s.ic.gov'
# - '*.dkr.ecr.us-isob-east-1.sc2s.sgov.gov'
# name: ecr-credential-provider
# # The `nodeIP` field is used to configure `--node-ip` flag for the kubelet.
# nodeIP:
# # The `validSubnets` field configures the networks to pick kubelet node IP from.
# validSubnets:
# - 10.0.0.0/8
# - '!10.0.0.3/32'
# - fdc7::/16
# Provides machine specific network configuration options.
network: {}
# # `interfaces` is used to define the network interface configuration.
# interfaces:
# - interface: enp0s1 # The interface name.
# # Assigns static IP addresses to the interface.
# addresses:
# - 192.168.2.0/24
# # A list of routes associated with the interface.
# routes:
# - network: 0.0.0.0/0 # The route's network (destination).
# gateway: 192.168.2.1 # The route's gateway (if empty, creates link scope route).
# metric: 1024 # The optional metric for the route.
# mtu: 1500 # The interface's MTU.
#
# # # Picks a network device using the selector.
# # # select a device with bus prefix 00:*.
# # deviceSelector:
# # busPath: 00:* # PCI, USB bus prefix, supports matching by wildcard.
# # # select a device with mac address matching `*:f0:ab` and `virtio` kernel driver.
# # deviceSelector:
# # hardwareAddr: '*:f0:ab' # Device hardware address, supports matching by wildcard.
# # driver: virtio # Kernel driver, supports matching by wildcard.
# # # select a device with bus prefix 00:*, a device with mac address matching `*:f0:ab` and `virtio` kernel driver.
# # deviceSelector:
# # - busPath: 00:* # PCI, USB bus prefix, supports matching by wildcard.
# # - hardwareAddr: '*:f0:ab' # Device hardware address, supports matching by wildcard.
# # driver: virtio # Kernel driver, supports matching by wildcard.
# # # Bond specific options.
# # bond:
# # # The interfaces that make up the bond.
# # interfaces:
# # - enp2s0
# # - enp2s1
# # # Picks a network device using the selector.
# # deviceSelectors:
# # - busPath: 00:* # PCI, USB bus prefix, supports matching by wildcard.
# # - hardwareAddr: '*:f0:ab' # Device hardware address, supports matching by wildcard.
# # driver: virtio # Kernel driver, supports matching by wildcard.
# # mode: 802.3ad # A bond option.
# # lacpRate: fast # A bond option.
# # # Bridge specific options.
# # bridge:
# # # The interfaces that make up the bridge.
# # interfaces:
# # - enxda4042ca9a51
# # - enxae2a6774c259
# # # A bridge option.
# # stp:
# # enabled: true # Whether Spanning Tree Protocol (STP) is enabled.
# # # Indicates if DHCP should be used to configure the interface.
# # dhcp: true
# # # DHCP specific options.
# # dhcpOptions:
# # routeMetric: 1024 # The priority of all routes received via DHCP.
# # # Wireguard specific configuration.
# # # wireguard server example
# # wireguard:
# # privateKey: ABCDEF... # Specifies a private key configuration (base64 encoded).
# # listenPort: 51111 # Specifies a device's listening port.
# # # Specifies a list of peer configurations to apply to a device.
# # peers:
# # - publicKey: ABCDEF... # Specifies the public key of this peer.
# # endpoint: 192.168.1.3 # Specifies the endpoint of this peer entry.
# # # AllowedIPs specifies a list of allowed IP addresses in CIDR notation for this peer.
# # allowedIPs:
# # - 192.168.1.0/24
# # # wireguard peer example
# # wireguard:
# # privateKey: ABCDEF... # Specifies a private key configuration (base64 encoded).
# # # Specifies a list of peer configurations to apply to a device.
# # peers:
# # - publicKey: ABCDEF... # Specifies the public key of this peer.
# # endpoint: 192.168.1.2:51822 # Specifies the endpoint of this peer entry.
# # persistentKeepaliveInterval: 10s # Specifies the persistent keepalive interval for this peer.
# # # AllowedIPs specifies a list of allowed IP addresses in CIDR notation for this peer.
# # allowedIPs:
# # - 192.168.1.0/24
# # # Virtual (shared) IP address configuration.
# # # layer2 vip example
# # vip:
# # ip: 172.16.199.55 # Specifies the IP address to be used.
# # Used to statically set the nameservers for the machine.
# nameservers:
# - 8.8.8.8
# - 1.1.1.1
# # Allows for extra entries to be added to the `/etc/hosts` file
# extraHostEntries:
# - ip: 192.168.1.100 # The IP of the host.
# # The host alias.
# aliases:
# - example
# - example.domain.tld
# # Configures KubeSpan feature.
# kubespan:
# enabled: true # Enable the KubeSpan feature.
# Used to provide instructions for installations.
install:
disk: /dev/sda # The disk used for installations.
image: ghcr.io/siderolabs/installer:v1.7.6 # Allows for supplying the image used to perform the installation.
wipe: false # Indicates if the installation disk should be wiped at installation time.
# # Look up disk using disk attributes like model, size, serial and others.
# diskSelector:
# size: 4GB # Disk size.
# model: WDC* # Disk model `/sys/block/<dev>/device/model`.
# busPath: /pci0000:00/0000:00:17.0/ata1/host0/target0:0:0/0:0:0:0 # Disk bus path.
# # Allows for supplying extra kernel args via the bootloader.
# extraKernelArgs:
# - talos.platform=metal
# - reboot=k
# # Allows for supplying additional system extension images to install on top of base Talos image.
# extensions:
# - image: ghcr.io/siderolabs/gvisor:20220117.0-v1.0.0 # System extension image.
# Used to configure the machine's container image registry mirrors.
registries: {}
# # Specifies mirror configuration for each registry host namespace.
# mirrors:
# ghcr.io:
# # List of endpoints (URLs) for registry mirrors to use.
# endpoints:
# - https://registry.insecure
# - https://ghcr.io/v2/
# # Specifies TLS & auth configuration for HTTPS image registries.
# config:
# registry.insecure:
# # The TLS configuration for the registry.
# tls:
# insecureSkipVerify: true # Skip TLS server certificate verification (not recommended).
#
# # # Enable mutual TLS authentication with the registry.
# # clientIdentity:
# # crt: LS0tIEVYQU1QTEUgQ0VSVElGSUNBVEUgLS0t
# # key: LS0tIEVYQU1QTEUgS0VZIC0tLQ==
#
# # # The auth configuration for this registry.
# # auth:
# # username: username # Optional registry authentication.
# # password: password # Optional registry authentication.
# Features describe individual Talos features that can be switched on or off.
features:
rbac: true # Enable role-based access control (RBAC).
stableHostname: true # Enable stable default hostname.
apidCheckExtKeyUsage: true # Enable checks for extended key usage of client certificates in apid.
diskQuotaSupport: true # Enable XFS project quota support for EPHEMERAL partition and user disks.
# KubePrism - local proxy/load balancer on defined port that will distribute
kubePrism:
enabled: true # Enable KubePrism support - will start local load balancing proxy.
port: 7445 # KubePrism port.
# Configures host DNS caching resolver.
hostDNS:
enabled: true # Enable host DNS caching resolver.
# # Configure Talos API access from Kubernetes pods.
# kubernetesTalosAPIAccess:
# enabled: true # Enable Talos API access from Kubernetes pods.
# # The list of Talos API roles which can be granted for access from Kubernetes pods.
# allowedRoles:
# - os:reader
# # The list of Kubernetes namespaces Talos API access is available from.
# allowedKubernetesNamespaces:
# - kube-system
# # Provides machine specific control plane configuration options.
# # ControlPlane definition example.
# controlPlane:
# # Controller manager machine specific configuration options.
# controllerManager:
# disabled: false # Disable kube-controller-manager on the node.
# # Scheduler machine specific configuration options.
# scheduler:
# disabled: true # Disable kube-scheduler on the node.
# # Used to provide static pod definitions to be run by the kubelet directly bypassing the kube-apiserver.
# # nginx static pod.
# pods:
# - apiVersion: v1
# kind: pod
# metadata:
# name: nginx
# spec:
# containers:
# - image: nginx
# name: nginx
# # Used to partition, format and mount additional disks.
# # MachineDisks list example.
# disks:
# - device: /dev/sdb # The name of the disk to use.
# # A list of partitions to create on the disk.
# partitions:
# - mountpoint: /var/mnt/extra # Where to mount the partition.
#
# # # The size of partition: either bytes or human readable representation. If `size:` is omitted, the partition is sized to occupy the full disk.
# # # Human readable representation.
# # size: 100 MB
# # # Precise value in bytes.
# # size: 1073741824
# # Allows the addition of user specified files.
# # MachineFiles usage example.
# files:
# - content: '...' # The contents of the file.
# permissions: 0o666 # The file's permissions in octal.
# path: /tmp/file.txt # The path of the file.
# op: append # The operation to use
# # The `env` field allows for the addition of environment variables.
# # Environment variables definition examples.
# env:
# GRPC_GO_LOG_SEVERITY_LEVEL: info
# GRPC_GO_LOG_VERBOSITY_LEVEL: "99"
# https_proxy: http://SERVER:PORT/
# env:
# GRPC_GO_LOG_SEVERITY_LEVEL: error
# https_proxy: https://USERNAME:PASSWORD@SERVER:PORT/
# env:
# https_proxy: http://DOMAIN\USERNAME:PASSWORD@SERVER:PORT/
# # Used to configure the machine's time settings.
# # Example configuration for cloudflare ntp server.
# time:
# disabled: false # Indicates if the time service is disabled for the machine.
# # description: |
# servers:
# - time.cloudflare.com
# bootTimeout: 2m0s # Specifies the timeout when the node time is considered to be in sync unlocking the boot sequence.
# # Used to configure the machine's sysctls.
# # MachineSysctls usage example.
# sysctls:
# kernel.domainname: talos.dev
# net.ipv4.ip_forward: "0"
# net/ipv6/conf/eth0.100/disable_ipv6: "1"
# # Used to configure the machine's sysfs.
# # MachineSysfs usage example.
# sysfs:
# devices.system.cpu.cpu0.cpufreq.scaling_governor: performance
# # Machine system disk encryption configuration.
# systemDiskEncryption:
# # Ephemeral partition encryption.
# ephemeral:
# provider: luks2 # Encryption provider to use for the encryption.
# # Defines the encryption keys generation and storage method.
# keys:
# - # Deterministically generated key from the node UUID and PartitionLabel.
# nodeID: {}
# slot: 0 # Key slot number for LUKS2 encryption.
#
# # # KMS managed encryption key.
# # kms:
# # endpoint: https://192.168.88.21:4443 # KMS endpoint to Seal/Unseal the key.
#
# # # Cipher kind to use for the encryption. Depends on the encryption provider.
# # cipher: aes-xts-plain64
# # # Defines the encryption sector size.
# # blockSize: 4096
# # # Additional --perf parameters for the LUKS2 encryption.
# # options:
# # - no_read_workqueue
# # - no_write_workqueue
# # Configures the udev system.
# udev:
# # List of udev rules to apply to the udev system
# rules:
# - SUBSYSTEM=="drm", KERNEL=="renderD*", GROUP="44", MODE="0660"
# # Configures the logging system.
# logging:
# # Logging destination.
# destinations:
# - endpoint: tcp://1.2.3.4:12345 # Where to send logs. Supported protocols are "tcp" and "udp".
# format: json_lines # Logs format.
# # Configures the kernel.
# kernel:
# # Kernel modules to load.
# modules:
# - name: brtfs # Module name.
# # Configures the seccomp profiles for the machine.
# seccompProfiles:
# - name: audit.json # The `name` field is used to provide the file name of the seccomp profile.
# # The `value` field is used to provide the seccomp profile.
# value:
# defaultAction: SCMP_ACT_LOG
# # Configures the node labels for the machine.
# # node labels example.
# nodeLabels:
# exampleLabel: exampleLabelValue
# # Configures the node taints for the machine. Effect is optional.
# # node taints example.
# nodeTaints:
# exampleTaint: exampleTaintValue:NoSchedule
# Provides cluster specific configuration options.
cluster:
id: 5wojSDc7TVbIkS2ard2EyFd9450s1asuoPU6BkDHVmA= # Globally unique identifier for this cluster (base64 encoded random 32 bytes).
secret: T+H+CyyVS3nYAyPl45PsRGWOzdnvRoHmjp57l2FOcV0= # Shared secret of cluster (base64 encoded random 32 bytes).
# Provides control plane specific configuration options.
controlPlane:
endpoint: https://10.0.69.162:6443 # Endpoint is the canonical controlplane endpoint, which can be an IP address or a DNS hostname.
clusterName: hl-cluster # Configures the cluster's name.
# Provides cluster specific network configuration options.
network:
dnsDomain: cluster.local # The domain used by Kubernetes DNS.
# The pod subnet CIDR.
podSubnets:
- 10.244.0.0/16
# The service subnet CIDR.
serviceSubnets:
- 10.96.0.0/12
# # The CNI used.
# cni:
# name: custom # Name of CNI to use.
# # URLs containing manifests to apply for the CNI.
# urls:
# - https://docs.projectcalico.org/archive/v3.20/manifests/canal.yaml
token: 3t3mw0.htvvap2rultkiu6l # The [bootstrap token](https://kubernetes.io/docs/reference/access-authn-authz/bootstrap-tokens/) used to join the cluster.
secretboxEncryptionSecret: uW0Dpxwyi9X6KxDpCx2+fcLFN5dt/HQPJwXRBRAAdYk= # A key used for the [encryption of secret data at rest](https://kubernetes.io/docs/tasks/administer-cluster/encrypt-data/).
# The base64 encoded root certificate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ENIbHhKZE9BdApzem9kZjBBcUYvSG9GeDRjaXRoSUpJQTloMktsVmJzRGhBPT0KLS0tLS1FTkQgRUMgUFJJVkFURSBLRVktLS0tLQo=
# The base64 encoded private key for service account token generation.
serviceAccount:
key: LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlKS1FJQkFBS0NBZ0VBeHVBM05kMDZBT2xET250QWJJbmpYWUU2ak43NFRYVklUcWlOV3UxcmwzMEJJWEExCndob2ttN25oL3VMb1JXRTIweWg0SkRYa2tTMjI5THI3THRCOUE1NG5ETkc4V1NhTW5ldlFacU1oK1VkWXpNOWcKanNjbTBUdUxISWRTdUtXdlgrSlpaWTMwSmxVZ2Y0aDIzUDhMQUg4WnN3b0t1RTFwWHZGZ0gva01WclVrZUtmawppT0VyT2VDWjlnNWIrMEJqd1UxMUQxaHhZdU1iaUJ2azJYVGVmdjFDSnRZcm05WHA0UEo2RFRHQzBOTFh5L0tUCkg0QUR2S1lOdkorZWJDemIza2pRZlc0TW8vd3FFeDI5Zi93eC8xVFV3UGttSWl1WXdYRVBKY3hDb1VOTHhIUnMKRnNhYzlWc1NBWjA2YUFsL1o2a1NJa2VnM0pteUp1OFhBUm5xcS9UOHNSYmsvdEdCNmsrTTltZnh6c2Q0bVJ0UQpuTTJJaU5RaEkrRjY3ZVZLY0NCS21VODlsVnJnTUx0MUJJQzJvUHRlNytlaFVYSUJoQldVd0pFTHlVTDhyZ0dxCmJOczRzTmJSY0F4UnY2a1FwdFh0S241WWpEVlBLOXREOElpZUdJbFA5dFZMYzVSR1grd1BwbW15ODU1aGVVRGEKV1U3NVJVU29LOHFYdjBWYUJ5U2tNVU1tZTNlbmpkUlRMd1FGU25kOXp6WC9NdHM0ajJ3eEgxeDBKWnhsK09qNQpINU1jbExEeFZpUjY1NWV6VU9xdWtYQWlDTzlhN0ZDN1NsVFV1b2xNMzlCUzBLZVFJV2FEODJNeGZJSVU3V3R3CnQwQjBwLzF5MWpmaCs4N28yZkF2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FIZkM0RG8KOVJwTkNKWW9ZK3hHSzYrZHA4b0NhL2k0VUttazduQitvUC9iRXB2Y05ydFB2OTd0Z1JaUjQweEZQM3N0YmhLWgp1TVAyODN4TkkwSk42QThoaEFLRjYwSlJnTnk5R2pyU2dCaEpaUWVBZUx2S0s2RGZYbTBocDRZSEZybWUKLS0tLS1FTkQgUlNBIFBSSVZBVEUgS0VZLS0tLS0K
# API server specific configuration options.
apiServer:
image: registry.k8s.io/kube-apiserver:v1.30.3 # The container image used in the API server manifest.
# Extra certificate subject alternative names for the API server's certificate.
certSANs:
- 10.0.69.162
disablePodSecurityPolicy: true # Disable PodSecurityPolicy in the API server and default manifests.
# Configure the API server admission plugins.
admissionControl:
- name: PodSecurity # Name is the name of the admission controller.
# Configuration is an embedded configuration object to be used as the plugin's
configuration:
apiVersion: pod-security.admission.config.k8s.io/v1alpha1
defaults:
audit: restricted
audit-version: latest
enforce: baseline
enforce-version: latest
warn: restricted
warn-version: latest
exemptions:
namespaces:
- kube-system
runtimeClasses: []
usernames: []
kind: PodSecurityConfiguration
# Configure the API server audit policy.
auditPolicy:
apiVersion: audit.k8s.io/v1
kind: Policy
rules:
- level: Metadata
# Controller manager server specific configuration options.
controllerManager:
image: registry.k8s.io/kube-controller-manager:v1.30.3 # The container image used in the controller manager manifest.
# Kube-proxy server-specific configuration options
proxy:
image: registry.k8s.io/kube-proxy:v1.30.3 # The container image used in the kube-proxy manifest.
# # Disable kube-proxy deployment on cluster bootstrap.
# disabled: false
# Scheduler server specific configuration options.
scheduler:
image: registry.k8s.io/kube-scheduler:v1.30.3 # The container image used in the scheduler manifest.
# Configures cluster member discovery.
discovery:
enabled: true # Enable the cluster membership discovery feature.
# Configure registries used for cluster member discovery.
registries:
# Kubernetes registry uses Kubernetes API server to discover cluster members and stores additional information
kubernetes:
disabled: true # Disable Kubernetes discovery registry.
# Service registry is using an external service to push and pull information about cluster members.
service: {}
# # External service endpoint.
# endpoint: https://discovery.talos.dev/
# Etcd specific configuration options.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aUNnWFhOa0IxZThnPT0KLS0tLS1FTkQgRUMgUFJJVkFURSBLRVktLS0tLQo=
# # The container image used to create the etcd service.
# image: gcr.io/etcd-development/etcd:v3.5.13
# # The `advertisedSubnets` field configures the networks to pick etcd advertised IP from.
# advertisedSubnets:
# - 10.0.0.0/8
# A list of urls that point to additional manifests.
extraManifests: []
# - https://www.example.com/manifest1.yaml
# - https://www.example.com/manifest2.yaml
# A list of inline Kubernetes manifests.
inlineManifests: []
# - name: namespace-ci # Name of the manifest.
# contents: |- # Manifest contents as a string.
# apiVersion: v1
# kind: Namespace
# metadata:
# name: ci
# # A key used for the [encryption of secret data at rest](https://kubernetes.io/docs/tasks/administer-cluster/encrypt-data/).
# # Decryption secret example (do not use in production!).
# aescbcEncryptionSecret: z01mye6j16bspJYtTB/5SFX8j7Ph4JXxM2Xuu4vsBPM=
# # Core DNS specific configuration options.
# coreDNS:
# image: registry.k8s.io/coredns/coredns:v1.11.1 # The `image` field is an override to the default coredns image.
# # External cloud provider configuration.
# externalCloudProvider:
# enabled: true # Enable external cloud provider.
# # A list of urls that point to additional manifests for an external cloud provider.
# manifests:
# - https://raw.githubusercontent.com/kubernetes/cloud-provider-aws/v1.20.0-alpha.0/manifests/rbac.yaml
# - https://raw.githubusercontent.com/kubernetes/cloud-provider-aws/v1.20.0-alpha.0/manifests/aws-cloud-controller-manager-daemonset.yaml
# # A map of key value pairs that will be added while fetching the extraManifests.
# extraManifestHeaders:
# Token: "1234567"
# X-ExtraInfo: info
# # Settings for admin kubeconfig generation.
# adminKubeconfig:
# certLifetime: 1h0m0s # Admin kubeconfig certificate lifetime (default is 1 year).
# # Allows running workload on control-plane nodes.
# allowSchedulingOnControlPlanes: true

View File

@ -1,10 +0,0 @@
context: hl-cluster
contexts:
hl-cluster:
endpoints:
- 10.0.69.162
nodes:
- 10.0.69.162
ca: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJQakNCOGFBREFnRUNBaEExa1dmcVNjNVNxR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VUxCejN3TTErQzhDM2pJSk1sM0N2UmdxWW1nbDUxZ3Zqd3hkaWJDT2x4SXJzUEZDbmIzcjZSd2hSNUFqCkwxVTVnZGZFVHpQblNzQU0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
key: LS0tLS1CRUdJTiBFRDI1NTE5IFBSSVZBVEUgS0VZLS0tLS0KTUM0Q0FRQXdCUVlESzJWd0JDSUVJS2dvcWRnZVU0Y0ljNFBIR0N2NGFPaGhUM3M3eHM2RGVKWE9IL05yQTJQcAotLS0tLUVORCBFRDI1NTE5IFBSSVZBVEUgS0VZLS0tLS0K

View File

@ -1,574 +0,0 @@
version: v1alpha1 # Indicates the schema used to decode the contents.
debug: false # Enable verbose logging to the console.
persist: true
# Provides machine specific configuration options.
machine:
type: worker # Defines the role of the machine within the cluster.
token: 5ab53f.syav4oqxxfjhkgvt # The `token` is used by a machine to join the PKI of the cluster.
# The root certificate authority of the PKI.
ca:
crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJQakNCOGFBREFnRUNBaEExa1dmcVNjNVNxRWZjSENObXRCb2ZNQVVHQXl0bGNEQVFNUTR3REFZRFZRUUsKRXdWMFlXeHZjekFlRncweU5EQTVNakV4T1RRNU1qUmFGdzB6TkRBNU1Ua3hPVFE1TWpSYU1CQXhEakFNQmdOVgpCQW9UQlhSaGJHOXpNQ293QlFZREsyVndBeUVBcDdCcExBbUEwWlMrYXJINWJHek1kRHRLTlVnQWVuZ2p4TmliCkw5Mm0zbkdqWVRCZk1BNEdBMVVkRHdFQi93UUVBd0lDaERBZEJnTlZIU1VFRmpBVUJnZ3JCZ0VGQlFjREFRWUkKS3dZQkJRVUhBd0l3RHdZRFZSMFRBUUgvQkFVd0F3RUIvekFkQmdOVkhRNEVGZ1FVSXZhb2FvRTRscFNDOUNqZApmV1k3TE5OZkh3Y3dCUVlESzJWd0EwRUFEQnFRSmZiOTVlbWJjSTVzNW52NW9lblRqc3RpOEpjaVYrbUppellUCjFYU1FsTm1uTngyVjJqSVhaclB2cCtXQWNkU1dVKzdnM3kvbUJITjlGL2hRQkE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
key: ""
# Extra certificate subject alternative names for the machine's certificate.
certSANs: []
# # Uncomment this to enable SANs.
# - 10.0.0.10
# - 172.16.0.10
# - 192.168.0.10
# Used to provide additional options to the kubelet.
kubelet:
image: ghcr.io/siderolabs/kubelet:v1.30.3 # The `image` field is an optional reference to an alternative kubelet image.
defaultRuntimeSeccompProfileEnabled: true # Enable container runtime default Seccomp profile.
disableManifestsDirectory: true # The `disableManifestsDirectory` field configures the kubelet to get static pod manifests from the /etc/kubernetes/manifests directory.
# # The `ClusterDNS` field is an optional reference to an alternative kubelet clusterDNS ip list.
# clusterDNS:
# - 10.96.0.10
# - 169.254.2.53
# # The `extraArgs` field is used to provide additional flags to the kubelet.
# extraArgs:
# key: value
# # The `extraMounts` field is used to add additional mounts to the kubelet container.
# extraMounts:
# - destination: /var/lib/example # Destination is the absolute path where the mount will be placed in the container.
# type: bind # Type specifies the mount kind.
# source: /var/lib/example # Source specifies the source path of the mount.
# # Options are fstab style mount options.
# options:
# - bind
# - rshared
# - rw
# # The `extraConfig` field is used to provide kubelet configuration overrides.
# extraConfig:
# serverTLSBootstrap: true
# # The `KubeletCredentialProviderConfig` field is used to provide kubelet credential configuration.
# credentialProviderConfig:
# apiVersion: kubelet.config.k8s.io/v1
# kind: CredentialProviderConfig
# providers:
# - apiVersion: credentialprovider.kubelet.k8s.io/v1
# defaultCacheDuration: 12h
# matchImages:
# - '*.dkr.ecr.*.amazonaws.com'
# - '*.dkr.ecr.*.amazonaws.com.cn'
# - '*.dkr.ecr-fips.*.amazonaws.com'
# - '*.dkr.ecr.us-iso-east-1.c2s.ic.gov'
# - '*.dkr.ecr.us-isob-east-1.sc2s.sgov.gov'
# name: ecr-credential-provider
# # The `nodeIP` field is used to configure `--node-ip` flag for the kubelet.
# nodeIP:
# # The `validSubnets` field configures the networks to pick kubelet node IP from.
# validSubnets:
# - 10.0.0.0/8
# - '!10.0.0.3/32'
# - fdc7::/16
# Provides machine specific network configuration options.
network: {}
# # `interfaces` is used to define the network interface configuration.
# interfaces:
# - interface: enp0s1 # The interface name.
# # Assigns static IP addresses to the interface.
# addresses:
# - 192.168.2.0/24
# # A list of routes associated with the interface.
# routes:
# - network: 0.0.0.0/0 # The route's network (destination).
# gateway: 192.168.2.1 # The route's gateway (if empty, creates link scope route).
# metric: 1024 # The optional metric for the route.
# mtu: 1500 # The interface's MTU.
#
# # # Picks a network device using the selector.
# # # select a device with bus prefix 00:*.
# # deviceSelector:
# # busPath: 00:* # PCI, USB bus prefix, supports matching by wildcard.
# # # select a device with mac address matching `*:f0:ab` and `virtio` kernel driver.
# # deviceSelector:
# # hardwareAddr: '*:f0:ab' # Device hardware address, supports matching by wildcard.
# # driver: virtio # Kernel driver, supports matching by wildcard.
# # # select a device with bus prefix 00:*, a device with mac address matching `*:f0:ab` and `virtio` kernel driver.
# # deviceSelector:
# # - busPath: 00:* # PCI, USB bus prefix, supports matching by wildcard.
# # - hardwareAddr: '*:f0:ab' # Device hardware address, supports matching by wildcard.
# # driver: virtio # Kernel driver, supports matching by wildcard.
# # # Bond specific options.
# # bond:
# # # The interfaces that make up the bond.
# # interfaces:
# # - enp2s0
# # - enp2s1
# # # Picks a network device using the selector.
# # deviceSelectors:
# # - busPath: 00:* # PCI, USB bus prefix, supports matching by wildcard.
# # - hardwareAddr: '*:f0:ab' # Device hardware address, supports matching by wildcard.
# # driver: virtio # Kernel driver, supports matching by wildcard.
# # mode: 802.3ad # A bond option.
# # lacpRate: fast # A bond option.
# # # Bridge specific options.
# # bridge:
# # # The interfaces that make up the bridge.
# # interfaces:
# # - enxda4042ca9a51
# # - enxae2a6774c259
# # # A bridge option.
# # stp:
# # enabled: true # Whether Spanning Tree Protocol (STP) is enabled.
# # # Indicates if DHCP should be used to configure the interface.
# # dhcp: true
# # # DHCP specific options.
# # dhcpOptions:
# # routeMetric: 1024 # The priority of all routes received via DHCP.
# # # Wireguard specific configuration.
# # # wireguard server example
# # wireguard:
# # privateKey: ABCDEF... # Specifies a private key configuration (base64 encoded).
# # listenPort: 51111 # Specifies a device's listening port.
# # # Specifies a list of peer configurations to apply to a device.
# # peers:
# # - publicKey: ABCDEF... # Specifies the public key of this peer.
# # endpoint: 192.168.1.3 # Specifies the endpoint of this peer entry.
# # # AllowedIPs specifies a list of allowed IP addresses in CIDR notation for this peer.
# # allowedIPs:
# # - 192.168.1.0/24
# # # wireguard peer example
# # wireguard:
# # privateKey: ABCDEF... # Specifies a private key configuration (base64 encoded).
# # # Specifies a list of peer configurations to apply to a device.
# # peers:
# # - publicKey: ABCDEF... # Specifies the public key of this peer.
# # endpoint: 192.168.1.2:51822 # Specifies the endpoint of this peer entry.
# # persistentKeepaliveInterval: 10s # Specifies the persistent keepalive interval for this peer.
# # # AllowedIPs specifies a list of allowed IP addresses in CIDR notation for this peer.
# # allowedIPs:
# # - 192.168.1.0/24
# # # Virtual (shared) IP address configuration.
# # # layer2 vip example
# # vip:
# # ip: 172.16.199.55 # Specifies the IP address to be used.
# # Used to statically set the nameservers for the machine.
# nameservers:
# - 8.8.8.8
# - 1.1.1.1
# # Allows for extra entries to be added to the `/etc/hosts` file
# extraHostEntries:
# - ip: 192.168.1.100 # The IP of the host.
# # The host alias.
# aliases:
# - example
# - example.domain.tld
# # Configures KubeSpan feature.
# kubespan:
# enabled: true # Enable the KubeSpan feature.
# Used to provide instructions for installations.
install:
disk: /dev/sda # The disk used for installations.
image: ghcr.io/siderolabs/installer:v1.7.6 # Allows for supplying the image used to perform the installation.
wipe: false # Indicates if the installation disk should be wiped at installation time.
# # Look up disk using disk attributes like model, size, serial and others.
# diskSelector:
# size: 4GB # Disk size.
# model: WDC* # Disk model `/sys/block/<dev>/device/model`.
# busPath: /pci0000:00/0000:00:17.0/ata1/host0/target0:0:0/0:0:0:0 # Disk bus path.
# # Allows for supplying extra kernel args via the bootloader.
# extraKernelArgs:
# - talos.platform=metal
# - reboot=k
# # Allows for supplying additional system extension images to install on top of base Talos image.
# extensions:
# - image: ghcr.io/siderolabs/gvisor:20220117.0-v1.0.0 # System extension image.
# Used to configure the machine's container image registry mirrors.
registries: {}
# # Specifies mirror configuration for each registry host namespace.
# mirrors:
# ghcr.io:
# # List of endpoints (URLs) for registry mirrors to use.
# endpoints:
# - https://registry.insecure
# - https://ghcr.io/v2/
# # Specifies TLS & auth configuration for HTTPS image registries.
# config:
# registry.insecure:
# # The TLS configuration for the registry.
# tls:
# insecureSkipVerify: true # Skip TLS server certificate verification (not recommended).
#
# # # Enable mutual TLS authentication with the registry.
# # clientIdentity:
# # crt: LS0tIEVYQU1QTEUgQ0VSVElGSUNBVEUgLS0t
# # key: LS0tIEVYQU1QTEUgS0VZIC0tLQ==
#
# # # The auth configuration for this registry.
# # auth:
# # username: username # Optional registry authentication.
# # password: password # Optional registry authentication.
# Features describe individual Talos features that can be switched on or off.
features:
rbac: true # Enable role-based access control (RBAC).
stableHostname: true # Enable stable default hostname.
apidCheckExtKeyUsage: true # Enable checks for extended key usage of client certificates in apid.
diskQuotaSupport: true # Enable XFS project quota support for EPHEMERAL partition and user disks.
# KubePrism - local proxy/load balancer on defined port that will distribute
kubePrism:
enabled: true # Enable KubePrism support - will start local load balancing proxy.
port: 7445 # KubePrism port.
# Configures host DNS caching resolver.
hostDNS:
enabled: true # Enable host DNS caching resolver.
# # Configure Talos API access from Kubernetes pods.
# kubernetesTalosAPIAccess:
# enabled: true # Enable Talos API access from Kubernetes pods.
# # The list of Talos API roles which can be granted for access from Kubernetes pods.
# allowedRoles:
# - os:reader
# # The list of Kubernetes namespaces Talos API access is available from.
# allowedKubernetesNamespaces:
# - kube-system
# # Provides machine specific control plane configuration options.
# # ControlPlane definition example.
# controlPlane:
# # Controller manager machine specific configuration options.
# controllerManager:
# disabled: false # Disable kube-controller-manager on the node.
# # Scheduler machine specific configuration options.
# scheduler:
# disabled: true # Disable kube-scheduler on the node.
# # Used to provide static pod definitions to be run by the kubelet directly bypassing the kube-apiserver.
# # nginx static pod.
# pods:
# - apiVersion: v1
# kind: pod
# metadata:
# name: nginx
# spec:
# containers:
# - image: nginx
# name: nginx
# # Used to partition, format and mount additional disks.
# # MachineDisks list example.
# disks:
# - device: /dev/sdb # The name of the disk to use.
# # A list of partitions to create on the disk.
# partitions:
# - mountpoint: /var/mnt/extra # Where to mount the partition.
#
# # # The size of partition: either bytes or human readable representation. If `size:` is omitted, the partition is sized to occupy the full disk.
# # # Human readable representation.
# # size: 100 MB
# # # Precise value in bytes.
# # size: 1073741824
# # Allows the addition of user specified files.
# # MachineFiles usage example.
# files:
# - content: '...' # The contents of the file.
# permissions: 0o666 # The file's permissions in octal.
# path: /tmp/file.txt # The path of the file.
# op: append # The operation to use
# # The `env` field allows for the addition of environment variables.
# # Environment variables definition examples.
# env:
# GRPC_GO_LOG_SEVERITY_LEVEL: info
# GRPC_GO_LOG_VERBOSITY_LEVEL: "99"
# https_proxy: http://SERVER:PORT/
# env:
# GRPC_GO_LOG_SEVERITY_LEVEL: error
# https_proxy: https://USERNAME:PASSWORD@SERVER:PORT/
# env:
# https_proxy: http://DOMAIN\USERNAME:PASSWORD@SERVER:PORT/
# # Used to configure the machine's time settings.
# # Example configuration for cloudflare ntp server.
# time:
# disabled: false # Indicates if the time service is disabled for the machine.
# # description: |
# servers:
# - time.cloudflare.com
# bootTimeout: 2m0s # Specifies the timeout when the node time is considered to be in sync unlocking the boot sequence.
# # Used to configure the machine's sysctls.
# # MachineSysctls usage example.
# sysctls:
# kernel.domainname: talos.dev
# net.ipv4.ip_forward: "0"
# net/ipv6/conf/eth0.100/disable_ipv6: "1"
# # Used to configure the machine's sysfs.
# # MachineSysfs usage example.
# sysfs:
# devices.system.cpu.cpu0.cpufreq.scaling_governor: performance
# # Machine system disk encryption configuration.
# systemDiskEncryption:
# # Ephemeral partition encryption.
# ephemeral:
# provider: luks2 # Encryption provider to use for the encryption.
# # Defines the encryption keys generation and storage method.
# keys:
# - # Deterministically generated key from the node UUID and PartitionLabel.
# nodeID: {}
# slot: 0 # Key slot number for LUKS2 encryption.
#
# # # KMS managed encryption key.
# # kms:
# # endpoint: https://192.168.88.21:4443 # KMS endpoint to Seal/Unseal the key.
#
# # # Cipher kind to use for the encryption. Depends on the encryption provider.
# # cipher: aes-xts-plain64
# # # Defines the encryption sector size.
# # blockSize: 4096
# # # Additional --perf parameters for the LUKS2 encryption.
# # options:
# # - no_read_workqueue
# # - no_write_workqueue
# # Configures the udev system.
# udev:
# # List of udev rules to apply to the udev system
# rules:
# - SUBSYSTEM=="drm", KERNEL=="renderD*", GROUP="44", MODE="0660"
# # Configures the logging system.
# logging:
# # Logging destination.
# destinations:
# - endpoint: tcp://1.2.3.4:12345 # Where to send logs. Supported protocols are "tcp" and "udp".
# format: json_lines # Logs format.
# # Configures the kernel.
# kernel:
# # Kernel modules to load.
# modules:
# - name: brtfs # Module name.
# # Configures the seccomp profiles for the machine.
# seccompProfiles:
# - name: audit.json # The `name` field is used to provide the file name of the seccomp profile.
# # The `value` field is used to provide the seccomp profile.
# value:
# defaultAction: SCMP_ACT_LOG
# # Configures the node labels for the machine.
# # node labels example.
# nodeLabels:
# exampleLabel: exampleLabelValue
# # Configures the node taints for the machine. Effect is optional.
# # node taints example.
# nodeTaints:
# exampleTaint: exampleTaintValue:NoSchedule
# Provides cluster specific configuration options.
cluster:
id: 5wojSDc7TVbIkS2ard2EyFd9450s1asuoPU6BkDHVmA= # Globally unique identifier for this cluster (base64 encoded random 32 bytes).
secret: T+H+CyyVS3nYAyPl45PsRGWOzdnvRoHmjp57l2FOcV0= # Shared secret of cluster (base64 encoded random 32 bytes).
# Provides control plane specific configuration options.
controlPlane:
endpoint: https://10.0.69.162:6443 # Endpoint is the canonical controlplane endpoint, which can be an IP address or a DNS hostname.
# Provides cluster specific network configuration options.
network:
dnsDomain: cluster.local # The domain used by Kubernetes DNS.
# The pod subnet CIDR.
podSubnets:
- 10.244.0.0/16
# The service subnet CIDR.
serviceSubnets:
- 10.96.0.0/12
# # The CNI used.
# cni:
# name: custom # Name of CNI to use.
# # URLs containing manifests to apply for the CNI.
# urls:
# - https://docs.projectcalico.org/archive/v3.20/manifests/canal.yaml
token: 3t3mw0.htvvap2rultkiu6l # The [bootstrap token](https://kubernetes.io/docs/reference/access-authn-authz/bootstrap-tokens/) used to join the cluster.
# The base64 encoded root certificate authority used by Kubernetes.
ca:
crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJpekNDQVRDZ0F3SUJBZ0lSQUp1QVZTajlKMDdWdFkxaExGNU5GcVF3Q2dZSUtvWkl6ajBFQXdJd0ZURVQKTUJFR0ExVUVDaE1LYTNWaVpYSnVaWFJsY3pBZUZ3MHlOREE1TWpFeE9UUTVNalJhRncwek5EQTVNVGt4T1RRNQpNalJhTUJVeEV6QVJCZ05WQkFvVENtdDFZbVZ5Ym1WMFpYTXdXVEFUQmdjcWhrak9QUUlCQmdncWhrak9QUU1CCkJ3TkNBQVNXYndSa3BEakdOTnlvTlpvbEFnQStoVzJFU3B6MWpGMzZiSCtLQnpZVTROZUFDcGxNbzN0THBrWjEKMi9IQUVwN2VYWDI3L21WbWR4eE1jemY0OHNiT28yRXdYekFPQmdOVkhROEJBZjhFQkFNQ0FvUXdIUVlEVlIwbApCQll3RkFZSUt3WUJCUVVIQXdFR0NDc0dBUVVGQndNQ01BOEdBMVVkRXdFQi93UUZNQU1CQWY4d0hRWURWUjBPCkJCWUVGTDFJSG9MRnc2Q0hkZ3JPazhyVys2MTR4cC9HTUFvR0NDcUdTTTQ5QkFNQ0Ewa0FNRVlDSVFDZUFXeWgKZldrM0V2SXh4bU1DQ2tGT1d2ZFptWlVhTkpndElmKzQyTGVhZkFJaEFOSHVvMWJ0cnRRTkhnNlM1NHhwVDhELwpyR1J4L015dDNjZHFKK0JCRnhMQwotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
key: ""
# Configures cluster member discovery.
discovery:
enabled: true # Enable the cluster membership discovery feature.
# Configure registries used for cluster member discovery.
registries:
# Kubernetes registry uses Kubernetes API server to discover cluster members and stores additional information
kubernetes:
disabled: true # Disable Kubernetes discovery registry.
# Service registry is using an external service to push and pull information about cluster members.
service: {}
# # External service endpoint.
# endpoint: https://discovery.talos.dev/
# # A key used for the [encryption of secret data at rest](https://kubernetes.io/docs/tasks/administer-cluster/encrypt-data/).
# # Decryption secret example (do not use in production!).
# aescbcEncryptionSecret: z01mye6j16bspJYtTB/5SFX8j7Ph4JXxM2Xuu4vsBPM=
# # A key used for the [encryption of secret data at rest](https://kubernetes.io/docs/tasks/administer-cluster/encrypt-data/).
# # Decryption secret example (do not use in production!).
# secretboxEncryptionSecret: z01mye6j16bspJYtTB/5SFX8j7Ph4JXxM2Xuu4vsBPM=
# # The base64 encoded aggregator certificate authority used by Kubernetes for front-proxy certificate generation.
# # AggregatorCA example.
# aggregatorCA:
# crt: LS0tIEVYQU1QTEUgQ0VSVElGSUNBVEUgLS0t
# key: LS0tIEVYQU1QTEUgS0VZIC0tLQ==
# # The base64 encoded private key for service account token generation.
# # AggregatorCA example.
# serviceAccount:
# key: LS0tIEVYQU1QTEUgS0VZIC0tLQ==
# # API server specific configuration options.
# apiServer:
# image: registry.k8s.io/kube-apiserver:v1.30.3 # The container image used in the API server manifest.
# # Extra arguments to supply to the API server.
# extraArgs:
# feature-gates: ServerSideApply=true
# http2-max-streams-per-connection: "32"
# # Extra certificate subject alternative names for the API server's certificate.
# certSANs:
# - 1.2.3.4
# - 4.5.6.7
# # Configure the API server admission plugins.
# admissionControl:
# - name: PodSecurity # Name is the name of the admission controller.
# # Configuration is an embedded configuration object to be used as the plugin's
# configuration:
# apiVersion: pod-security.admission.config.k8s.io/v1alpha1
# defaults:
# audit: restricted
# audit-version: latest
# enforce: baseline
# enforce-version: latest
# warn: restricted
# warn-version: latest
# exemptions:
# namespaces:
# - kube-system
# runtimeClasses: []
# usernames: []
# kind: PodSecurityConfiguration
# # Configure the API server audit policy.
# auditPolicy:
# apiVersion: audit.k8s.io/v1
# kind: Policy
# rules:
# - level: Metadata
# # Controller manager server specific configuration options.
# controllerManager:
# image: registry.k8s.io/kube-controller-manager:v1.30.3 # The container image used in the controller manager manifest.
# # Extra arguments to supply to the controller manager.
# extraArgs:
# feature-gates: ServerSideApply=true
# # Kube-proxy server-specific configuration options
# proxy:
# disabled: false # Disable kube-proxy deployment on cluster bootstrap.
# image: registry.k8s.io/kube-proxy:v1.30.3 # The container image used in the kube-proxy manifest.
# mode: ipvs # proxy mode of kube-proxy.
# # Extra arguments to supply to kube-proxy.
# extraArgs:
# proxy-mode: iptables
# # Scheduler server specific configuration options.
# scheduler:
# image: registry.k8s.io/kube-scheduler:v1.30.3 # The container image used in the scheduler manifest.
# # Extra arguments to supply to the scheduler.
# extraArgs:
# feature-gates: AllBeta=true
# # Etcd specific configuration options.
# etcd:
# image: gcr.io/etcd-development/etcd:v3.5.13 # The container image used to create the etcd service.
# # The `ca` is the root certificate authority of the PKI.
# ca:
# crt: LS0tIEVYQU1QTEUgQ0VSVElGSUNBVEUgLS0t
# key: LS0tIEVYQU1QTEUgS0VZIC0tLQ==
# # Extra arguments to supply to etcd.
# extraArgs:
# election-timeout: "5000"
# # The `advertisedSubnets` field configures the networks to pick etcd advertised IP from.
# advertisedSubnets:
# - 10.0.0.0/8
# # Core DNS specific configuration options.
# coreDNS:
# image: registry.k8s.io/coredns/coredns:v1.11.1 # The `image` field is an override to the default coredns image.
# # External cloud provider configuration.
# externalCloudProvider:
# enabled: true # Enable external cloud provider.
# # A list of urls that point to additional manifests for an external cloud provider.
# manifests:
# - https://raw.githubusercontent.com/kubernetes/cloud-provider-aws/v1.20.0-alpha.0/manifests/rbac.yaml
# - https://raw.githubusercontent.com/kubernetes/cloud-provider-aws/v1.20.0-alpha.0/manifests/aws-cloud-controller-manager-daemonset.yaml
# # A list of urls that point to additional manifests.
# extraManifests:
# - https://www.example.com/manifest1.yaml
# - https://www.example.com/manifest2.yaml
# # A map of key value pairs that will be added while fetching the extraManifests.
# extraManifestHeaders:
# Token: "1234567"
# X-ExtraInfo: info
# # A list of inline Kubernetes manifests.
# inlineManifests:
# - name: namespace-ci # Name of the manifest.
# contents: |- # Manifest contents as a string.
# apiVersion: v1
# kind: Namespace
# metadata:
# name: ci
# # Settings for admin kubeconfig generation.
# adminKubeconfig:
# certLifetime: 1h0m0s # Admin kubeconfig certificate lifetime (default is 1 year).
# # Allows running workload on control-plane nodes.
# allowSchedulingOnControlPlanes: true