sparse-intern-71089
12/11/2018, 4:57 PMfaint-motherboard-95438
12/11/2018, 5:12 PMkubectl
config..faint-motherboard-95438
12/11/2018, 5:13 PMfaint-motherboard-95438
12/11/2018, 5:14 PMfaint-motherboard-95438
12/11/2018, 5:15 PMbig-piano-35669
const config = new pulumi.Config();
const kubeconfig = config.require("kubeconfig");
const provider = new k8s.Provider("k8s", { kubeconfig });
const service = new k8s.v1.core.Service(..., { provider });
This configures an explicit Kubernetes provider that uses kubeconfig supplied via the Pulumi configuration system. All resources that use it (note the ..., { provider }
bit) will then target your kubeconfig, not the ambient kubectl
one. You can similarly specify cluster
or context
.
I'm not sure if there's a way to set the stack-wide config in the same manner, however, e.g.
$ cat kubeconfig.json | \
pulumi config set kubernetes:kubeconfig --
(or cluster
, or context
...)
@creamy-potato-29402 @gorgeous-egg-16927 Is this currently possible?gorgeous-egg-16927
12/12/2018, 6:01 AMfaint-motherboard-95438
12/12/2018, 10:04 AMgcloud
tool.faint-motherboard-95438
12/12/2018, 10:04 AM