-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Release 1.29] whereabouts helm chart issue #5586
Comments
I also referenced this issue in #5538 |
It looks like you just copied the whole rke2-multus chart into |
Oh! Didn't notice. I was probably trying to figure out the chart, and obviously was in the wrong directory when doing so. So I removed it, removed the dependency to have something clear, then added the dependency back. The issue regarding the CRD's haven't cleared out. They are still unavailable after a clean reinstall of whereabouts. So the issue is still valid and shouldn't be closed. |
They appear to be properly installed for me after enabling the subchart: brandond@dev01:~$ kubectl get helmchartconfig -n kube-system rke2-multus -o yaml
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"helm.cattle.io/v1","kind":"HelmChartConfig","metadata":{"annotations":{},"name":"rke2-multus","namespace":"kube-system"},"spec":{"valuesContent":"rke2-whereabouts:\n enabled: true\n nodeSelector:\n kubernetes.io/arch: arm64\nlabels:\n nodeSelector:\n kubernetes.io/arch: arm64"}}
creationTimestamp: "2024-03-08T18:32:34Z"
generation: 1
name: rke2-multus
namespace: kube-system
resourceVersion: "275"
uid: fd652e3d-047b-4d60-98cc-eacb406c6636
spec:
valuesContent: |-
rke2-whereabouts:
enabled: true
nodeSelector:
kubernetes.io/arch: arm64
labels:
nodeSelector:
kubernetes.io/arch: arm64
brandond@dev01:~/$ kubectl api-resources --api-group=whereabouts.cni.cncf.io
NAME SHORTNAMES APIVERSION NAMESPACED KIND
ippools whereabouts.cni.cncf.io/v1alpha1 true IPPool
overlappingrangeipreservations whereabouts.cni.cncf.io/v1alpha1 true OverlappingRangeIPReservation What do you see in the helm job pod for the rke2-multus chart? |
Looking at api-resources, I don<t see anything related to whereabouts. But I do see whereabouts pods:
|
I just manually installed the CRD's from the chart (that I downloaded elsewhere) and now they stick to the cluster and whereabouts is now working properly. But I'd like these for sure to install from the chart..... |
How long has this cluster been deployed with multus? Helm has some odd behavior around CRDs, if you've been running it for a bit, its possible they didn't get installed by helm when we added them to the chart? |
It has been deployed with multus from its beginning, so more or less two years ago now. Whereabouts, on the opposite, has just been recently added as a dependency to multus on my cluster. Previously, it was installed as a manual process. Something else I just noticed. whereabouts has an ip-reconciler job available to do some cleanup in the ip addresses allocation after a crash, for example: https://github.com/k8snetworkplumbingwg/whereabouts/blob/master/doc/extended-configuration.md It would be interesting to have it available as an option in the whereabouts dependency install |
That's probably where the issue came from. I don't think this is an issue if you start without whereabouts and just enable the subchart in our multus chart. |
cc @manuelbuil @mgfritch for thoughts |
I have the same issue. It seems like that CRDs are not installable through the subchart and therefore wont / can't be automatically deployed on chart installation. Does this make sense? It might be nice, from a user experience perspective, to have them installable through the rke2 config. |
Environmental Info:
RKE2 Version:
rke2 version v1.29.2+rke2r1 (08699df)
go version go1.21.7 X:boringcrypto
Node(s) CPU architecture, OS, and Version:
Linux dietpi7 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
Cluster Configuration:
3 master nodes in HA mode (provided by kube-vip)
Describe the bug:
Installing rke2 v1.29.2+rke2r1 with multus and whereabouts (configured with HelmChartConfig such as):
After installation, I was able to see that there are missing CRD's, from whereabouts pods logs:
From past whereabouts experience, I know that it is also supposed to have another CRD (overlappingrangeipreservations.whereabouts.cni.cncf.io) but not installed either:
which shows nothing
On the node logs, I can see that there seem to have some errors in the whereabouts helm chart:
msg="Failed to process config: failed to process /var/lib/rancher/rke2/server/manifests/rke2-multus/Chart.yaml: Addon.k3s.cattle.io \"Chart\" is invalid: metadata.name: Invalid value: \"Chart\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?([\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*](file:///)'), failed to process /var/lib/rancher/rke2/server/manifests/rke2-multus/charts/rke2-whereabouts/Chart.yaml: Addon.k3s.cattle.io \"Chart\" is invalid: metadata.name: Invalid value: \"Chart\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?([\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*](file:///)'), failed to process /var/lib/rancher/rke2/server/manifests/rke2-multus/charts/rke2-whereabouts/templates/cluster_role.yaml: Addon.k3s.cattle.io \"cluster_role\" is invalid: metadata.name: Invalid value: \"cluster_role\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?([\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*](file:///)'), failed to process /var/lib/rancher/rke2/server/manifests/rke2-multus/charts/rke2-whereabouts/templates/cluster_role_binding.yaml: Addon.k3s.cattle.io \"cluster_role_binding\" is invalid: metadata.name: Invalid value: \"cluster_role_binding\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?([\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*](file:///)'), failed to process /var/lib/rancher/rke2/server/manifests/rke2-multus/charts/rke2-whereabouts/templates/daemonset.yaml: yaml: line 6: could not find expected ':', failed to process /var/lib/rancher/rke2/server/manifests/rke2-multus/charts/rke2-whereabouts/templates/serviceaccount.yaml: invalid character '{' looking for beginning of object key string, failed to process /var/lib/rancher/rke2/server/manifests/rke2-multus/charts/rke2-whereabouts/values.yaml: Object 'Kind' is missing in '{\"affinity\":{},\"fullnameOverride\":\"\",\"image\":{\"pullPolicy\":\"IfNotPresent\",\"repository\":\"rancher/hardened-whereabouts\",\"tag\":\"v0.6.2-build20231009\"},\"imagePullSecrets\":[],\"nameOverride\":\"\",\"namespaceOverride\":\"kube-system\",\"nodeSelector\":{\"kubernetes.io/arch\":\"amd64\"},\"podAnnotations\":{},\"podSecurityContext\":{},\"resources\":{\"limits\":{\"cpu\":\"100m\",\"memory\":\"100Mi\"},\"requests\":{\"cpu\":\"100m\",\"memory\":\"100Mi\"}},\"securityContext\":{\"privileged\":true},\"serviceAccount\":{\"annotations\":{},\"create\":true},\"successfulJobsHistoryLimit\":0,\"tolerations\":[{\"effect\":\"NoSchedule\",\"operator\":\"Exists\"}],\"updateStrategy\":\"RollingUpdate\"}', failed to process /var/lib/rancher/rke2/server/manifests/rke2-multus/templates/clusterRole.yaml: Addon.k3s.cattle.io \"clusterRole\" is invalid: metadata.name: Invalid value: \"clusterRole\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?([\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*](file:///)'), failed to process /var/lib/rancher/rke2/server/manifests/rke2-multus/templates/clusterRoleBinding.yaml: Addon.k3s.cattle.io \"clusterRoleBinding\" is invalid: metadata.name: Invalid value: \"clusterRoleBinding\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?([\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*](file:///)'), failed to process /var/lib/rancher/rke2/server/manifests/rke2-multus/templates/configMap.yaml: Addon.k3s.cattle.io \"configMap\" is invalid: metadata.name: Invalid value: \"configMap\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?([\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*](file:///)'), failed to process /var/lib/rancher/rke2/server/manifests/rke2-multus/templates/customResourceDefinition.yaml: Addon.k3s.cattle.io \"customResourceDefinition\" is invalid: metadata.name: Invalid value: \"customResourceDefinition\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?([\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*](file:///)'), failed to process /var/lib/rancher/rke2/server/manifests/rke2-multus/templates/daemonSet.yaml: Addon.k3s.cattle.io \"daemonSet\" is invalid: metadata.name: Invalid value: \"daemonSet\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?([\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*](file:///)'), failed to process /var/lib/rancher/rke2/server/manifests/rke2-multus/templates/serviceAccount.yaml: Addon.k3s.cattle.io \"serviceAccount\" is invalid: metadata.name: Invalid value: \"serviceAccount\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?([\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*](file:///)'), failed to process /var/lib/rancher/rke2/server/manifests/rke2-multus/values.yaml: Object 'Kind' is missing in '{\"cniplugins\":{\"image\":{\"repository\":\"rancher/hardened-cni-plugins\",\"tag\":\"v1.2.0-build20231009\"},\"skipcnis\":\"flannel\"},\"config\":{\"cni_conf\":{\"multusConfFile\":\"auto\"}},\"global\":{\"systemDefaultRegistry\":\"\"},\"image\":{\"pullPolicy\":\"IfNotPresent\",\"repository\":\"rancher/hardened-multus-cni\",\"tag\":\"v4.0.2-build20231009\"},\"labels\":{\"nodeSelector\":{\"kubernetes.io/arch\":\"amd64\",\"kubernetes.io/os\":\"linux\"}},\"manifests\":{\"clusterRole\":true,\"clusterRoleBinding\":true,\"configMap\":false,\"customResourceDefinition\":true,\"daemonSet\":true,\"serviceAccount\":true},\"pod\":{\"resources\":{\"enabled\":false,\"multus\":{\"limits\":{\"cpu\":\"2000m\",\"memory\":\"1024Mi\"},\"requests\":{\"cpu\":\"250m\",\"memory\":\"128Mi\"}}}},\"rke2-whereabouts\":{\"enabled\":false},\"serviceAccount\":{\"name\":\"multus\"}}'"
Steps To Reproduce:
All defined above
Expected behavior:
Expecting to have whereabouts CRD's installed
Actual behavior:
Whereabouts CRD's are absent
Additional context / logs:
The text was updated successfully, but these errors were encountered: