Skip to content

Commit e258e8b

Browse files
authored
Update README.md
1 parent 9e7a2b1 commit e258e8b

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

terraform-provider-civo/k8s/talos/README.md

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,47 @@ Create a terraform.tfvars file:
3838
```hcl
3939
civo_token = "your-civo-api-key"
4040
region = "NYC1"
41+
grafana_enabled="true"
42+
prometheus_enabled="true"
4143
```
42-
Or export them manually:
44+
Or use a source file using TF_VAR exports:
4345
```bash
4446
export CIVO_TOKEN="your-civo-api-key"
4547
export TF_VAR_region="NYC1"
48+
export TF_VAR_grafana_enabled="true"
49+
export TF_VAR_prometheus_enabled="true"
4650
```
4751
### 3️⃣ Deploy the cluster
4852
```bash
4953
terraform init
5054
terraform apply -auto-approve
5155
```
56+
### monitor the cluster
57+
![WhatsApp Image 2025-04-30 at 11 54 34_e7656662](https://github.com/user-attachments/assets/bc759be4-2dda-480a-b00a-68e6f1c307b3)
58+
![WhatsApp Image 2025-04-30 at 11 56 21_6811d470](https://github.com/user-attachments/assets/73870670-1d88-4505-bc4a-630c1ab511a0)
59+
![WhatsApp Image 2025-04-30 at 12 01 34_ce03c190](https://github.com/user-attachments/assets/5af6c84d-eca5-4ef5-80ac-137d5be6121c)
60+
![WhatsApp Image 2025-04-30 at 19 03 10_b4b00265](https://github.com/user-attachments/assets/1d5e27a7-5b6e-47fa-b236-e79ba6287af6)
61+
62+
## TLS troubleshooting:
63+
1. If a Let's Encrypt certificate fails with an invalid Order error 400 that's either because the issuer or cet-manager weren't 100 ready while grafana ingress was being deployed
64+
**Slution**:
65+
redeploy using terraform replace the ingress resource
66+
```bash
67+
$ terraform apply -replace=kubernetes_ingress_v1.grafana[0]
68+
...
69+
70+
Apply complete! Resources: 1 added, 0 changed, 1 destroyed.
71+
```
72+
2. Rate Limit:
73+
74+
Up to 10000 certificates can be issued per registered domain (i.e we used nip.io) every 7 days. When this limit is reached you need to wait
75+
```Error
76+
Failed to create Order: 429 urn:ietf:params:acme:error:rateLimited: too many certificates (10000) already issued for "nip.io"
77+
```
5278

5379
## 🛠 Future Enhancements
5480
- Add External DNS integration
55-
- Enable ArgoCD or FluxCD
56-
- Deploy monitoring (Prometheus, Grafana)
81+
- Enable ArgoCD
82+
- Deploy `kube-prometheus-stack`
5783

5884
## Contributions are welcome 🫶🏻

0 commit comments

Comments
 (0)