generated from willianpaixao/cluster-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2dfb436
commit b4e3cb4
Showing
13 changed files
with
216 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
kubernetes/main/apps/network/external-dns/internal/helmrelease.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2.json | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: &app external-dns | ||
spec: | ||
interval: 1h | ||
chart: | ||
spec: | ||
chart: external-dns | ||
version: 1.14.5 | ||
sourceRef: | ||
kind: HelmRepository | ||
name: external-dns | ||
namespace: flux-system | ||
install: | ||
crds: CreateReplace | ||
remediation: | ||
retries: 3 | ||
upgrade: | ||
cleanupOnFail: true | ||
crds: CreateReplace | ||
remediation: | ||
strategy: rollback | ||
retries: 3 | ||
values: | ||
provider: pihole | ||
extraArgs: | ||
- --pihole-server=http://192.168.0.8 | ||
- --ingress-class=internal | ||
policy: upsert-only | ||
sources: ["ingress", "service"] | ||
registry: noop | ||
domainFilters: ["web3.wiki.br"] | ||
env: | ||
- name: &name EXTERNAL_DNS_PIHOLE_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: &secret external-dns-secret | ||
key: pihole | ||
serviceMonitor: | ||
enabled: true |
5 changes: 5 additions & 0 deletions
5
kubernetes/main/apps/network/external-dns/internal/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ./helmrelease.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
kubernetes/turing/flux/repositories/helm/external-dns.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrepository-source-v1.json | ||
apiVersion: source.toolkit.fluxcd.io/v1 | ||
kind: HelmRepository | ||
metadata: | ||
name: external-dns | ||
namespace: flux-system | ||
spec: | ||
interval: 1h | ||
url: https://kubernetes-sigs.github.io/external-dns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
kubernetes/turing/network/external-dns/app/helmrelease.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2.json | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: &app external-dns | ||
spec: | ||
interval: 1h | ||
chart: | ||
spec: | ||
chart: external-dns | ||
version: 1.14.5 | ||
sourceRef: | ||
kind: HelmRepository | ||
name: external-dns | ||
namespace: flux-system | ||
install: | ||
crds: CreateReplace | ||
remediation: | ||
retries: 3 | ||
upgrade: | ||
cleanupOnFail: true | ||
crds: CreateReplace | ||
remediation: | ||
strategy: rollback | ||
retries: 3 | ||
values: | ||
provider: pihole | ||
extraArgs: | ||
- --pihole-server=http://192.168.0.8 | ||
- --ingress-class=internal | ||
policy: upsert-only | ||
sources: ["ingress", "service"] | ||
registry: noop | ||
domainFilters: ["web3.wiki.br"] | ||
env: | ||
- name: &name EXTERNAL_DNS_PIHOLE_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: &secret pihole-password | ||
key: *name | ||
serviceMonitor: | ||
enabled: true |
6 changes: 6 additions & 0 deletions
6
kubernetes/turing/network/external-dns/app/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ./secret.sops.yaml | ||
- ./helmrelease.yaml |
37 changes: 37 additions & 0 deletions
37
kubernetes/turing/network/external-dns/app/secret.sops.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
kind: Secret | ||
apiVersion: v1 | ||
type: Opaque | ||
metadata: | ||
name: pihole-password | ||
namespace: network | ||
data: | ||
EXTERNAL_DNS_PIHOLE_PASSWORD: ENC[AES256_GCM,data:y2TMM2D4KBj1RH7IliJNA2Ppbth7TUv4,iv:MuHhnyBmzXXoXo0yarhsc/IBQX87VE867fim9m9MMk4=,tag:N1RjjmbVqAPJChbLsU4bcw==,type:str] | ||
sops: | ||
kms: [] | ||
gcp_kms: [] | ||
azure_kv: [] | ||
hc_vault: [] | ||
age: | ||
- recipient: age1nkvss2a8xvmjauvr5mxzm233hyh2mk2fg4s6pt0t0kcn03dv34wqtgymg8 | ||
enc: | | ||
-----BEGIN AGE ENCRYPTED FILE----- | ||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSAwQTIxTERiRUVJbFFrMlBx | ||
czBVbFl5NC9tcFZaNzB3RjBlK2xtZXB1NkVNCm9xY0cwV3JjcHdNaEpRZ1RWRk5u | ||
dXZZZE1CSmsveXFCRTF1LytHRTIwNzgKLS0tIERGa2FKVHVqTUNhckZOSFQ5aFZx | ||
OFpRSGJ4VVJiS0VENVlsZXRyd3haem8KVIO8yuq8Qr/S3rK4oMFhXAIvoI8Pw+E3 | ||
kO8LqkJVtG+iqFuVF9gi6wJn432kT/DHzHm22dp6R8+EcZ4E0zmC/g== | ||
-----END AGE ENCRYPTED FILE----- | ||
- recipient: age1wxwqdrmkwkzsxajp58g0cgeextgf4wq287fv82pptv9yghkfgcqql66zhj | ||
enc: | | ||
-----BEGIN AGE ENCRYPTED FILE----- | ||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA3bDVKQUdNYmE5byswaGts | ||
d3ZodllTMkN0WCtQa1VRamU1Yk9ORnRmWFg0CjdpYlRQd3RkNzdpaUhaYURaYlQ5 | ||
MC8rdngyMmFza0JFYjFhUXdqMnRQWWsKLS0tIFNraHd4YW1BK3dQMlU0ZldlZkRM | ||
U2dHQTNCYmRRMncvKzFxZWRkMG9CMDgKxhpMKdLPUiCVAEAc5O26bISuopUBiLHF | ||
rldQq17sMi7ymIE5BrLtwXpLpIKUl/szwwI1QXbbD2tXV0ZUdaqVNg== | ||
-----END AGE ENCRYPTED FILE----- | ||
lastmodified: "2024-07-23T19:43:06Z" | ||
mac: ENC[AES256_GCM,data:idtkUwkKUeKhvHhuWqoZMPloCOajDzHazafwBp8fDY1HS+Qx0fArw8z76VFql3YdPg6bX0/nb0pzLC3ceUyW8zBV+XQ56BfdN2LHJ6C1QeQDD365RUs6HwVN7ja4FGc69NF+oe4b0M/uTycpdZ4+Rb46HtxNOhrMsD1PHK5E0ws=,iv:Jik+F/tVjKiiNHAqn+rX+It7TnNzO1Pn1wICmzHQAuo=,tag:tSX4MAK/vzW5gezYkfnpng==,type:str] | ||
pgp: [] | ||
encrypted_regex: ^(data|stringData)$ | ||
version: 3.8.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
name: &app external-dns | ||
namespace: flux-system | ||
spec: | ||
targetNamespace: network | ||
commonMetadata: | ||
labels: | ||
app.kubernetes.io/name: *app | ||
path: ./kubernetes/turing/network/external-dns/app | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: flux-system | ||
wait: true | ||
interval: 30m | ||
retryInterval: 1m | ||
timeout: 5m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters