Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions k8s/bases/infrastructure/controllers/cilium/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Cilium

Cilium is ebpf-based CNI (Container Network Interface) for Kubernetes, providing advanced networking, security, and observability features.

- [Documentation](https://docs.cilium.io/en/stable/)
- [Helm Chart](https://github.com/cilium/cilium/blob/main/install/kubernetes/cilium)
23 changes: 23 additions & 0 deletions k8s/bases/infrastructure/controllers/cilium/helm-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: cilium
namespace: kube-system
spec:
chart:
spec:
chart: cilium
version: v1.17.3
sourceRef:
kind: HelmRepository
name: cilium
interval: 10m0s
# https://github.com/cilium/cilium/blob/main/install/kubernetes/cilium/values.yaml
values:
ipam:
mode: kubernetes
kubeProxyReplacement: true
gatewayAPI:
enabled: true
enableAlpn: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: cilium
namespace: kube-system
spec:
url: https://helm.cilium.io/
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helm-release.yaml
- helm-repository.yaml
1 change: 1 addition & 0 deletions k8s/bases/infrastructure/controllers/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- cert-manager/
- cilium/
17 changes: 17 additions & 0 deletions k8s/clusters/dev/apps/flux-kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: apps
namespace: flux-system
spec:
interval: 60m
timeout: 3m
retryInterval: 2m
sourceRef:
kind: OCIRepository
name: flux-system
path: clusters/dev/apps/
prune: true
wait: true
force: true
5 changes: 5 additions & 0 deletions k8s/clusters/dev/apps/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../distributions/talos/infrastructure
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: infrastructure-controllers
namespace: flux-system
spec:
interval: 5m
timeout: 2m
retryInterval: 1m
path: clusters/dev/infrastructure/controllers/
sourceRef:
kind: OCIRepository
name: flux-system
dependsOn:
- name: variables
decryption:
provider: sops
secretRef:
name: sops-age
postBuild:
substituteFrom:
- kind: ConfigMap
name: variables-dev
- kind: Secret
name: variables-dev-sensitive
wait: true
prune: true
force: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../distributions/talos/infrastructure/controllers
30 changes: 30 additions & 0 deletions k8s/clusters/dev/infrastructure/flux-kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: infrastructure
namespace: flux-system
spec:
interval: 5m
timeout: 2m
retryInterval: 1m
path: clusters/dev/infrastructure/
sourceRef:
kind: OCIRepository
name: flux-system
dependsOn:
- name: variables
- name: infrastructure-controllers
decryption:
provider: sops
secretRef:
name: sops-age
postBuild:
substituteFrom:
- kind: ConfigMap
name: variables-dev
- kind: Secret
name: variables-dev-sensitive
wait: true
prune: true
force: true
5 changes: 5 additions & 0 deletions k8s/clusters/dev/infrastructure/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../distributions/talos/infrastructure
5 changes: 4 additions & 1 deletion k8s/clusters/dev/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources: []
resources:
- infrastructure/controllers/flux-kustomization.yaml
- infrastructure/flux-kustomization.yaml
- variables/flux-kustomization.yaml
9 changes: 9 additions & 0 deletions k8s/clusters/dev/variables/config-map.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: variables-dev
namespace: flux-system
data:
domain: dev.devantler.tech
github_app_client_id: Iv23liZ8GHRgpx32Em2y
20 changes: 20 additions & 0 deletions k8s/clusters/dev/variables/flux-kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: variables
namespace: flux-system
spec:
interval: 5m
timeout: 2m
retryInterval: 1m
path: clusters/dev/variables/
sourceRef:
kind: OCIRepository
name: flux-system
decryption:
provider: sops
secretRef:
name: sops-age
wait: true
prune: true
force: true
7 changes: 7 additions & 0 deletions k8s/clusters/dev/variables/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../distributions/talos/variables
- config-map.yaml
- secret.enc.yaml
24 changes: 24 additions & 0 deletions k8s/clusters/dev/variables/secret.enc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v1
kind: Secret
metadata:
name: variables-dev-sensitive
namespace: flux-system
stringData:
dex_client_secret: ENC[AES256_GCM,data:+e5Ci4m7nMWUpkDT42brDaehqE0=,iv:vt18z7crgtdhsa2L371GLCv/acPnD3hNS5ZA2ZktAgw=,tag:nPQRcUHivbfwg98P0hP+6Q==,type:str]
github_app_client_secret: ENC[AES256_GCM,data:ElSZ3N+p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q3/ROjhS476GS8xiqZm4UnfX4LXezVEKMF4Y++IvbLkZ5SsV3a6+aL9yF+v0eQcA56Bb8MYag9KB7kkvWIfKbJcS+hINAChRABjzSSY0RHlPjeN4+6fyEbvAlllaRIO45s4vdIJOjvdTgtCJ4CMcWW5XGMRYshrypKi5sA/Na6SCKS6G8yvBmg+QuTJpaYm0XfFBYIsVikBknWNxHuTlzMbcbznlj6fX2WDIG/zPTBp5Jlpw==,iv:/tby64GY0Q5UPkbg0w81YT6aOBiTNyDBKFFgLB0T1WA=,tag:HZ8/bnRqeO0cFfSPffzhaw==,type:str]
sops:
age:
- recipient: age1fqcl89lrl8daucdkn7xstjhv9mcxk39m59a9mhvw0g3j24kjmu6qcaxpp7
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSB5b20wRER4SWdWdVgwTXpF
ZWxqTExtOFpFc2dpQ2l4bkNPRVZ4R3MyUVVnCnhUYkgxL1UxWGV6ZXBDb2xyQjZq
akJyVzdneUlPaXltNjhpYy9QbWtLVVkKLS0tIDFJUW54QUoxbXh5ZUNRcXBWRWI1
OE1CVEVqRVBjT3Jqckc1L0gwZ1JTdk0KGKF8qlUINhdrzW3JuplBqQ52s4PfbSo9
8HBAS+DlVet6PrlaolKlNjI5qL0u4FZfPwub6AXrI0jIq8XwEGzj/g==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2025-05-09T15:47:43Z"
mac: ENC[AES256_GCM,data:Zw3zc3sQ6jLMAfj3rkMFbXh86F94JeOmP3caFW+cpqaziPyydXahQ+296Q10n3ydivNbEq2EMEkgjut3fArpN6KTxxTQ3vagpeReq3kOlDqOwdKTAwZ+Xd1IkCvljdUigbpsUWn6pPKvzfrxQ5UiOsA3J4re3ngndrKUqypW98s=,iv:qblri7AXEtDDKAIGJCCRZwrFR8b7Syk3uQphPqQNtNA=,tag:OSYICwjt0IC1IChS+shezQ==,type:str]
encrypted_regex: ^(data|stringData)$
version: 3.10.2
2 changes: 1 addition & 1 deletion k8s/clusters/local/apps/flux-kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
sourceRef:
kind: OCIRepository
name: flux-system
path: clusters/local/apps
path: clusters/local/apps/
prune: true
wait: true
force: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: infrastructure-controllers
namespace: flux-system
spec:
interval: 5m
timeout: 2m
retryInterval: 1m
path: clusters/local/infrastructure/controllers/
sourceRef:
kind: OCIRepository
name: flux-system
dependsOn:
- name: variables
decryption:
provider: sops
secretRef:
name: sops-age
postBuild:
substituteFrom:
- kind: ConfigMap
name: variables-local
- kind: Secret
name: variables-local-sensitive
wait: true
prune: true
force: true
34 changes: 1 addition & 33 deletions k8s/clusters/local/infrastructure/flux-kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,52 +1,20 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: infrastructure-controllers
namespace: flux-system
spec:
interval: 5m
timeout: 2m
retryInterval: 1m
path: clusters/local/infrastructure/controllers
sourceRef:
kind: OCIRepository
name: flux-system
dependsOn:
- name: variables
namespace: flux-system
decryption:
provider: sops
secretRef:
name: sops-age
postBuild:
substituteFrom:
- kind: ConfigMap
name: variables-local
- kind: Secret
name: variables-local-sensitive
wait: true
prune: true
force: true
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: infrastructure
namespace: flux-system
spec:
interval: 5m
timeout: 2m
retryInterval: 1m
path: clusters/local/infrastructure
path: clusters/local/infrastructure/
sourceRef:
kind: OCIRepository
name: flux-system
dependsOn:
- name: variables
namespace: flux-system
- name: infrastructure-controllers
namespace: flux-system
decryption:
provider: sops
secretRef:
Expand Down
1 change: 1 addition & 0 deletions k8s/clusters/local/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- infrastructure/controllers/flux-kustomization.yaml
- infrastructure/flux-kustomization.yaml
- variables/flux-kustomization.yaml
2 changes: 1 addition & 1 deletion k8s/clusters/local/variables/flux-kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
interval: 5m
timeout: 2m
retryInterval: 1m
path: clusters/local/variables
path: clusters/local/variables/
sourceRef:
kind: OCIRepository
name: flux-system
Expand Down
3 changes: 2 additions & 1 deletion k8s/distributions/kind/apps/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources: []
resources:
- ../../../bases/apps/
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: selfsigned-cluster-issuer
namespace: cert-manager
spec:
selfSigned: {}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../bases/infrastructure/controllers
- ../../../../bases/infrastructure/controllers/
2 changes: 1 addition & 1 deletion k8s/distributions/kind/infrastructure/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../bases/infrastructure
- ../../../bases/infrastructure/
- cluster-issuers/
- traefik/
5 changes: 5 additions & 0 deletions k8s/distributions/talos/apps/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../bases/apps/
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources: []
#- ../../../../bases/infrastructure/controllers/
5 changes: 5 additions & 0 deletions k8s/distributions/talos/infrastructure/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources: []
#- ../../../bases/infrastructure/
5 changes: 5 additions & 0 deletions k8s/distributions/talos/variables/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../bases/variables/
Loading