early-musician-41645
10/29/2018, 11:03 PMpulumi up
it says:
Diagnostics:
kubernetes:core:ConfigMap (kube-system/online-splunk-config):
error: Unable to read kubectl config: invalid configuration: no configuration has been provided
Obviously the kubeconfig doesn't yet exist because the cluster isn't created. Once the cluster is created I need to write out the kubeconfig, copy it somewhere, then configure the local helm to use it.
Is there an example of this workflow?microscopic-florist-22719
kubeconfig
that is usable with the cluster is exported by the EKS component.export const kubeconfig = cluster.kubeconfig;
const cluster = new eks.Cluster(...);
earlier)early-musician-41645
10/29/2018, 11:05 PMmicroscopic-florist-22719
pulumi stack output kubeconfig > eks-kubeconfig.json
KUBECONFIG
environment variable to point to eks-kubeconfig.json
early-musician-41645
10/29/2018, 11:07 PMpulumi up
without running other commands?microscopic-florist-22719
early-musician-41645
10/29/2018, 11:07 PM// Deploy the Splunk forwarder to the cluster
const wordpress = new k8s.helm.v2.Chart("splunk-forwarder", {
kubeconfig: cluster.kubeconfig,
repo: "sdp-helm",
version: "0.2.75",
chart: "splunk-forwarder",
});
microscopic-florist-22719
// Deploy the Splunk forwarder to the cluster
const wordpress = new k8s.helm.v2.Chart("splunk-forwarder", {
repo: "sdp-helm",
version: "0.2.75",
chart: "splunk-forwarder",
}, {providers: {kubernetes: cluster.provider}});
{providers: {kubernetes: cluster.provider}}
early-musician-41645
10/29/2018, 11:11 PM