sparse-intern-71089
08/10/2021, 5:59 PMgentle-diamond-70147
08/10/2021, 6:03 PMmicroscopic-animal-41955
08/10/2021, 6:05 PMmicroscopic-animal-41955
08/10/2021, 6:08 PMpulumi up
2. Run some script out of band that gets the IP addresses
3. Write those IP addresses to a file
4. Run pulumi up
, this time it sees that file and reads it in?billowy-army-68599
.get
method on NodeList
but I can't figure out how to populate the ID:
export const nodes = k8s.core.v1.NodeList.get("nodes", "")
microscopic-animal-41955
08/10/2021, 6:14 PMNodeList
on GitHubbillowy-army-68599
get
method doesn't work, sorry for the confusionmicroscopic-animal-41955
08/10/2021, 6:19 PMmicroscopic-animal-41955
08/10/2021, 6:20 PMbillowy-army-68599
microscopic-animal-41955
08/10/2021, 6:22 PMbillowy-army-68599
billowy-army-68599
import * as k8s from "@pulumi/kubernetes";
import * as k from "@kubernetes/client-node"
import * as pulumi from "@pulumi/pulumi"
const kc = new k.KubeConfig();
kc.loadFromFile("/Users/lbriggs/.kube/config.d/micro.yaml")
const k8sApi = kc.makeApiClient(k.CoreV1Api);
k8sApi.listNode().then((res) => {
console.log(res.body.items[0].status)
})
billowy-army-68599
microscopic-animal-41955
08/10/2021, 6:42 PM