fix ingresses and external dns with ingressClass

This commit is contained in:
ace 2022-08-29 03:02:13 +03:00
parent 70d9ff0f3c
commit 2ec797d39a
No known key found for this signature in database
GPG Key ID: 2E47CC17BA7F8CF0
14 changed files with 43 additions and 19 deletions

View File

@ -9,10 +9,10 @@ nfs_client_provisioner_ssd_version: 4.0.14
cert_manager_version: 1.8.2
# External-DNS
external_dns_version: 6.7.1
local_dns_version: 6.7.1
internal_dns_version: 6.7.1
service_dns_version: 6.7.1
external_dns_version: 6.8.1
local_dns_version: 6.8.1
internal_dns_version: 6.8.1
service_dns_version: 6.8.1
# Ingress Nginx
external_ingress_nginx_version: 4.2.0
@ -38,7 +38,7 @@ drone_runner_kube_version: 0.1.9
# Gitea
gitea_ingress_nginx_version: 4.2.0
gitea_dns_version: 6.7.1
gitea_dns_version: 6.8.1
gitea_version: 5.0.8
# Docker and Helm chart registries
@ -53,7 +53,7 @@ nextcloud_version: 3.0.4
# Email
dovecot_version: 0.1.3
postfix_version: 0.1.2
roundcube_version: 0.2.9
roundcube_version: 0.3.0
rspamd_version: 0.2.0
# Pypi server

View File

@ -1,6 +1,10 @@
external_dns_default_values:
image:
registry: registry.0xace.cc
repository: ghp/external-dns
tag: v0.7.6-663-gf76382a5
fullnameOverride: "{{ external_dns_name | default(namespace + '-external-dns') }}"
annotationFilter: "kubernetes.io/ingress.class={{ external_ingress_class }}"
ingressClass: "{{ external_ingress_class }}"
domainFilters: ["{{ external_domain | default(domain) }}"]
provider: rfc2136
rfc2136:

View File

@ -6,7 +6,7 @@
create_namespace: true
release_namespace: "{{ external_dns_namespace | default(dns_namespace) | default(namespace) }}"
release_name: "{{ external_dns_name | default(namespace + '-external-dns') }}"
chart_ref: "{{ external_dns_chart | default('bitnami/external-dns') }}"
chart_ref: "{{ external_dns_chart | default('ghp/external-dns') }}"
chart_version: "{{ external_dns_version | default(omit) }}"
release_values: "{{ external_dns_combined_values | from_yaml }}"
wait: true

View File

@ -12,6 +12,7 @@ external_ingress_nginx_default_values:
service:
loadBalancerIP: "{{ external_loadbalancer_ip | default(omit) }}"
externalTrafficPolicy: Local
ingressClass: "{{ external_ingress_class }}"
electionID: "{{ external_ingress_class }}-leader"
ingressClassResource:
name: "{{ external_ingress_class }}"
controllerValue: "k8s.io/{{ external_ingress_class }}"

View File

@ -121,16 +121,21 @@ gitea_ingress_nginx_default_values:
ssh: ssh
http: http
https: https
ingressClass: "{{ gitea_ingress_class }}"
electionID: "{{ gitea_ingress_class }}-leader"
ingressClassResource:
name: "{{ gitea_ingress_class }}"
controllerValue: "k8s.io/{{ gitea_ingress_class }}"
tcp:
22: "{{ gitea_namespace | default(namespace) }}/{{ namespace }}-gitea-ssh:22"
gitea_dns_default_values:
image:
registry: registry.0xace.cc
repository: ghp/external-dns
tag: v0.7.6-663-gf76382a5
fullnameOverride: "{{ gitea_dns_name | default(namespace + '-gitea-internal-dns') }}"
annotationFilter: "kubernetes.io/ingress.class={{ gitea_ingress_class }}"
ingressClass: "{{ gitea_ingress_class }}"
domainFilters: ["{{ domain }}"]
provider: rfc2136
rfc2136:

View File

@ -36,7 +36,7 @@
create_namespace: true
release_namespace: "{{ gitea_dns_namespace | default(namespace) }}"
release_name: "{{ gitea_dns_relase_name | default(namespace + '-gitea-internal-dns') }}"
chart_ref: "{{ gitea_dns_chart | default('bitnami/external-dns') }}"
chart_ref: "{{ gitea_dns_chart | default('ghp/external-dns') }}"
chart_version: "{{ gitea_dns_version | default(omit) }}"
release_values: "{{ gitea_dns_combined_values | from_yaml }}"
wait: true

View File

@ -1,6 +1,10 @@
internal_dns_default_values:
image:
registry: registry.0xace.cc
repository: ghp/external-dns
tag: v0.7.6-663-gf76382a5
fullnameOverride: "{{ internal_dns_name | default(namespace + '-internal-dns') }}"
annotationFilter: "kubernetes.io/ingress.class={{ internal_ingress_class }}"
ingressClass: "{{ internal_ingress_class }}"
domainFilters: ["{{ internal_domain | default(domain) }}"]
provider: rfc2136
rfc2136:

View File

@ -6,7 +6,7 @@
create_namespace: true
release_namespace: "{{ internal_dns_namespace | default(dns_namespace) | default(namespace) }}"
release_name: "{{ internal_dns_name | default(namespace + '-internal-dns') }}"
chart_ref: "{{ internal_dns_chart | default('bitnami/external-dns') }}"
chart_ref: "{{ internal_dns_chart | default('ghp/external-dns') }}"
chart_version: "{{ internal_dns_version | default(omit) }}"
release_values: "{{ internal_dns_combined_values | from_yaml }}"
wait: true

View File

@ -6,6 +6,7 @@ internal_ingress_nginx_default_values:
enabled: false
service:
loadBalancerIP: "{{ internal_loadbalancer_ip | default(omit) }}"
ingressClass: "{{ internal_ingress_class }}"
electionID: "{{ internal_ingress_class }}-leader"
ingressClassResource:
name: "{{ internal_ingress_class }}"
controllerValue: "k8s.io/{{ internal_ingress_class }}"

View File

@ -1,6 +1,10 @@
local_dns_default_values:
image:
registry: registry.0xace.cc
repository: ghp/external-dns
tag: v0.7.6-663-gf76382a5
fullnameOverride: "{{ local_dns_name | default(namespace + '-local-dns') }}"
annotationFilter: "kubernetes.io/ingress.class={{ local_ingress_class }}"
ingressClass: "{{ local_ingress_class }}"
domainFilters: ["{{ local_domain }}"]
provider: rfc2136
rfc2136:

View File

@ -6,7 +6,7 @@
create_namespace: true
release_namespace: "{{ local_dns_namespace | default(dns_namespace) | default(namespace) }}"
release_name: "{{ local_dns_name | default(namespace + '-local-dns') }}"
chart_ref: "{{ local_dns_chart | default('bitnami/external-dns') }}"
chart_ref: "{{ local_dns_chart | default('ghp/external-dns') }}"
chart_version: "{{ local_dns_version | default(omit) }}"
release_values: "{{ local_dns_combined_values | from_yaml }}"
wait: true

View File

@ -6,6 +6,7 @@ local_ingress_nginx_default_values:
enabled: false
service:
loadBalancerIP: "{{ local_loadbalancer_ip | default(omit) }}"
ingressClass: "{{ local_ingress_class }}"
electionID: "{{ local_ingress_class }}-leader"
ingressClassResource:
name: "{{ local_ingress_class }}"
controllerValue: "k8s.io/{{ local_ingress_class }}"

View File

@ -1,4 +1,8 @@
service_dns_default_values:
image:
registry: registry.0xace.cc
repository: ghp/external-dns
tag: v0.7.6-663-gf76382a5
fullnameOverride: "{{ service_dns_name | default(namespace + '-service-dns') }}"
domainFilters: ["{{ service_domain | default(domain) }}"]
sources: ['service']

View File

@ -6,7 +6,7 @@
create_namespace: true
release_namespace: "{{ service_dns_namespace | default(dns_namespace) | default(namespace) }}"
release_name: "{{ service_dns_name | default(namespace + '-service-dns') }}"
chart_ref: "{{ service_dns_chart | default('bitnami/external-dns') }}"
chart_ref: "{{ service_dns_chart | default('ghp/external-dns') }}"
chart_version: "{{ service_dns_version | default(omit) }}"
release_values: "{{ service_dns_combined_values | from_yaml }}"
wait: true