mirror of
https://github.com/KevinMidboe/kazan-terraform.git
synced 2026-01-10 03:05:55 +00:00
Project readme
This commit is contained in:
34
README.md
Normal file
34
README.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# Kazan terraform 🧊
|
||||
|
||||
Terraform plan for spinning up kubernetes cluster (named kazan) on local proxmox host.
|
||||
|
||||
|
||||
## Setup
|
||||
Export credentials for proxmox host:
|
||||
|
||||
```
|
||||
export PM_API_TOKEN_ID=''
|
||||
export PM_API_TOKEN_SECRET=''
|
||||
```
|
||||
|
||||
Download repo:
|
||||
```
|
||||
git clone git@github.com:kevinmidboe/kazan-terraform.git
|
||||
cd kazan-terraform
|
||||
```
|
||||
|
||||
## Terraform state file
|
||||
The terraform state (`tf.state` file) is stored in my gcp bucket. If you want change bucket provider/location do so by editing *gcs* backend definition in `main.ts`.
|
||||
To store locally instead change comment in *local* and out *gcs* in backend definition in `main.ts`.
|
||||
|
||||
## Run
|
||||
|
||||
If this is first time running tf plans:
|
||||
```
|
||||
terraform init
|
||||
```
|
||||
|
||||
then
|
||||
```
|
||||
terraform apply
|
||||
```
|
||||
Reference in New Issue
Block a user