sparse-intern-71089
10/29/2018, 11:03 PMmicroscopic-florist-22719
kubeconfig
that is usable with the cluster is exported by the EKS component.microscopic-florist-22719
microscopic-florist-22719
export const kubeconfig = cluster.kubeconfig;
microscopic-florist-22719
const cluster = new eks.Cluster(...);
earlier)early-musician-41645
10/29/2018, 11:05 PMmicroscopic-florist-22719
microscopic-florist-22719
pulumi stack output kubeconfig > eks-kubeconfig.json
microscopic-florist-22719
KUBECONFIG
environment variable to point to eks-kubeconfig.json
microscopic-florist-22719
early-musician-41645
10/29/2018, 11:07 PMpulumi up
without running other commands?microscopic-florist-22719
microscopic-florist-22719
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}});
microscopic-florist-22719
microscopic-florist-22719
{providers: {kubernetes: cluster.provider}}
early-musician-41645
10/29/2018, 11:11 PM