Skip to content

Commit

Permalink
Add health check and update checked-in examples version
Browse files Browse the repository at this point in the history
  • Loading branch information
UnstoppableMango committed Jan 30, 2024
1 parent 9453c40 commit 5a605f2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ x-controlplane: &controlplane
- label=disable

services:
talos-controlplane-1:
controlplane:
<<: *controlplane
networks:
default:
Expand Down
8 changes: 8 additions & 0 deletions examples/typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
});
2 changes: 1 addition & 1 deletion examples/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"dependencies": {
"typescript": "^4.0.0",
"@pulumi/pulumi": "^3.0.0",
"@pulumiverse/talos": "0.1.8"
"@pulumiverse/talos": "0.2.0"
}
}

0 comments on commit 5a605f2

Please sign in to comment.