This message was deleted.
# rke2
a
This message was deleted.
m
Are you sure you adding the mirrors correctly. I will check how we set this and post an example. AFAIK it wasn't so much stuff in the regex that was needed.
this is what works for us. We are using Harbor as our registry and have proxy projects set up for multiple cloud registries
k
Yeah, the other images pull correctly, such as the coredns and such I do think I may have figured out, almost, I needed to configure systemDefaultRegistry in the helmchart values like so global: systemDefaultRegistry: myregistry That seemed to take effect, but just gotta get the image in now
THere we go... So I fixed it just now , this ended up working /var/lib/rancher/rke2/server/manifests/rke2-metrics-config.yaml
Copy code
---
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
  name: rke2-metrics-server
  namespace: kube-system
spec:
  valuesContent: |-
          global:
            systemDefaultRegistry: registry.gitlab.dev.example.net:5050
          image:
            repository: infrastructure/rke2/k8s-metrics-server
            tag: v0.6.3-build20230607
🙌 1
Thanks for the assist!
k
@nutritious-tomato-14686 I remember reading something similar to that when I was figuring this out with some of the core services like etcd but these ones are showing the actual image name now that it's working in the logs i.e. Container image "registry.gitlab.dev.example.net:5050/infrastructure/rke2/nginx-ingress-controller:nginx-1.9.3-hardened1" already present on machine I think the difference is static pods use the registries.yaml file whereas these addon services like ingress/metrics etc. use their respective helm charts, so it should show the actual registry it's actually pulling from. Although it's weird because the addon's must be using the authentication information from the registries.yaml file, because I didn't specify it anywhere else. But now that i'm thinking about it I probably could've modified the rewrites instead of using the helm chart values
Yep, was doing it the hard way, fixing the rewrite's makes everything work as well 🙂 lol
m
So I was right?