diff --git a/src/plugins/kubernetes/namespace.ts b/src/plugins/kubernetes/namespace.ts index fdc0f71bea..11dc086979 100644 --- a/src/plugins/kubernetes/namespace.ts +++ b/src/plugins/kubernetes/namespace.ts @@ -15,7 +15,13 @@ import { import { GARDEN_GLOBAL_SYSTEM_NAMESPACE } from "./system-global" export async function namespaceReady(namespace: string) { - const ns = await apiGetOrNull(coreApi().namespaces, namespace) + /** + * This is an issue with kubernetes-client where it fetches all namespaces instead of the requested one. + * Is fixed in v4.0.0. See https://github.com/godaddy/kubernetes-client/issues/187 and + * https://github.com/godaddy/kubernetes-client/pull/190 + */ + const allNamespaces = await apiGetOrNull(coreApi().namespaces, namespace) + const ns = allNamespaces.items.find(n => n.metadata.name === namespace) return ns && ns.status.phase === "Active" } diff --git a/static/kubernetes/system-global/kubernetes-dashboard/dashboard.yml b/static/kubernetes/system-global/kubernetes-dashboard/dashboard.yml index b05adb0c12..351a829f8b 100644 --- a/static/kubernetes/system-global/kubernetes-dashboard/dashboard.yml +++ b/static/kubernetes/system-global/kubernetes-dashboard/dashboard.yml @@ -167,7 +167,7 @@ spec: type: NodePort ports: - port: 443 - nodePort: 3200 + nodePort: 32005 targetPort: 8443 selector: k8s-app: kubernetes-dashboard