forked from pulumi/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
22 lines (18 loc) · 642 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2016-2018, Pulumi Corporation. All rights reserved.
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 } }
);
export let cluster = k8sCluster.name;
export let kubeConfig = k8sCluster.kubeConfigRaw;
export let serviceIP = apache
.getResourceProperty("v1/Service", "apache-apache", "status")
.apply(status => status.loadBalancer.ingress[0].ip);