Skip to content

Deleting CRD results in could not list instances: unable to find a custom resource client for addresspools.metallb.io: unable to load root certificates: unable to parse bytes as PEM block #1501

Closed

Description

@optix2000

I'm getting the following error when trying to delete the addresspools or bgppeers CRDs.

% kubectl describe customresourcedefinitions.apiextensions.k8s.io addresspools.metallb.io
...
  Client Config:
        Ca Bundle:  Cg==
...
  Conditions:
    Last Transition Time:  2022-07-14T08:19:58Z
    Message:               no conflicts found
    Reason:                NoConflicts
    Status:                True
    Type:                  NamesAccepted
    Last Transition Time:  2022-07-14T08:19:58Z
    Message:               the initial names have been accepted
    Reason:                InitialNamesAccepted
    Status:                True
    Type:                  Established
    Last Transition Time:  2022-07-14T08:20:36Z
    Message:               could not list instances: unable to find a custom resource client for addresspools.metallb.io: unable to load root certificates: unable to parse bytes as PEM block
    Reason:                InstanceDeletionFailed
    Status:                True
    Type:                  Terminating

Installed MetalLB using the metallb Helm chart v0.13.3 from https://metallb.github.io/metallb.
I then deleted the helm install shortly after when I realized it was installed to the wrong namespace.
Running k3s: v1.23.8+k3s2
Using Cilium v1.11.6

Presumably, this is because I deleted the controller before the CA could be populated here. Assuming that's the case, it's probably worth putting a "real" dummy CA so the CRD can be deleted if the controller never started.

Seeking some advice on whether it's safe to force delete the CRD and to see if adding a CA is a valid solution.

Activity

  1. fedepaol commented on Jul 14, 2022

    @fedepaol
    Member

    So just to understand better the steps, you just installed and deleted the chart right?

  2. optix2000 commented on Jul 14, 2022

    @optix2000
    Author

    In rapid succession, before any of the pods had started.

  3. fedepaol commented on Jul 14, 2022

    @fedepaol
    Member

    Understood, thanks for the report

  4. optix2000 commented on Jul 14, 2022

    @optix2000
    Author

    Literally

    helm repo add metallb https://metallb.github.io/metallb
    helm install metallb metallb/metallb
    # sleep 500
    helm uninstall metallb
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions