https://rancher.com/ logo
Title
a

average-monitor-43003

08/29/2022, 4:31 PM
I got this error this morning from `pod/helm-install-traefik-q76r7`:
+ echo 'Installing helm_v3 chart'
+ helm_v3 install --set-string global.systemDefaultRegistry= traefik <https://10.43.0.1:443/static/charts/traefik-10.19.300.tgz> --values /config/values-01_HelmChart.yaml --values /config/values-10_HelmChartConfig.yaml
Error: INSTALLATION FAILED: cannot re-use a name that is still in use
k3s-1.24.3
kube-system    pod/helm-install-traefik-crd-f8qps                      0/1     Completed          0                  18m
kube-system    pod/helm-install-traefik-q76r7                          0/1     CrashLoopBackOff   5 (63s ago)        4m32s
kube-system   job.batch/helm-install-traefik-crd                   1/1           14m        18m
kube-system   job.batch/helm-install-traefik                       0/1           4m35s      4m39s
1
c

creamy-pencil-82913

08/29/2022, 4:34 PM
Did you try to copy the existing traefik HelmChart? What do you get from
kubectl get addon helmchart -A
a

average-monitor-43003

08/29/2022, 4:35 PM
$ sudo k3s kubectl get addon helmchart -A
error: a resource cannot be retrieved by name across all namespaces
I tried disabling traefik, removing it, and enabling it again,
c

creamy-pencil-82913

08/29/2022, 4:45 PM
sorry, I meant
kubectl get addon,helmchart -A
It sounds like you didn’t wait long enough for it to be uninstalled, so now it’s confused
a

average-monitor-43003

08/29/2022, 4:46 PM
ah, maybe
NAMESPACE     NAME                                            AGE
kube-system   <http://addon.k3s.cattle.io/ccm|addon.k3s.cattle.io/ccm>                         433d
kube-system   <http://addon.k3s.cattle.io/coredns|addon.k3s.cattle.io/coredns>                     433d
kube-system   <http://addon.k3s.cattle.io/local-storage|addon.k3s.cattle.io/local-storage>               433d
kube-system   <http://addon.k3s.cattle.io/aggregated-metrics-reader|addon.k3s.cattle.io/aggregated-metrics-reader>   433d
kube-system   <http://addon.k3s.cattle.io/auth-delegator|addon.k3s.cattle.io/auth-delegator>              433d
kube-system   <http://addon.k3s.cattle.io/auth-reader|addon.k3s.cattle.io/auth-reader>                 433d
kube-system   <http://addon.k3s.cattle.io/metrics-apiservice|addon.k3s.cattle.io/metrics-apiservice>          433d
kube-system   <http://addon.k3s.cattle.io/metrics-server-deployment|addon.k3s.cattle.io/metrics-server-deployment>   433d
kube-system   <http://addon.k3s.cattle.io/metrics-server-service|addon.k3s.cattle.io/metrics-server-service>      433d
kube-system   <http://addon.k3s.cattle.io/resource-reader|addon.k3s.cattle.io/resource-reader>             433d
kube-system   <http://addon.k3s.cattle.io/rolebindings|addon.k3s.cattle.io/rolebindings>                433d
kube-system   <http://addon.k3s.cattle.io/traefik-config|addon.k3s.cattle.io/traefik-config>              97d
kube-system   <http://addon.k3s.cattle.io/traefik|addon.k3s.cattle.io/traefik>                     106m

NAMESPACE     NAME                                   AGE
kube-system   <http://helmchart.helm.cattle.io/traefik|helmchart.helm.cattle.io/traefik>       33m
kube-system   <http://helmchart.helm.cattle.io/traefik-crd|helmchart.helm.cattle.io/traefik-crd>   33m
Should I try again to delete everything including
<http://addon.k3s.cattle.io/traefik-config|addon.k3s.cattle.io/traefik-config>
?
c

creamy-pencil-82913

08/29/2022, 5:06 PM
I would probably try disabling it again, and wait for the uninstall job to complete before starting k3s with it enabled.
👍 1
a

average-monitor-43003

08/29/2022, 5:35 PM
Should I use
--no-deploy traefik
or
--disable=traefik
?
c

creamy-pencil-82913

08/29/2022, 6:13 PM
--disable
Sorry, multitasking
a

average-monitor-43003

08/29/2022, 6:14 PM
no worries. I appreciate your help. I'm now waiting for this:
kube-system    pod/helm-delete-traefik-crd--1-qtwjh                    0/1     ContainerCreating   0                 28m
kube-system    pod/helm-delete-traefik--1-cqrgv                        0/1     Terminating         0                 18m
kube-system    pod/helm-delete-traefik--1-65hhm                        0/1     ContainerCreating   0                 2m24s
kube-system   job.batch/helm-delete-traefik-crd                    0/1           28m        28m
kube-system   job.batch/helm-delete-traefik                        0/1           2m23s      2m24s
Please tell when to give up 🙂
something changed:
kube-system    pod/helm-delete-traefik--1-6vgnr                        0/1     ContainerCreating   0                 65s
kube-system    pod/helm-delete-traefik-crd--1-qtwjh                    0/1     Completed           0                 36m
kube-system   job.batch/helm-delete-traefik                        0/1           66s        66s
kube-system   job.batch/helm-delete-traefik-crd                    1/1           35m        36m
oh I think it's over
It's working!! 🎉 thank you very much for the help!