[ci skip] update claude knowledge: always apply cloudflared module for DNS

When deploying a new service, the cloudflared module must also be applied
to create the Cloudflare DNS record. Updated CLAUDE.md and setup-project skill.
This commit is contained in:
Viktor Barzin 2026-02-08 02:21:29 +00:00
parent d911db6cd9
commit 87f851c20e
No known key found for this signature in database
GPG key ID: 0EB088298288D958
2 changed files with 13 additions and 1 deletions

View file

@ -168,6 +168,12 @@ kubectl get pods -A
- `terraform apply -target=module.docker-registry-vm` - Apply docker registry VM
- Only skip `-target` when explicitly told to apply everything
**IMPORTANT: When deploying a new service**, you must ALSO apply the `cloudflared` module to create the Cloudflare DNS record:
```bash
terraform apply -target=module.kubernetes_cluster.module.cloudflared -var="kube_config_path=$(pwd)/config" -auto-approve
```
Adding a name to `cloudflare_non_proxied_names` or `cloudflare_proxied_names` in `terraform.tfvars` only defines the record — it won't be created until the `cloudflared` module is applied.
## Module Structure
Top-level modules in `main.tf`:
- `module.k8s-node-template` - K8s node VM template

View file

@ -313,9 +313,15 @@ smtp_password = var.mailserver_accounts["info@viktorbarzin.me"]
```bash
terraform init
terraform apply -target=module.kubernetes_cluster.module.<service> -auto-approve
terraform apply -target=module.kubernetes_cluster.module.<service> -var="kube_config_path=$(pwd)/config" -auto-approve
```
**IMPORTANT: Also apply the cloudflared module to create the Cloudflare DNS record:**
```bash
terraform apply -target=module.kubernetes_cluster.module.cloudflared -var="kube_config_path=$(pwd)/config" -auto-approve
```
Without this step, the DNS record won't be created even though it's defined in `terraform.tfvars`.
### 8. Verification
```bash