update to latest 2.26.0 kubespray version and add dns zones settings to coredns

This commit is contained in:
2024-12-14 21:56:19 +03:00
parent be9c8a28fd
commit 4294f52703
368 changed files with 37761 additions and 2942 deletions

View File

@@ -34,7 +34,7 @@ data:
}
{% endfor %}
{% endif %}
.:{{ coredns_port }} {
.:53 {
{% if coredns_additional_configs is defined %}
{{ coredns_additional_configs | indent(width=8, first=False) }}
{% endif %}

View File

@@ -24,7 +24,6 @@ spec:
annotations:
createdby: 'kubespray'
spec:
hostNetwork: {{ coredns_host_network | default(false) }}
securityContext:
seccompProfile:
type: RuntimeDefault
@@ -76,10 +75,10 @@ spec:
- name: config-volume
mountPath: /etc/coredns
ports:
- containerPort: {{ coredns_port }}
- containerPort: 53
name: dns
protocol: UDP
- containerPort: {{ coredns_port }}
- containerPort: 53
name: dns-tcp
protocol: TCP
- containerPort: 9153

View File

@@ -20,11 +20,9 @@ spec:
- name: dns
port: 53
protocol: UDP
targetPort: "dns"
- name: dns-tcp
port: 53
protocol: TCP
targetPort: "dns-tcp"
- name: metrics
port: 9153
protocol: TCP

View File

@@ -247,7 +247,7 @@ spec:
k8s-app: kubernetes-dashboard
---
# ------------------- Metrics Scrapper Service Account ------------------- #
# ------------------- Metrics Scraper Service Account ------------------- #
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
@@ -263,7 +263,7 @@ rules:
---
# ------------------- Metrics Scrapper Service ------------------- #
# ------------------- Metrics Scraper Service ------------------- #
kind: Service
apiVersion: v1
metadata:
@@ -280,7 +280,7 @@ spec:
---
# ------------------- Metrics Scrapper Deployment ------------------- #
# ------------------- Metrics Scraper Deployment ------------------- #
kind: Deployment
apiVersion: apps/v1
metadata:

View File

@@ -35,7 +35,7 @@ spec:
fieldRef:
fieldPath: spec.nodeName
args:
- "-v=5"
- "-v={{ netchecker_agent_log_level }}"
- "-alsologtostderr=true"
- "-serverendpoint=netchecker-service:8081"
- "-reportinterval={{ agent_report_interval }}"

View File

@@ -37,7 +37,7 @@ spec:
fieldRef:
fieldPath: spec.nodeName
args:
- "-v=5"
- "-v={{ netchecker_agent_log_level }}"
- "-alsologtostderr=true"
- "-serverendpoint=netchecker-service:8081"
- "-reportinterval={{ agent_report_interval }}"

View File

@@ -43,7 +43,7 @@ spec:
ports:
- containerPort: 8081
args:
- -v=5
- -v={{ netchecker_server_log_level }}
- -logtostderr
- -kubeproxyinit=false
- -endpoint=0.0.0.0:8081
@@ -51,6 +51,9 @@ spec:
- name: etcd
image: "{{ etcd_image_repo }}:{{ netcheck_etcd_image_tag }}"
imagePullPolicy: {{ k8s_image_pull_policy }}
env:
- name: ETCD_LOG_LEVEL
value: "{{ netchecker_etcd_log_level }}"
command:
- etcd
- --listen-client-urls=http://127.0.0.1:2379

View File

@@ -20,7 +20,7 @@ spec:
spec:
nodeSelector:
{{ nodelocaldns_ds_nodeselector }}
priorityClassName: system-cluster-critical
priorityClassName: system-node-critical
serviceAccountName: nodelocaldns
hostNetwork: true
dnsPolicy: Default # Don't use cluster DNS.