diff --git a/examples/docker-compose.yaml b/examples/docker-compose.yaml index 37bfe340..7b3bfbf9 100644 --- a/examples/docker-compose.yaml +++ b/examples/docker-compose.yaml @@ -27,7 +27,7 @@ x-controlplane: &controlplane - label=disable services: - talos-controlplane-1: + controlplane: <<: *controlplane networks: default: diff --git a/examples/typescript/index.ts b/examples/typescript/index.ts index 54945c62..9c033235 100644 --- a/examples/typescript/index.ts +++ b/examples/typescript/index.ts @@ -22,9 +22,17 @@ const configurationApply = new talos.machine.ConfigurationApply("configurationAp }, })], }); + const bootstrap = new talos.machine.Bootstrap("bootstrap", { node: "10.5.0.2", clientConfiguration: secrets.clientConfiguration, }, { dependsOn: [configurationApply], }); + +const health = talos.cluster.getHealthOutput({ + controlPlaneNodes: [bootstrap.node], + endpoints: [bootstrap.endpoint], + clientConfiguration: secrets.clientConfiguration, + timeouts: { read: "60s" }, +}); diff --git a/examples/typescript/package.json b/examples/typescript/package.json index ba1fe55e..7b8856f6 100644 --- a/examples/typescript/package.json +++ b/examples/typescript/package.json @@ -6,6 +6,6 @@ "dependencies": { "typescript": "^4.0.0", "@pulumi/pulumi": "^3.0.0", - "@pulumiverse/talos": "0.1.8" + "@pulumiverse/talos": "0.2.0" } }