Skip to content

microk8s config to output custom cluster hostname #5270

@vit-zikmund

Description

@vit-zikmund

Summary

microk8s config outputs the default interface IP in the clusters[].cluster.server URL or the default 127.0.0.1 when one uses the -l option.

I'd appreciate a mechanism that would output a custom hostname I have assigned for this cluster in my DNS server.

  • Ideally, I'd like to have some persistent setting, that - when set - would be used as the default. This setting would/could be replicated to all the nodes of this cluster, so no matter on which node I run it, I'd get consistent results.
  • The less preferred option would be a new switch to the microk8s-config.wrapper where I'd supply this hostname. This doesn't help in the environment where there are multiple admins who'd need consistent results without inventing their own ways.

Why is this important?

Convenience mostly, I run an interesting amount of these commands lately and I'm getting tired of replacing the default IP. I'm on a fence of scripting it myself for good or improving the initial experience for everyone :)

Are you interested in contributing to this feature?

yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions