Skip to content
This repository was archived by the owner on Oct 17, 2024. It is now read-only.
This repository was archived by the owner on Oct 17, 2024. It is now read-only.

Allow klusterlet to patch hostAliases when creating klusterlet-registration-agent deployment #318

@abdennour

Description

@abdennour

Hi,
IF we want to add hostAliases in all deployments under the namespace open-cluster-management-agent. So the Managed Cluster can resolve hostname of hub cluster API.

# patch
spec:
  template:
    spec:
     hostAliases:
       - ip: a.b.x.y
         hostnames:
           - api.company.lan

We patched klusterlet deployment, it's fine.. but when we patched klusterlet-registration-agent , it get overriden.

There is a permanent way to patch klusterlet-registration-agent by hostAliases and in general by any Pod Spec.

Metadata

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