Control Plane is the central set of decentralized services, typically running in some vm(s) of the master node
A node is a host (vm or physical) joined to the cluster. It communicates to the control plane via a kubelet.
in rancher, go to the configmap of coredns and point it to Ad this doesnt seem to work bruh
apiVersion: v1
data:
Corefile: |
.:53 {
errors
health
ready
kubernetes cluster.local in-addr.arpa ip6.arpa {
pods insecure
fallthrough in-addr.arpa ip6.arpa
}
hosts /etc/coredns/NodeHosts josh-dc.josh.local {
ttl 60
reload 15s
fallthrough
}
prometheus :9153
forward . josh-dc.josh.local
forward . /etc/resolv.conf
cache 30
loop
reload
loadbalance
}
import /etc/coredns/custom/*.server
NodeHosts: |
192.168.1.201 debian
192.168.1.200 josh-dc.josh.local
kind: ConfigMap
metadata:
annotations:
objectset.rio.cattle.io/applied: >-
H4sIAAAAAAAA/4yQwWrzMBCEX0Xs2fEf20nsX9BDybH02lMva2kdq1Z2g6SkBJN3L8IUCiVtbyNGOzvfzoAn90IhOmHQcKmgAIsJQc+wl0CD8wQaSr1t1PzKSilFIUiIix4JfRoXHQjtdZHTuafAlCgq488xUSi9wK2AybEFDXvhwR2e8QQFHCnh50ZkloTJCcf8lP6NTIqUyuCkNJiSp9LJP5czoLjryztTWB0uE2iYmvjFuVSFenJsHx6tFf41gvGY6Y0Eshz/9D2e0OSZfIJVvMZExwzusSf/I9SIcQQNvaG6a+r/XVdV7abBddPtsN9W66Eedi0N7aberM22zaHf6t0tcPsIAAD//8Ix+PfoAQAA
objectset.rio.cattle.io/id: ''
objectset.rio.cattle.io/owner-gvk: k3s.cattle.io/v1, Kind=Addon
objectset.rio.cattle.io/owner-name: coredns
objectset.rio.cattle.io/owner-namespace: kube-system
creationTimestamp: '2023-04-07T21:29:28Z'
labels:
objectset.rio.cattle.io/hash: bce283298811743a0386ab510f2f67ef74240c57
managedFields:
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
f:data: {}
f:metadata:
f:annotations:
.: {}
f:objectset.rio.cattle.io/applied: {}
f:objectset.rio.cattle.io/id: {}
f:objectset.rio.cattle.io/owner-gvk: {}
f:objectset.rio.cattle.io/owner-name: {}
f:objectset.rio.cattle.io/owner-namespace: {}
f:labels:
.: {}
f:objectset.rio.cattle.io/hash: {}
manager: deploy@debian
operation: Update
time: '2023-04-07T21:29:30Z'
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
f:data:
f:Corefile: {}
f:NodeHosts: {}
manager: rancher
operation: Update
time: '2023-04-07T23:02:45Z'
name: coredns
namespace: kube-system
resourceVersion: '27673'
uid: 4e20ad17-a983-44b5-a93f-594ac699168c
kubectl -n kube-system edit configmaps coredns -o yaml