Skip to content

Can't deploy K8GB in a Cluster that has an Existing ExternalDNS Deployment #542

Closed
@ssurovich

Description

Hi -

First, great project - big fan of the idea and implementation. I have been talking to Yury on a few things and as I was adding K8GB to our second edition book, I came across a potential bug.

If a cluster has ExternalDNS already installed, you cannot deploy K8GB due to a K8GB looking for labels and annotation's on the ExternalDNS ClusterRole and Binding:

Error: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRole "external-dns" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "k8gb"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "k8gb"

Error: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRoleBinding "external-dns-viewer" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "k8gb"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "k8gb"

I could remediate this by adding the missing values, but I was hoping for a "cleaner" solution. I have run into this with a few other projects, where one project assumes it is the owner of a resource and in a cluster that might have a solution like ExternalDNS and K8GB, this will cause issues.

Anything else I can add, let me know. Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions