jolly-eye-77963
03/09/2023, 9:07 AMhundreds-airport-66196
03/09/2023, 5:20 PMloud-eve-73457
03/10/2023, 3:39 AMjolly-eye-77963
03/10/2023, 11:25 AMshy-zebra-53074
03/10/2023, 3:55 PMrke2-coredns
following this guidance here: https://docs.rke2.io/networking#coredns
I see a sample helm chart like the following:
apiVersion: <http://helm.cattle.io/v1|helm.cattle.io/v1>
kind: HelmChartConfig
metadata:
name: rke2-coredns
namespace: kube-system
spec:
valuesContent: |-
nodelocal:
enabled: true
Where can I find more information regarding all of the possible chart values for RKE2 CoreDNS? Thank you!shy-zebra-53074
03/11/2023, 5:55 AMextraSecrets
config parameter: https://github.com/rancher/rke2-charts/blob/e29071e486dc0b987ed665d9ebe16cfdb681247c/charts/rke2-coredns/rke2-coredns/1.19.401/values.yaml#L231
My CoreDNS Helm looks like this:
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
plugins:
- name: errors
- name: health
configBlock: |-
lameduck 5s
- name: ready
- name: kubernetes
parameters: cluster.local in-addr.arpa ip6.arpa
configBlock: |-
pods insecure
fallthrough in-addr.arpa ip6.arpa
ttl 30
- name: prometheus
parameters: 0.0.0.0:9153
- name: forward
parameters: . /etc/resolv.conf
- name: cache
parameters: 30
- name: loop
- name: reload
- name: loadbalance
extraSecrets:
- name: certs
mountPath: /etc/ssl/private/certs
However I’m seeing this error in the logs when starting up: unknown field "extraSecrets"
Mar 11 00:36:53 ip-192-168-0-10.us-gov-east-1.compute.internal rke2[1981]: I0311 00:36:53.877190 1981 event.go:294] "Event occurred" object="kube-system/rke2-coredns-config" fieldPath="" kind="Addon" apiVersion="<http://k3s.cattle.io/v1|k3s.cattle.io/v1>" type="Normal" reason="ApplyingManifest" message="Applying manifest at \"/var/lib/rancher/rke2/server/manifests/rke2-coredns-config.yaml\""
Mar 11 00:36:53 ip-192-168-0-10.us-gov-east-1.compute.internal rke2[1981]: W0311 00:36:53.883804 1981 warnings.go:70] unknown field "extraSecrets"
The secret has been created in the kube-system
namespace:
$ kubectl get secrets -n kube-system | grep certs
certs Opaque 2 17m
shy-zebra-53074
03/11/2023, 6:02 AMsparse-artist-18151
03/13/2023, 4:52 AMapiVersion: <http://metallb.io/v1beta1|metallb.io/v1beta1>
kind: IPAddressPool
metadata:
name: core-net-192.168.92.140-159
namespace: metallb-system
spec:
addresses:
- 192.168.94.140-192.168.94.159
---
apiVersion: <http://metallb.io/v1beta1|metallb.io/v1beta1>
kind: L2Advertisement
metadata:
name: metallb-pool
namespace: metallb-system
spec:
ipAddressPools:
- core-net-192.168.99.140-159
How can we enable kubeproxy ipvs on the management cluster? (at the moment i only have one cluster with workernodes added to the management cluster)
kubeproxy:
extra_args:
ipvs-scheduler: lc
proxy-mode: ipvs
do i need to deploy a separate cluster with workernodes for this?
Thanks a lot for your input, if im on the wrong channel for these questions please let me know, i apologize in advanceswift-cricket-47233
03/13/2023, 6:56 PMsparse-artist-18151
03/13/2023, 9:47 PMkube-proxy-arg:
- proxy-mode=ipvs
- ipvs-strict-arp=true
I added the following based on - link but metallb is still not ARPing with the Loadbalancer IP
kubeproxy:
extra_args:
ipvs-scheduler: lc
proxy-mode: ipvs
stale-painting-80203
03/14/2023, 12:38 AM/var/lib/rancher/rke2/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml apply -f <https://rancher75182.senode.dev/v3/import/xhctfcnbbt56xvxh6jptq7lzvpw9svd2drkbj5pvm466t5r7zlplqv_c-m-zqcvzlgn.yaml>
<http://clusterrole.rbac.authorization.k8s.io/proxy-clusterrole-kubeapiserver|clusterrole.rbac.authorization.k8s.io/proxy-clusterrole-kubeapiserver> unchanged
<http://clusterrolebinding.rbac.authorization.k8s.io/proxy-role-binding-kubernetes-master|clusterrolebinding.rbac.authorization.k8s.io/proxy-role-binding-kubernetes-master> unchanged
namespace/cattle-system unchanged
serviceaccount/cattle unchanged
<http://clusterrolebinding.rbac.authorization.k8s.io/cattle-admin-binding|clusterrolebinding.rbac.authorization.k8s.io/cattle-admin-binding> unchanged
secret/cattle-credentials-ad9a794 created
<http://clusterrole.rbac.authorization.k8s.io/cattle-admin|clusterrole.rbac.authorization.k8s.io/cattle-admin> unchanged
Warning: spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].key: <http://beta.kubernetes.io/os|beta.kubernetes.io/os> is deprecated since v1.14; use "<http://kubernetes.io/os|kubernetes.io/os>" instead
deployment.apps/cattle-cluster-agent configured
service/cattle-cluster-agent unchanged
NAMESPACE NAME READY STATUS RESTARTS AGE
calico-system calico-kube-controllers-f75c97ff6-fvb66 1/1 Running 0 19m
calico-system calico-node-6vxmh 1/1 Running 0 19m
calico-system calico-node-d9t8n 0/1 Running 0 17m
calico-system calico-node-khhpr 1/1 Running 0 19m
calico-system calico-node-nmcds 0/1 Running 0 17m
calico-system calico-typha-d65458ffc-97pn9 1/1 Running 0 17m
calico-system calico-typha-d65458ffc-p9cj2 1/1 Running 0 19m
cattle-fleet-system fleet-agent-6c857b85b5-zff2l 1/1 Running 0 17m
cattle-system cattle-cluster-agent-6f588568-dj7ql 0/1 CrashLoopBackOff 4 (49s ago) 4m9s
cattle-system cattle-cluster-agent-6f588568-zl55k 0/1 CrashLoopBackOff 4 (29s ago) 3m53s
kube-system cloud-controller-manager-sempre1-ctrl 1/1 Running 0 20m
kube-system cloud-controller-manager-sempre1-etcd 1/1 Running 0 20m
kube-system etcd-sempre1-etcd 1/1 Running 0 19m
kube-system helm-install-rke2-calico-7dxlb 0/1 Completed 2 20m
kube-system helm-install-rke2-calico-crd-wzffm 0/1 Completed 0 20m
kube-system helm-install-rke2-coredns-zs9rl 0/1 Completed 0 20m
kube-system helm-install-rke2-ingress-nginx-gtkv8 0/1 CrashLoopBackOff 6 (40s ago) 20m
kube-system helm-install-rke2-metrics-server-blcf4 0/1 CrashLoopBackOff 6 (51s ago) 20m
kube-system kube-apiserver-sempre1-ctrl 1/1 Running 0 20m
kube-system kube-controller-manager-sempre1-ctrl 1/1 Running 0 20m
kube-system kube-proxy-sempre1-ctrl 1/1 Running 0 20m
kube-system kube-proxy-sempre1-etcd 1/1 Running 0 20m
kube-system kube-proxy-sempre1-wrk1 1/1 Running 0 17m
kube-system kube-proxy-sempre1-wrk2 1/1 Running 0 17m
kube-system kube-scheduler-sempre1-ctrl 1/1 Running 0 20m
kube-system rke2-coredns-rke2-coredns-58fd75f64b-kfb69 1/1 Running 0 19m
kube-system rke2-coredns-rke2-coredns-58fd75f64b-rzpsg 1/1 Running 0 20m
kube-system rke2-coredns-rke2-coredns-autoscaler-768bfc5985-hcf4b 1/1 Running 0 20m
tigera-operator tigera-operator-586758ccf7-rc9tq 1/1 Running 0 19m
Looking the logs seems cluster agent is unable to ping the rancher server, but if I do a curl on the same URL it responds with a pong.
ERROR: <https://rancher75182.senode.dev/ping> is not accessible (Could not resolve host: rancher75182.senode.dev)
helm pods report error as well:
/var/lib/rancher/rke2/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml logs helm-install-rke2-ingress-nginx-gtkv8 -n cattle-system
Error from server (NotFound): pods "helm-install-rke2-ingress-nginx-gtkv8" not found
/var/lib/rancher/rke2/bin/kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml logs helm-install-rke2-metrics-server-blcf4 -n cattle-system
Error from server (NotFound): pods "helm-install-rke2-metrics-server-blcf4" not found
millions-ocean-48249
03/14/2023, 8:55 PMI0314 12:43:17.862979 7024 main.go:109] "Kubelet registration probe created" path="\\var\\lib\\kubelet\\plugins\\<http://csi.vsphere.vmware.com|csi.vsphere.vmware.com>\\registration"
I0314 12:43:20.196288 7024 main.go:120] Received NotifyRegistrationStatus call: &RegistrationStatus{PluginRegistered:false,Error:RegisterPlugin error -- plugin registration failed with err: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial unix \\\\var\\\\lib\\\\kubelet\\\\plugins\\\\<http://csi.vsphere.vmware.com|csi.vsphere.vmware.com>\\\\csi.sock: connect: A socket operation was attempted to an unreachable network.",}
E0314 12:43:20.196288 7024 main.go:122] Registration process failed with error: RegisterPlugin error -- plugin registration failed with err: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial unix \\\\var\\\\lib\\\\kubelet\\\\plugins\\\\<http://csi.vsphere.vmware.com|csi.vsphere.vmware.com>\\\\csi.sock: connect: A socket operation was attempted to an unreachable network.", restarting registration container.
But I do see this does exist on the windows node:
PS C:\var\lib\kubelet\plugins\<http://csi.vsphere.vmware.com|csi.vsphere.vmware.com>> ls
Directory: C:\var\lib\kubelet\plugins\<http://csi.vsphere.vmware.com|csi.vsphere.vmware.com>
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 3/8/2023 3:18 AM 0 csi.sock
hundreds-evening-84071
03/15/2023, 8:30 PMMethod of installation to use. Default is on RPM-based systemsAnd, with Rancher 2.7.1.... Does it make sense to create RKE2 cluster then import into Rancher or create RKE2 cluster from Rancher? Is one method better over other?, all elserpm
tar
abundant-noon-17295
03/16/2023, 6:24 AMhundreds-evening-84071
03/16/2023, 3:57 PMbroad-farmer-70498
03/16/2023, 9:50 PMcontainer runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized
but I have disabled deploying cni via rke2 (manual install of cilium). This is a chicken/egg situation that I'm not sure how I haven't run into it before now. How can I get kubelet to come up ready enough to get cni from daemonset in the cluster?flaky-jackal-94200
03/17/2023, 12:06 PM/var/log/pods
and /var/log/containers
to something else? Setting --log-dir
in the kubelet is deprecated unfortunately. Also, I'm not looking for redirection, I need /var/log/pods
and /var/log/containers
to have no logs from kubernetes.echoing-tomato-53055
03/17/2023, 5:26 PMlevel=info msg="[Applyinator] No image provided, creating empty working directory /var/lib/rancher/agent/work/
gorgeous-receptionist-16083
03/18/2023, 4:15 AMancient-army-24563
03/18/2023, 6:18 AMancient-army-24563
03/18/2023, 6:18 AMworried-ram-81084
03/20/2023, 6:31 AMhundreds-evening-84071
03/20/2023, 3:47 PMcloud-provider-name: external
under machineSelectorConfig
.
This appears to work...
My question with this is, do I also need to include disable-cloud-controller: true
?
If so, where does this get added in YAML or the GUI?rapid-scientist-25800
03/22/2023, 11:57 AMabundant-noon-17295
03/22/2023, 1:30 PMearly-sugar-56788
03/22/2023, 6:08 PMquaint-alarm-7893
03/23/2023, 3:10 AMbusy-crowd-80458
03/23/2023, 7:17 AMbusy-crowd-80458
03/23/2023, 7:17 AMbusy-crowd-80458
03/23/2023, 7:17 AM