mirror of
https://github.com/outbackdingo/terraform-render-bootstrap.git
synced 2026-01-27 10:20:45 +00:00
* https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.26.md#v1261 * Update CoreDNS from v1.9.3 to v1.9.4 Rel: https://github.com/coredns/coredns/releases/tag/v1.9.4
43 lines
1.7 KiB
Markdown
43 lines
1.7 KiB
Markdown
# terraform-render-bootstrap
|
|
[](https://github.com/poseidon/terraform-render-bootstrap/actions/workflows/test.yaml?query=branch%3Amain)
|
|
[](https://github.com/sponsors/poseidon)
|
|
[](https://fosstodon.org/@typhoon)
|
|
|
|
`terraform-render-bootstrap` is a Terraform module that renders TLS certificates, static pods, and manifests for bootstrapping a Kubernetes cluster.
|
|
|
|
## Audience
|
|
|
|
`terraform-render-bootstrap` is a low-level component of the [Typhoon](https://github.com/poseidon/typhoon) Kubernetes distribution. Use Typhoon modules to create and manage Kubernetes clusters across supported platforms. Use the bootstrap module if you'd like to customize a Kubernetes control plane or build your own distribution.
|
|
|
|
## Usage
|
|
|
|
Use the module to declare bootstrap assets. Check [variables.tf](variables.tf) for options and [terraform.tfvars.example](terraform.tfvars.example) for examples.
|
|
|
|
```hcl
|
|
module "bootstrap" {
|
|
source = "git::https://github.com/poseidon/terraform-render-bootstrap.git?ref=SHA"
|
|
|
|
cluster_name = "example"
|
|
api_servers = ["node1.example.com"]
|
|
etcd_servers = ["node1.example.com"]
|
|
}
|
|
```
|
|
|
|
Generate assets in Terraform state.
|
|
|
|
```sh
|
|
terraform init
|
|
terraform plan
|
|
terraform apply
|
|
```
|
|
|
|
To inspect and write assets locally (e.g. debugging) use the `assets_dist` Terraform output.
|
|
|
|
```
|
|
resource local_file "assets" {
|
|
for_each = module.bootstrap.assets_dist
|
|
filename = "some-assets/${each.key}"
|
|
content = each.value
|
|
}
|
|
```
|