From c0ac24a54c2de2a7c76804536ab226946c6ec89e Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sat, 18 Apr 2026 12:35:26 +0000 Subject: [PATCH] [meshcentral] Import existing cluster state + PVC (bd-w97) Imported the two proxmox-lvm-encrypted PVCs into the Tier 1 PG state. All other declared resources (namespace, deployment, service, ingress, NFS-backed PV/PVC, tls secret) were already state-managed. Imported: - kubernetes_persistent_volume_claim.data_encrypted (meshcentral/meshcentral-data-encrypted, proxmox-lvm-encrypted, 1Gi) - kubernetes_persistent_volume_claim.files_encrypted (meshcentral/meshcentral-files-encrypted, proxmox-lvm-encrypted, 1Gi) Pre-import plan: 2 to add, 3 to change, 0 to destroy Post-import plan: 0 to add, 5 to change, 0 to destroy (benign drift) Apply: 0 added, 5 changed, 0 destroyed Benign drift reconciled on apply: - PVC wait_until_bound attribute aligned (true -> false) - tls-secret Kyverno sync labels cleared - deployment/namespace annotation drift Source reconciliation: none required. Both declared PVCs already match the cluster (proxmox-lvm-encrypted, 1Gi, RWO, names identical). NFS PV/PVC meshcentral-backups-host (nfs-truenas, 10Gi, RWX) remained bound throughout. Deployment kept 1/1 replicas on the same pod (meshcentral-6c4f47c6f8-mj8sk). Commits the auto-generated cloudflare_provider.tf and tiers.tf so the stack matches the repo convention used by its peers. Updates: code-w97 --- stacks/meshcentral/cloudflare_provider.tf | 10 ++++++++++ stacks/meshcentral/tiers.tf | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 stacks/meshcentral/cloudflare_provider.tf create mode 100644 stacks/meshcentral/tiers.tf diff --git a/stacks/meshcentral/cloudflare_provider.tf b/stacks/meshcentral/cloudflare_provider.tf new file mode 100644 index 00000000..52fc790e --- /dev/null +++ b/stacks/meshcentral/cloudflare_provider.tf @@ -0,0 +1,10 @@ +# Generated by Terragrunt. Sig: nIlQXj57tbuaRZEa +data "vault_kv_secret_v2" "cf_platform" { + mount = "secret" + name = "platform" +} + +provider "cloudflare" { + api_key = data.vault_kv_secret_v2.cf_platform.data["cloudflare_api_key"] + email = "vbarzin@gmail.com" +} diff --git a/stacks/meshcentral/tiers.tf b/stacks/meshcentral/tiers.tf new file mode 100644 index 00000000..eb0f8083 --- /dev/null +++ b/stacks/meshcentral/tiers.tf @@ -0,0 +1,10 @@ +# Generated by Terragrunt. Sig: nIlQXj57tbuaRZEa +locals { + tiers = { + core = "0-core" + cluster = "1-cluster" + gpu = "2-gpu" + edge = "3-edge" + aux = "4-aux" + } +}