Open abdennour opened 1 year ago
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.
hostAliases
open-cluster-management-agent
# 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.
klusterlet
klusterlet-registration-agent
There is a permanent way to patch klusterlet-registration-agent by hostAliases and in general by any Pod Spec.
you can set hubApiServerHostAlias in klusterlet resource, it will update the hostaliases field on registration/work agent.
Hi, IF we want to add
hostAliases
in all deployments under the namespaceopen-cluster-management-agent
. So the Managed Cluster can resolve hostname of hub cluster API.We patched
klusterlet
deployment, it's fine.. but when we patchedklusterlet-registration-agent
, it get overriden.There is a permanent way to patch
klusterlet-registration-agent
by hostAliases and in general by any Pod Spec.