diff --git a/extensions/kubernetes-client/deployment/src/main/java/io/quarkus/kubernetes/client/deployment/DevServicesKubernetesProcessor.java b/extensions/kubernetes-client/deployment/src/main/java/io/quarkus/kubernetes/client/deployment/DevServicesKubernetesProcessor.java index d4a6ee195991e..8deaab773cc08 100644 --- a/extensions/kubernetes-client/deployment/src/main/java/io/quarkus/kubernetes/client/deployment/DevServicesKubernetesProcessor.java +++ b/extensions/kubernetes-client/deployment/src/main/java/io/quarkus/kubernetes/client/deployment/DevServicesKubernetesProcessor.java @@ -343,7 +343,8 @@ public Map getKubeconfig() { return getKubernetesClientConfigFromKubeConfig( KubeConfigUtils.parseKubeConfig(KubeConfigUtils.replaceServerInKubeconfig(containerAddress.getUrl(), getFileContentFromContainer(KIND_KUBECONFIG)))); - } else if (image.contains("k8s.gcr.io/kube-apiserver")) { + } else if (image.contains("k8s.gcr.io/kube-apiserver") || + image.contains("registry.k8s.io/kube-apiserver")) { return getKubernetesClientConfigFromKubeConfig(getKubeconfigFromApiContainer(containerAddress.getUrl())); }