rhythmic-rain-31941
10/01/2021, 1:23 AMrancher_ci_cluster = rancher2.Cluster()
k8s_provider = k8s.Provider("cluster-access",
kubeconfig=rancher_ci_cluster.kube_config
)
sa = k8s.core.v1.ServiceAccount("microservice",
metadata=k8s.meta.v1.ObjectMetaArgs(
namespace="monitoring",
name="microservice"
)
)
this keep throwing below error
error: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: Get "<https://992E92B1DDDD40F85E620599B78C3F9C.sk1.us-east-1.eks.amazonaws.com/openapi/v2?timeout=32s>": dial tcp: lookup <http://992E92B1DDDD40F85E620599B78C3F9C.sk1.us-east-1.eks.amazonaws.com|992E92B1DDDD40F85E620599B78C3F9C.sk1.us-east-1.eks.amazonaws.com> on 10.0.4.55:53: no such host
not sure if the provider is getting set correctly or not, can someone help me here please?
p.s: that's not my cluster api server endpoint toobillowy-army-68599
sa
, try this:
sa = k8s.core.v1.ServiceAccount("microservice",
metadata=k8s.meta.v1.ObjectMetaArgs(
namespace="monitoring",
name="microservice"
)
opts=pulumi.ResourceOptions(provider=k8s_provider)
)
rhythmic-rain-31941
10/01/2021, 1:36 AMerror: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: Get "https://<hostname>/k8s/clusters/c-5s7qv/openapi/v2?timeout=32s": x509: certificate signed by unknown authority
but i can hit that endpoint from browser with out any issue,. missing anything?pulumi login --local
billowy-army-68599
rhythmic-rain-31941
10/01/2021, 2:01 AMbillowy-army-68599
rhythmic-rain-31941
10/01/2021, 2:12 AMkubectl get pods
throws same error until i pass this flag --insecure-skip-tls-verify=true
billowy-army-68599
rhythmic-rain-31941
10/01/2021, 2:17 AMbillowy-army-68599
rhythmic-rain-31941
10/01/2021, 2:22 AM