adamant-kite-43734
08/03/2023, 2:32 PMthousands-advantage-10804
08/03/2023, 5:04 PMfew-minister-97494
08/03/2023, 5:13 PM/var/lib/rancher/rke2/server/manifests/rke2_manifests.
few-minister-97494
08/03/2023, 5:14 PMfew-minister-97494
08/03/2023, 5:14 PMfew-minister-97494
08/03/2023, 5:15 PMfew-minister-97494
08/03/2023, 5:15 PMthousands-advantage-10804
08/03/2023, 5:15 PMfew-minister-97494
08/03/2023, 5:15 PM---
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: rke2-coredns
namespace: kube-system
spec:
valuesContent: |-
servers:
- zones:
- zone: .
port: 53
# If serviceType is nodePort you can specify nodePort here
# nodePort: 30053
# hostPort: 53
plugins:
- name: errors
# Serves a /health endpoint on :8080, required for livenessProbe
- name: health
configBlock: |-
lameduck 5s
# Serves a /ready endpoint on :8181, required for readinessProbe
- name: ready
- name: hosts
configBlock: |-
172.253.122.113 baasdfljhsdafasdfasdfa.com
fallthrough
# Required to query kubernetes API for data
- name: kubernetes
parameters: cluster.local in-addr.arpa ip6.arpa
configBlock: |-
pods insecure
fallthrough in-addr.arpa ip6.arpa
ttl 30
# Serves a /metrics endpoint on :9153, required for serviceMonitor
- name: prometheus
parameters: 0.0.0.0:9153
- name: forward
parameters: . /etc/resolv.conf
- name: cache
parameters: 30
- name: loop
- name: reload
- name: loadbalancethousands-advantage-10804
08/03/2023, 5:15 PMfew-minister-97494
08/03/2023, 5:15 PMfew-minister-97494
08/03/2023, 5:16 PMfew-minister-97494
08/03/2023, 5:16 PMfew-minister-97494
08/03/2023, 5:16 PMfew-minister-97494
08/03/2023, 5:16 PMfew-minister-97494
08/03/2023, 5:17 PMserver:
plugin-to-add:
thousands-advantage-10804
08/03/2023, 5:18 PMfew-minister-97494
08/03/2023, 5:19 PM/etc/hosts
file in the Corefile...few-minister-97494
08/03/2023, 5:20 PMfew-minister-97494
08/03/2023, 5:21 PMthousands-advantage-10804
08/03/2023, 5:27 PMfew-minister-97494
08/03/2023, 5:28 PMthousands-advantage-10804
08/03/2023, 5:28 PMthousands-advantage-10804
08/03/2023, 5:29 PM<namespace>.svc.cluster.local svc.cluster.local cluster.local
few-minister-97494
08/03/2023, 5:29 PMfew-minister-97494
08/03/2023, 5:29 PMfew-minister-97494
08/03/2023, 5:29 PMthousands-advantage-10804
08/03/2023, 5:30 PMfew-minister-97494
08/03/2023, 5:31 PMthousands-advantage-10804
08/03/2023, 5:32 PMfew-minister-97494
08/03/2023, 5:37 PMcurl <https://xyz.a.foo.org>
as long as DNS provides an IP address and the IP address is on the same network then the packets don't need to leave the segment. <http://xyz.a.foo.org|xyz.a.foo.org>
just needs to be an IP address running the ingress controller... So absent DNS, one needs the equivalent of an /etc/hosts
file that looks like:
12.12.12.12 <http://xyz.a.foo.org|xyz.a.foo.org>
12.12.12.12 <http://pqd.a.foo.org|pqd.a.foo.org>
etc...
few-minister-97494
08/03/2023, 5:37 PMthousands-advantage-10804
08/03/2023, 5:39 PMrke2-coredns.yaml
in the dir already.thousands-advantage-10804
08/03/2023, 5:39 PM[root@rke1 manifests]# cat rke2-coredns.yaml
apiVersion: <http://helm.cattle.io/v1|helm.cattle.io/v1>
kind: HelmChart
metadata:
annotations:
<http://helm.cattle.io/chart-url|helm.cattle.io/chart-url>: <https://rke2-charts.rancher.io/assets/rke2-coredns/rke2-coredns-1.24.002.tgz>
name: rke2-coredns
namespace: kube-system
spec:
bootstrap: true
chartContent:
few-minister-97494
08/03/2023, 5:40 PMthousands-advantage-10804
08/03/2023, 5:40 PMthousands-advantage-10804
08/03/2023, 5:40 PMfew-minister-97494
08/03/2023, 5:40 PMrke2-coredns.yaml
is the one deposited by RKE2few-minister-97494
08/03/2023, 5:40 PMmanifests
is deposited by the Rancher Federal installerthousands-advantage-10804
08/03/2023, 5:41 PMfew-minister-97494
08/03/2023, 5:41 PMls -l /var/lib/rancher/rke2/server/manifests/rke2_manifests
few-minister-97494
08/03/2023, 5:41 PMrw-r----- 1 root root 1178 Aug 3 14:22 rke2-coredns-config.yaml
thousands-advantage-10804
08/03/2023, 5:41 PMthousands-advantage-10804
08/03/2023, 5:42 PMapiVersion: <http://helm.cattle.io/v1|helm.cattle.io/v1>
kind: HelmChartConfig
metadata:
name: rke2-coredns
namespace: kube-system
spec:
valuesContent: |-
servers:
- plugins:
- name: hosts
configBlock: |-
fallthrough
as the file contents?few-minister-97494
08/03/2023, 5:42 PMcat /var/lib/rancher/rke2/server/manifests/rke2_manifests/rke2-coredns-config.yaml
few-minister-97494
08/03/2023, 5:44 PM---
apiVersion: <http://helm.cattle.io/v1|helm.cattle.io/v1>
kind: HelmChartConfig
metadata:
name: rke2-coredns
namespace: kube-system
spec:
valuesContent: |-
servers:
- zones:
- zone: .
port: 53
# If serviceType is nodePort you can specify nodePort here
# nodePort: 30053
# hostPort: 53
plugins:
- name: errors
# Serves a /health endpoint on :8080, required for livenessProbe
- name: health
configBlock: |-
lameduck 5s
# Serves a /ready endpoint on :8181, required for readinessProbe
- name: ready
- name: hosts
configBlock: |-
172.253.122.113 <http://baasdfljhsdafasdfasdfa.com|baasdfljhsdafasdfasdfa.com>
fallthrough
# Required to query kubernetes API for data
- name: kubernetes
parameters: cluster.local in-addr.arpa ip6.arpa
configBlock: |-
pods insecure
fallthrough in-addr.arpa ip6.arpa
ttl 30
# Serves a /metrics endpoint on :9153, required for serviceMonitor
- name: prometheus
parameters: 0.0.0.0:9153
- name: forward
parameters: . /etc/resolv.conf
- name: cache
parameters: 30
- name: loop
- name: reload
- name: loadbalance
few-minister-97494
08/03/2023, 5:44 PMfew-minister-97494
08/03/2023, 5:45 PMthousands-advantage-10804
08/03/2023, 5:45 PMclembookpro:clemenko rke2 ( 178.128.150.160:6443 ) $ helm get values -n kube-system rke2-coredns
USER-SUPPLIED VALUES:
global:
clusterCIDR: 10.42.0.0/16
clusterCIDRv4: 10.42.0.0/16
clusterDNS: 10.43.0.10
clusterDomain: cluster.local
rke2DataDir: /var/lib/rancher/rke2
serviceCIDR: 10.43.0.0/16
few-minister-97494
08/03/2023, 5:45 PMfew-minister-97494
08/03/2023, 5:48 PMfew-minister-97494
08/03/2023, 5:51 PMfew-minister-97494
08/03/2023, 5:51 PMthousands-advantage-10804
08/03/2023, 5:51 PMapiVersion: <http://helm.cattle.io/v1|helm.cattle.io/v1>
kind: HelmChartConfig
metadata:
name: rke2-coredns
namespace: kube-system
spec:
valuesContent: |-
servers:
- plugins:
- name: hosts
configBlock: |-
fallthrough
to rke2-coredns-config.yaml
and restarted rke2 and got
clembookpro:clemenko rke2 ( 178.128.150.160:6443 ) $ helm get values -n kube-system rke2-coredns
USER-SUPPLIED VALUES:
global:
clusterCIDR: 10.42.0.0/16
clusterCIDRv4: 10.42.0.0/16
clusterDNS: 10.43.0.10
clusterDomain: cluster.local
rke2DataDir: /var/lib/rancher/rke2
serviceCIDR: 10.43.0.0/16
servers:
- plugins:
- configBlock: fallthrough
name: hosts
thousands-advantage-10804
08/03/2023, 5:52 PMfew-minister-97494
08/03/2023, 5:52 PMfew-minister-97494
08/03/2023, 5:53 PMfew-minister-97494
08/03/2023, 5:53 PMthousands-advantage-10804
08/03/2023, 5:53 PMthousands-advantage-10804
08/03/2023, 5:54 PMfew-minister-97494
08/03/2023, 5:55 PMfew-minister-97494
08/03/2023, 5:55 PMfew-minister-97494
08/03/2023, 5:55 PMfew-minister-97494
08/03/2023, 5:55 PMfew-minister-97494
08/03/2023, 5:56 PMCorefile
keyfew-minister-97494
08/03/2023, 5:56 PMthousands-advantage-10804
08/03/2023, 5:56 PM<http://helm.cattle.io/chart-url|helm.cattle.io/chart-url>: <https://rke2-charts.rancher.io/assets/rke2-coredns/rke2-coredns-1.24.002.tgz>
Yes.. we are using the coredns upstream chart. We didn’t make a custom chart.few-minister-97494
08/03/2023, 5:57 PMHelmChartConfig
which is a Rancher construct was not intended as a merge patch but rather a full replacement patchfew-minister-97494
08/03/2023, 5:57 PMthousands-advantage-10804
08/03/2023, 5:57 PMfew-minister-97494
08/03/2023, 5:58 PMfew-minister-97494
08/03/2023, 5:58 PMthousands-advantage-10804
08/03/2023, 5:58 PMfew-minister-97494
08/03/2023, 5:58 PMfew-minister-97494
08/03/2023, 5:59 PMfew-minister-97494
08/03/2023, 5:59 PMthousands-advantage-10804
08/03/2023, 6:00 PMrke2-server
it updated the values and configmap.few-minister-97494
08/03/2023, 6:03 PMfew-minister-97494
08/03/2023, 6:03 PMthousands-advantage-10804
08/03/2023, 6:03 PMfew-minister-97494
08/03/2023, 6:04 PMthousands-advantage-10804
08/03/2023, 6:05 PMfew-minister-97494
08/03/2023, 6:05 PMfew-minister-97494
08/03/2023, 6:05 PMfew-minister-97494
08/03/2023, 6:05 PMfew-minister-97494
08/03/2023, 6:06 PMadditional-plugins
key...thousands-advantage-10804
08/03/2023, 6:06 PMfew-minister-97494
08/03/2023, 6:06 PMthousands-advantage-10804
08/03/2023, 6:06 PMfew-minister-97494
08/03/2023, 6:06 PMfew-minister-97494
08/03/2023, 6:07 PMthousands-advantage-10804
08/03/2023, 6:07 PMfew-minister-97494
08/03/2023, 6:07 PMfew-minister-97494
08/03/2023, 6:07 PMthousands-advantage-10804
08/03/2023, 6:07 PMfew-minister-97494
08/03/2023, 6:07 PMthousands-advantage-10804
08/03/2023, 6:08 PMthousands-advantage-10804
08/03/2023, 6:25 PMfew-minister-97494
08/03/2023, 6:26 PMfew-minister-97494
08/03/2023, 6:26 PMfew-minister-97494
08/03/2023, 6:39 PM