Skip to content

Commit

Permalink
Modernize AKS-helm example, fix pulumi#136
Browse files Browse the repository at this point in the history
  • Loading branch information
hausdorff committed Sep 18, 2018
1 parent d4a7387 commit 73187eb
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions azure-ts-aks-helm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ import * as helm from "@pulumi/kubernetes/helm";
import * as k8s from "@pulumi/kubernetes";
import { k8sCluster, k8sProvider } from "./cluster";

const apache = new helm.v2.Chart("apache", {
repo: "bitnami",
chart: "apache",
version: "1.0.0",
}, { providers: { kubernetes: k8sProvider } });
const apache = new helm.v2.Chart(
"apache",
{
repo: "bitnami",
chart: "apache",
version: "1.0.0"
},
{ providers: { kubernetes: k8sProvider } }
);

export let cluster = k8sCluster.name;
export let kubeConfig = k8sCluster.kubeConfigRaw;
export let serviceIP =
(apache.resources["v1/Service::default/apache-apache"] as k8s.core.v1.Service).
spec.apply(s => s.clusterIP);
export let serviceIP = apache
.getResource("v1/Service", "apache-apache")
.spec.apply(s => s.clusterIP);

0 comments on commit 73187eb

Please sign in to comment.