Skip to content

Commit

Permalink
Only use FQDN node names on AWS when using its cloud-provider (#13) (#14
Browse files Browse the repository at this point in the history
)
  • Loading branch information
addyess authored Jan 8, 2024
1 parent 9bf5b2d commit 6b1476c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charms/kubernetes_snaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def configure_kube_proxy(
kubeconfig,
external_cloud_provider: ExternalCloud,
):
fqdn = external_cloud_provider.name == "aws"
fqdn = external_cloud_provider.name == "aws" and external_cloud_provider.has_xcp
kube_proxy_config = {
"kind": "KubeProxyConfiguration",
"apiVersion": "kubeproxy.config.k8s.io/v1alpha1",
Expand Down Expand Up @@ -361,7 +361,7 @@ def configure_kubelet(
resolv_path = os.path.realpath("/etc/resolv.conf")
if resolv_path == "/run/systemd/resolve/stub-resolv.conf":
kubelet_config["resolvConf"] = "/run/systemd/resolve/resolv.conf"
fqdn = external_cloud_provider.name == "aws"
fqdn = external_cloud_provider.name == "aws" and external_cloud_provider.has_xcp

kubelet_opts = {}
kubelet_opts["kubeconfig"] = kubeconfig
Expand Down

0 comments on commit 6b1476c

Please sign in to comment.