homelab/infrastructure/terraform/terraform.tfstate.backup
Gonçalo Rodrigues 85930ef40f ci: switch to self-hosted runner with local k3d image import
Removes all ghcr.io and registry dependencies. Workflows now build
images locally, import them into k3d, and deploy with kubectl set image
— all on the self-hosted runner which already has Docker and kubectl.

Also removes the github Terraform provider and ci.tf since no registry
pull secrets or GitHub Actions secrets are needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-13 14:33:12 +01:00

1221 lines
47 KiB
JSON

{
"version": 4,
"terraform_version": "1.15.5",
"serial": 412,
"lineage": "28673c1d-998f-000c-38f5-de7c9e848250",
"outputs": {},
"resources": [
{
"mode": "managed",
"type": "helm_release",
"name": "fluent_bit",
"provider": "provider[\"registry.terraform.io/hashicorp/helm\"]",
"instances": [
{
"schema_version": 1,
"attributes": {
"atomic": true,
"chart": "fluent-bit",
"cleanup_on_fail": false,
"create_namespace": false,
"dependency_update": false,
"description": null,
"devel": null,
"disable_crd_hooks": false,
"disable_openapi_validation": false,
"disable_webhooks": false,
"force_update": false,
"id": "fluent-bit",
"keyring": null,
"lint": false,
"manifest": null,
"max_history": 0,
"metadata": [
{
"app_version": "3.2.10",
"chart": "fluent-bit",
"first_deployed": 1781347541,
"last_deployed": 1781347541,
"name": "fluent-bit",
"namespace": "monitoring",
"notes": "Get Fluent Bit build information by running these commands:\n\nexport POD_NAME=$(kubectl get pods --namespace monitoring -l \"app.kubernetes.io/name=fluent-bit,app.kubernetes.io/instance=fluent-bit\" -o jsonpath=\"{.items[0].metadata.name}\")\nkubectl --namespace monitoring port-forward $POD_NAME 2020:2020\ncurl http://127.0.0.1:2020 \n\n",
"revision": 1,
"values": "{\"config\":{\"filters\":\"[FILTER]\\n Name kubernetes\\n Match kube.*\\n Annotations Off\\n Labels On\\n\",\"inputs\":\"[INPUT]\\n Name tail\\n Path /var/log/containers/*.log\\n Exclude_Path /var/log/containers/fluent-bit-*.log\\n multiline.parser docker,cri\\n Tag kube.*\\n Mem_Buf_Limit 50MB\\n Skip_Long_Lines On\\n\",\"outputs\":\"[OUTPUT]\\n Name loki\\n Match *\\n Host loki-gateway.monitoring.svc\\n Port 80\\n Labels job=fluent-bit\\n\",\"service\":\"[SERVICE]\\n Daemon Off\\n Log_Level info\\n Parsers_File /fluent-bit/etc/parsers.conf\\n HTTP_Server On\\n HTTP_Listen 0.0.0.0\\n HTTP_Port 2020\\n Health_Check On\\n\"},\"daemonSetVolumeMounts\":[{\"mountPath\":\"/var/log\",\"name\":\"varlog\"},{\"mountPath\":\"/var/lib/docker/containers\",\"name\":\"varlibdockercontainers\",\"readOnly\":true}],\"daemonSetVolumes\":[{\"hostPath\":{\"path\":\"/var/log\"},\"name\":\"varlog\"},{\"hostPath\":{\"path\":\"/var/lib/docker/containers\"},\"name\":\"varlibdockercontainers\"}],\"image\":{\"repository\":\"docker.io/fluent/fluent-bit\",\"tag\":\"3.2\"},\"tolerations\":[{\"operator\":\"Exists\"}]}",
"version": "0.48.10"
}
],
"name": "fluent-bit",
"namespace": "monitoring",
"pass_credentials": false,
"postrender": [],
"recreate_pods": false,
"render_subchart_notes": true,
"replace": false,
"repository": "https://fluent.github.io/helm-charts",
"repository_ca_file": null,
"repository_cert_file": null,
"repository_key_file": null,
"repository_password": null,
"repository_username": null,
"reset_values": false,
"reuse_values": false,
"set": [],
"set_list": [],
"set_sensitive": [],
"skip_crds": false,
"status": "deployed",
"timeout": 300,
"upgrade_install": null,
"values": [
"\"config\":\n \"filters\": |\n [FILTER]\n Name kubernetes\n Match kube.*\n Annotations Off\n Labels On\n \"inputs\": |\n [INPUT]\n Name tail\n Path /var/log/containers/*.log\n Exclude_Path /var/log/containers/fluent-bit-*.log\n multiline.parser docker,cri\n Tag kube.*\n Mem_Buf_Limit 50MB\n Skip_Long_Lines On\n \"outputs\": |\n [OUTPUT]\n Name loki\n Match *\n Host loki-gateway.monitoring.svc\n Port 80\n Labels job=fluent-bit\n \"service\": |\n [SERVICE]\n Daemon Off\n Log_Level info\n Parsers_File /fluent-bit/etc/parsers.conf\n HTTP_Server On\n HTTP_Listen 0.0.0.0\n HTTP_Port 2020\n Health_Check On\n\"daemonSetVolumeMounts\":\n- \"mountPath\": \"/var/log\"\n \"name\": \"varlog\"\n- \"mountPath\": \"/var/lib/docker/containers\"\n \"name\": \"varlibdockercontainers\"\n \"readOnly\": true\n\"daemonSetVolumes\":\n- \"hostPath\":\n \"path\": \"/var/log\"\n \"name\": \"varlog\"\n- \"hostPath\":\n \"path\": \"/var/lib/docker/containers\"\n \"name\": \"varlibdockercontainers\"\n\"image\":\n \"repository\": \"docker.io/fluent/fluent-bit\"\n \"tag\": \"3.2\"\n\"tolerations\":\n- \"operator\": \"Exists\"\n"
],
"verify": false,
"version": "0.48.10",
"wait": true,
"wait_for_jobs": false
},
"sensitive_attributes": [
[
{
"type": "get_attr",
"value": "repository_password"
}
]
],
"identity_schema_version": 0,
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==",
"dependencies": [
"kubernetes_namespace.domains"
]
}
]
},
{
"mode": "managed",
"type": "helm_release",
"name": "jaeger",
"provider": "provider[\"registry.terraform.io/hashicorp/helm\"]",
"instances": [
{
"schema_version": 1,
"attributes": {
"atomic": true,
"chart": "jaeger",
"cleanup_on_fail": false,
"create_namespace": false,
"dependency_update": false,
"description": null,
"devel": null,
"disable_crd_hooks": false,
"disable_openapi_validation": false,
"disable_webhooks": false,
"force_update": false,
"id": "jaeger",
"keyring": null,
"lint": false,
"manifest": null,
"max_history": 0,
"metadata": [
{
"app_version": "2.18.0",
"chart": "jaeger",
"first_deployed": 1781347536,
"last_deployed": 1781347536,
"name": "jaeger",
"namespace": "monitoring",
"notes": "###################################################################\n### ⚠️ EXPERIMENTAL - NO STABILITY GUARANTEES ###\n### ###\n### This chart is under active development. ###\n### Breaking changes may occur in minor versions. ###\n### ###\n### See README.md for configuration details. ###\n###################################################################\n\n🚀 Congratulations on successfully installing Jaeger v2.18.0 (Chart v4.8.0)!\n\nTo access the query UI:\n http://jaeger.homelab.local\n",
"revision": 1,
"values": "{\"jaeger\":{\"ingress\":{\"annotations\":{\"traefik.ingress.kubernetes.io/router.middlewares\":\"auth-forward-auth@kubernetescrd\"},\"enabled\":true,\"hosts\":[\"jaeger.homelab.local\"]}}}",
"version": "4.8.0"
}
],
"name": "jaeger",
"namespace": "monitoring",
"pass_credentials": false,
"postrender": [],
"recreate_pods": false,
"render_subchart_notes": true,
"replace": false,
"repository": "https://jaegertracing.github.io/helm-charts",
"repository_ca_file": null,
"repository_cert_file": null,
"repository_key_file": null,
"repository_password": null,
"repository_username": null,
"reset_values": false,
"reuse_values": false,
"set": [],
"set_list": [],
"set_sensitive": [],
"skip_crds": false,
"status": "deployed",
"timeout": 300,
"upgrade_install": null,
"values": [
"\"jaeger\":\n \"ingress\":\n \"annotations\":\n \"traefik.ingress.kubernetes.io/router.middlewares\": \"auth-forward-auth@kubernetescrd\"\n \"enabled\": true\n \"hosts\":\n - \"jaeger.homelab.local\"\n"
],
"verify": false,
"version": "4.8.0",
"wait": true,
"wait_for_jobs": false
},
"sensitive_attributes": [
[
{
"type": "get_attr",
"value": "repository_password"
}
]
],
"identity_schema_version": 0,
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==",
"dependencies": [
"kubernetes_namespace.domains"
]
}
]
},
{
"mode": "managed",
"type": "helm_release",
"name": "loki",
"provider": "provider[\"registry.terraform.io/hashicorp/helm\"]",
"instances": [
{
"schema_version": 1,
"attributes": {
"atomic": false,
"chart": "loki",
"cleanup_on_fail": false,
"create_namespace": false,
"dependency_update": false,
"description": null,
"devel": null,
"disable_crd_hooks": false,
"disable_openapi_validation": false,
"disable_webhooks": false,
"force_update": false,
"id": "loki",
"keyring": null,
"lint": false,
"manifest": null,
"max_history": 0,
"metadata": [
{
"app_version": "3.4.2",
"chart": "loki",
"first_deployed": 1781347540,
"last_deployed": 1781347540,
"name": "loki",
"namespace": "monitoring",
"notes": "***********************************************************************\n Welcome to Grafana Loki\n Chart version: 6.28.0\n Chart Name: loki\n Loki version: 3.4.2\n***********************************************************************\n\n** Please be patient while the chart is being deployed **\n\nTip:\n\n Watch the deployment status using the command: kubectl get pods -w --namespace monitoring\n\nIf pods are taking too long to schedule make sure pod affinity can be fulfilled in the current cluster.\n\n***********************************************************************\nInstalled components:\n***********************************************************************\n* loki\n\nLoki has been deployed as a single binary.\nThis means a single pod is handling reads and writes. You can scale that pod vertically by adding more CPU and memory resources.\n\n\n***********************************************************************\nSending logs to Loki\n***********************************************************************\n\nLoki has been configured with a gateway (nginx) to support reads and writes from a single component.\n\nYou can send logs from inside the cluster using the cluster DNS:\n\nhttp://loki-gateway.monitoring.svc.cluster.local/loki/api/v1/push\n\nYou can test to send data from outside the cluster by port-forwarding the gateway to your local machine:\n\n kubectl port-forward --namespace monitoring svc/loki-gateway 3100:80 \u0026\n\nAnd then using http://127.0.0.1:3100/loki/api/v1/push URL as shown below:\n\n```\ncurl -H \"Content-Type: application/json\" -XPOST -s \"http://127.0.0.1:3100/loki/api/v1/push\" \\\n--data-raw \"{\\\"streams\\\": [{\\\"stream\\\": {\\\"job\\\": \\\"test\\\"}, \\\"values\\\": [[\\\"$(date +%s)000000000\\\", \\\"fizzbuzz\\\"]]}]}\"\n```\n\nThen verify that Loki did receive the data using the following command:\n\n```\ncurl \"http://127.0.0.1:3100/loki/api/v1/query_range\" --data-urlencode 'query={job=\"test\"}' | jq .data.result\n```\n\n***********************************************************************\nConnecting Grafana to Loki\n***********************************************************************\n\nIf Grafana operates within the cluster, you'll set up a new Loki datasource by utilizing the following URL:\n\nhttp://loki-gateway.monitoring.svc.cluster.local/\n",
"revision": 1,
"values": "{\"backend\":{\"replicas\":0},\"chunksCache\":{\"enabled\":false},\"deploymentMode\":\"SingleBinary\",\"gateway\":{\"basicAuth\":{\"enabled\":false},\"enabled\":true,\"nginxConfig\":{\"httpSnippet\":\"proxy_set_header X-Scope-OrgID \\\"1\\\";\",\"serverSnippet\":\"\"}},\"loki\":{\"auth_enabled\":false,\"commonConfig\":{\"replication_factor\":1},\"containerSecurityContext\":{\"readOnlyRootFilesystem\":false},\"schemaConfig\":{\"configs\":[{\"from\":\"2024-01-01\",\"index\":{\"period\":\"24h\",\"prefix\":\"loki_index_\"},\"object_store\":\"filesystem\",\"schema\":\"v13\",\"store\":\"tsdb\"}]},\"storage\":{\"bucketNames\":{\"admin\":\"loki-admin\",\"chunks\":\"loki-chunks\",\"ruler\":\"loki-ruler\"},\"type\":\"filesystem\"}},\"monitoring\":{\"alerts\":{\"enabled\":false},\"dashboards\":{\"enabled\":false},\"lokiCanary\":{\"enabled\":false},\"rules\":{\"enabled\":false},\"selfMonitoring\":{\"enabled\":false},\"serviceMonitor\":{\"enabled\":false}},\"read\":{\"replicas\":0},\"resultsCache\":{\"enabled\":false},\"ruler\":{\"enabled\":false},\"singleBinary\":{\"extraVolumeMounts\":[{\"mountPath\":\"/var/loki\",\"name\":\"data\"}],\"extraVolumes\":[{\"emptyDir\":{},\"name\":\"data\"}],\"persistence\":{\"enabled\":false},\"replicas\":1},\"test\":{\"enabled\":false},\"write\":{\"replicas\":0}}",
"version": "6.28.0"
}
],
"name": "loki",
"namespace": "monitoring",
"pass_credentials": false,
"postrender": [],
"recreate_pods": false,
"render_subchart_notes": true,
"replace": false,
"repository": "https://grafana.github.io/helm-charts",
"repository_ca_file": null,
"repository_cert_file": null,
"repository_key_file": null,
"repository_password": null,
"repository_username": null,
"reset_values": false,
"reuse_values": false,
"set": [],
"set_list": [],
"set_sensitive": [],
"skip_crds": false,
"status": "deployed",
"timeout": 300,
"upgrade_install": null,
"values": [
"\"backend\":\n \"replicas\": 0\n\"chunksCache\":\n \"enabled\": false\n\"deploymentMode\": \"SingleBinary\"\n\"gateway\":\n \"basicAuth\":\n \"enabled\": false\n \"enabled\": true\n \"nginxConfig\":\n \"httpSnippet\": \"proxy_set_header X-Scope-OrgID \\\"1\\\";\"\n \"serverSnippet\": \"\"\n\"loki\":\n \"auth_enabled\": false\n \"commonConfig\":\n \"replication_factor\": 1\n \"containerSecurityContext\":\n \"readOnlyRootFilesystem\": false\n \"schemaConfig\":\n \"configs\":\n - \"from\": \"2024-01-01\"\n \"index\":\n \"period\": \"24h\"\n \"prefix\": \"loki_index_\"\n \"object_store\": \"filesystem\"\n \"schema\": \"v13\"\n \"store\": \"tsdb\"\n \"storage\":\n \"bucketNames\":\n \"admin\": \"loki-admin\"\n \"chunks\": \"loki-chunks\"\n \"ruler\": \"loki-ruler\"\n \"type\": \"filesystem\"\n\"monitoring\":\n \"alerts\":\n \"enabled\": false\n \"dashboards\":\n \"enabled\": false\n \"lokiCanary\":\n \"enabled\": false\n \"rules\":\n \"enabled\": false\n \"selfMonitoring\":\n \"enabled\": false\n \"serviceMonitor\":\n \"enabled\": false\n\"read\":\n \"replicas\": 0\n\"resultsCache\":\n \"enabled\": false\n\"ruler\":\n \"enabled\": false\n\"singleBinary\":\n \"extraVolumeMounts\":\n - \"mountPath\": \"/var/loki\"\n \"name\": \"data\"\n \"extraVolumes\":\n - \"emptyDir\": {}\n \"name\": \"data\"\n \"persistence\":\n \"enabled\": false\n \"replicas\": 1\n\"test\":\n \"enabled\": false\n\"write\":\n \"replicas\": 0\n"
],
"verify": false,
"version": "6.28.0",
"wait": false,
"wait_for_jobs": false
},
"sensitive_attributes": [
[
{
"type": "get_attr",
"value": "repository_password"
}
]
],
"identity_schema_version": 0,
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==",
"dependencies": [
"kubernetes_namespace.domains"
]
}
]
},
{
"mode": "managed",
"type": "kubernetes_namespace",
"name": "domains",
"provider": "provider[\"registry.terraform.io/hashicorp/kubernetes\"]",
"instances": [
{
"index_key": "auth",
"schema_version": 0,
"attributes": {
"id": "auth",
"metadata": [
{
"annotations": null,
"generate_name": "",
"generation": 0,
"labels": null,
"name": "auth",
"resource_version": "560",
"uid": "a6f4f18e-ebfa-445d-9021-01e7e3443df5"
}
],
"timeouts": null,
"wait_for_default_service_account": false
},
"sensitive_attributes": [],
"identity_schema_version": 0,
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjozMDAwMDAwMDAwMDB9fQ=="
},
{
"index_key": "finance",
"schema_version": 0,
"attributes": {
"id": "finance",
"metadata": [
{
"annotations": null,
"generate_name": "",
"generation": 0,
"labels": null,
"name": "finance",
"resource_version": "558",
"uid": "bb8df1ed-024b-407c-8ded-65ba7d5983af"
}
],
"timeouts": null,
"wait_for_default_service_account": false
},
"sensitive_attributes": [],
"identity_schema_version": 0,
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjozMDAwMDAwMDAwMDB9fQ=="
},
{
"index_key": "home",
"schema_version": 0,
"attributes": {
"id": "home",
"metadata": [
{
"annotations": null,
"generate_name": "",
"generation": 0,
"labels": null,
"name": "home",
"resource_version": "561",
"uid": "b79f5a4a-345e-4fa7-9ab2-d4b71a6ac4d7"
}
],
"timeouts": null,
"wait_for_default_service_account": false
},
"sensitive_attributes": [],
"identity_schema_version": 0,
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjozMDAwMDAwMDAwMDB9fQ=="
},
{
"index_key": "infrastructure",
"schema_version": 0,
"attributes": {
"id": "infrastructure",
"metadata": [
{
"annotations": null,
"generate_name": "",
"generation": 0,
"labels": null,
"name": "infrastructure",
"resource_version": "563",
"uid": "9d9e5d6e-47fc-4833-b63e-8cc0d4fdce03"
}
],
"timeouts": null,
"wait_for_default_service_account": false
},
"sensitive_attributes": [],
"identity_schema_version": 0,
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjozMDAwMDAwMDAwMDB9fQ=="
},
{
"index_key": "monitoring",
"schema_version": 0,
"attributes": {
"id": "monitoring",
"metadata": [
{
"annotations": null,
"generate_name": "",
"generation": 0,
"labels": null,
"name": "monitoring",
"resource_version": "559",
"uid": "bf35e1ff-1a6b-46f9-ae6c-3a67ac42a82e"
}
],
"timeouts": null,
"wait_for_default_service_account": false
},
"sensitive_attributes": [],
"identity_schema_version": 0,
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjozMDAwMDAwMDAwMDB9fQ=="
},
{
"index_key": "test",
"schema_version": 0,
"attributes": {
"id": "test",
"metadata": [
{
"annotations": null,
"generate_name": "",
"generation": 0,
"labels": null,
"name": "test",
"resource_version": "557",
"uid": "d60671b5-4764-4bbb-acd0-bb02c246dcbc"
}
],
"timeouts": null,
"wait_for_default_service_account": false
},
"sensitive_attributes": [],
"identity_schema_version": 0,
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiZGVsZXRlIjozMDAwMDAwMDAwMDB9fQ=="
}
]
},
{
"mode": "managed",
"type": "kubernetes_secret",
"name": "mongodb",
"provider": "provider[\"registry.terraform.io/hashicorp/kubernetes\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"binary_data": null,
"data": {
"MONGO_DB": "homelab",
"MONGO_INITDB_ROOT_PASSWORD": "CQeYgJN3AXl9Kpx15zmwkArd",
"MONGO_URI": "mongodb://root:CQeYgJN3AXl9Kpx15zmwkArd@mongodb.infrastructure.svc:27017"
},
"id": "infrastructure/mongodb",
"immutable": false,
"metadata": [
{
"annotations": null,
"generate_name": "",
"generation": 0,
"labels": null,
"name": "mongodb",
"namespace": "infrastructure",
"resource_version": "580",
"uid": "57167d70-7714-4c9e-ba80-333c83e483a9"
}
],
"timeouts": null,
"type": "Opaque",
"wait_for_service_account_token": true
},
"sensitive_attributes": [
[
{
"type": "get_attr",
"value": "binary_data"
}
],
[
{
"type": "get_attr",
"value": "data"
}
],
[
{
"type": "get_attr",
"value": "data"
},
{
"type": "index",
"value": {
"value": "MONGO_INITDB_ROOT_PASSWORD",
"type": "string"
}
}
],
[
{
"type": "get_attr",
"value": "data"
},
{
"type": "index",
"value": {
"value": "MONGO_URI",
"type": "string"
}
}
]
],
"identity_schema_version": 0,
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMH19",
"dependencies": [
"kubernetes_namespace.domains",
"random_password.mongodb"
]
}
]
},
{
"mode": "managed",
"type": "kubernetes_secret",
"name": "mongodb_shared_config",
"provider": "provider[\"registry.terraform.io/hashicorp/kubernetes\"]",
"instances": [
{
"index_key": "auth",
"schema_version": 0,
"attributes": {
"binary_data": null,
"data": {
"MONGO_DB": "homelab",
"MONGO_URI": "mongodb://root:CQeYgJN3AXl9Kpx15zmwkArd@mongodb.infrastructure.svc:27017"
},
"id": "auth/mongodb-shared-config",
"immutable": false,
"metadata": [
{
"annotations": null,
"generate_name": "",
"generation": 0,
"labels": null,
"name": "mongodb-shared-config",
"namespace": "auth",
"resource_version": "586",
"uid": "77fdd3c5-50ed-41f4-916c-3625cbbe244c"
}
],
"timeouts": null,
"type": "Opaque",
"wait_for_service_account_token": true
},
"sensitive_attributes": [
[
{
"type": "get_attr",
"value": "binary_data"
}
],
[
{
"type": "get_attr",
"value": "data"
}
],
[
{
"type": "get_attr",
"value": "data"
},
{
"type": "index",
"value": {
"value": "MONGO_URI",
"type": "string"
}
}
]
],
"identity_schema_version": 0,
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMH19",
"dependencies": [
"kubernetes_namespace.domains",
"random_password.mongodb"
]
},
{
"index_key": "finance",
"schema_version": 0,
"attributes": {
"binary_data": null,
"data": {
"MONGO_DB": "homelab",
"MONGO_URI": "mongodb://root:CQeYgJN3AXl9Kpx15zmwkArd@mongodb.infrastructure.svc:27017"
},
"id": "finance/mongodb-shared-config",
"immutable": false,
"metadata": [
{
"annotations": null,
"generate_name": "",
"generation": 0,
"labels": null,
"name": "mongodb-shared-config",
"namespace": "finance",
"resource_version": "587",
"uid": "def8ec73-bb14-475b-b26e-e3ae7146fe0a"
}
],
"timeouts": null,
"type": "Opaque",
"wait_for_service_account_token": true
},
"sensitive_attributes": [
[
{
"type": "get_attr",
"value": "binary_data"
}
],
[
{
"type": "get_attr",
"value": "data"
}
],
[
{
"type": "get_attr",
"value": "data"
},
{
"type": "index",
"value": {
"value": "MONGO_URI",
"type": "string"
}
}
]
],
"identity_schema_version": 0,
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMH19",
"dependencies": [
"kubernetes_namespace.domains",
"random_password.mongodb"
]
},
{
"index_key": "home",
"schema_version": 0,
"attributes": {
"binary_data": null,
"data": {
"MONGO_DB": "homelab",
"MONGO_URI": "mongodb://root:CQeYgJN3AXl9Kpx15zmwkArd@mongodb.infrastructure.svc:27017"
},
"id": "home/mongodb-shared-config",
"immutable": false,
"metadata": [
{
"annotations": null,
"generate_name": "",
"generation": 0,
"labels": null,
"name": "mongodb-shared-config",
"namespace": "home",
"resource_version": "578",
"uid": "f8fb372f-98e4-4a59-9e40-ae4dd8424bc0"
}
],
"timeouts": null,
"type": "Opaque",
"wait_for_service_account_token": true
},
"sensitive_attributes": [
[
{
"type": "get_attr",
"value": "binary_data"
}
],
[
{
"type": "get_attr",
"value": "data"
}
],
[
{
"type": "get_attr",
"value": "data"
},
{
"type": "index",
"value": {
"value": "MONGO_URI",
"type": "string"
}
}
]
],
"identity_schema_version": 0,
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMH19",
"dependencies": [
"kubernetes_namespace.domains",
"random_password.mongodb"
]
},
{
"index_key": "infrastructure",
"schema_version": 0,
"attributes": {
"binary_data": null,
"data": {
"MONGO_DB": "homelab",
"MONGO_URI": "mongodb://root:CQeYgJN3AXl9Kpx15zmwkArd@mongodb.infrastructure.svc:27017"
},
"id": "infrastructure/mongodb-shared-config",
"immutable": false,
"metadata": [
{
"annotations": null,
"generate_name": "",
"generation": 0,
"labels": null,
"name": "mongodb-shared-config",
"namespace": "infrastructure",
"resource_version": "577",
"uid": "f7604981-db0a-4ef0-b8ff-c633cd107b7a"
}
],
"timeouts": null,
"type": "Opaque",
"wait_for_service_account_token": true
},
"sensitive_attributes": [
[
{
"type": "get_attr",
"value": "binary_data"
}
],
[
{
"type": "get_attr",
"value": "data"
}
],
[
{
"type": "get_attr",
"value": "data"
},
{
"type": "index",
"value": {
"value": "MONGO_URI",
"type": "string"
}
}
]
],
"identity_schema_version": 0,
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMH19",
"dependencies": [
"kubernetes_namespace.domains",
"random_password.mongodb"
]
},
{
"index_key": "monitoring",
"schema_version": 0,
"attributes": {
"binary_data": null,
"data": {
"MONGO_DB": "homelab",
"MONGO_URI": "mongodb://root:CQeYgJN3AXl9Kpx15zmwkArd@mongodb.infrastructure.svc:27017"
},
"id": "monitoring/mongodb-shared-config",
"immutable": false,
"metadata": [
{
"annotations": null,
"generate_name": "",
"generation": 0,
"labels": null,
"name": "mongodb-shared-config",
"namespace": "monitoring",
"resource_version": "576",
"uid": "72b10323-8251-4188-b980-456c4066abe8"
}
],
"timeouts": null,
"type": "Opaque",
"wait_for_service_account_token": true
},
"sensitive_attributes": [
[
{
"type": "get_attr",
"value": "binary_data"
}
],
[
{
"type": "get_attr",
"value": "data"
}
],
[
{
"type": "get_attr",
"value": "data"
},
{
"type": "index",
"value": {
"value": "MONGO_URI",
"type": "string"
}
}
]
],
"identity_schema_version": 0,
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMH19",
"dependencies": [
"kubernetes_namespace.domains",
"random_password.mongodb"
]
},
{
"index_key": "test",
"schema_version": 0,
"attributes": {
"binary_data": null,
"data": {
"MONGO_DB": "homelab",
"MONGO_URI": "mongodb://root:CQeYgJN3AXl9Kpx15zmwkArd@mongodb.infrastructure.svc:27017"
},
"id": "test/mongodb-shared-config",
"immutable": false,
"metadata": [
{
"annotations": null,
"generate_name": "",
"generation": 0,
"labels": null,
"name": "mongodb-shared-config",
"namespace": "test",
"resource_version": "575",
"uid": "fc743768-ceee-4e2b-afb9-9edb671668a8"
}
],
"timeouts": null,
"type": "Opaque",
"wait_for_service_account_token": true
},
"sensitive_attributes": [
[
{
"type": "get_attr",
"value": "binary_data"
}
],
[
{
"type": "get_attr",
"value": "data"
}
],
[
{
"type": "get_attr",
"value": "data"
},
{
"type": "index",
"value": {
"value": "MONGO_URI",
"type": "string"
}
}
]
],
"identity_schema_version": 0,
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMH19",
"dependencies": [
"kubernetes_namespace.domains",
"random_password.mongodb"
]
}
]
},
{
"mode": "managed",
"type": "kubernetes_service",
"name": "mongodb",
"provider": "provider[\"registry.terraform.io/hashicorp/kubernetes\"]",
"instances": [
{
"schema_version": 1,
"attributes": {
"id": "infrastructure/mongodb",
"metadata": [
{
"annotations": null,
"generate_name": "",
"generation": 0,
"labels": null,
"name": "mongodb",
"namespace": "infrastructure",
"resource_version": "582",
"uid": "f555214a-ead6-4e93-9d9a-a2b522d71e24"
}
],
"spec": [
{
"allocate_load_balancer_node_ports": true,
"cluster_ip": "10.43.171.195",
"cluster_ips": [
"10.43.171.195"
],
"external_ips": null,
"external_name": "",
"external_traffic_policy": "",
"health_check_node_port": 0,
"internal_traffic_policy": "Cluster",
"ip_families": [
"IPv4"
],
"ip_family_policy": "SingleStack",
"load_balancer_class": "",
"load_balancer_ip": "",
"load_balancer_source_ranges": null,
"port": [
{
"app_protocol": "",
"name": "",
"node_port": 0,
"port": 27017,
"protocol": "TCP",
"target_port": "27017"
}
],
"publish_not_ready_addresses": false,
"selector": {
"app": "mongodb"
},
"session_affinity": "None",
"session_affinity_config": [],
"type": "ClusterIP"
}
],
"status": [
{
"load_balancer": [
{
"ingress": []
}
]
}
],
"timeouts": null,
"wait_for_load_balancer": true
},
"sensitive_attributes": [],
"identity_schema_version": 0,
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjEifQ==",
"dependencies": [
"kubernetes_namespace.domains"
]
}
]
},
{
"mode": "managed",
"type": "kubernetes_stateful_set",
"name": "mongodb",
"provider": "provider[\"registry.terraform.io/hashicorp/kubernetes\"]",
"instances": [
{
"schema_version": 1,
"attributes": {
"id": "infrastructure/mongodb",
"metadata": [
{
"annotations": null,
"generate_name": "",
"generation": 1,
"labels": null,
"name": "mongodb",
"namespace": "infrastructure",
"resource_version": "588",
"uid": "7e5f61fe-b6a1-457e-8db3-cbb13c0f671a"
}
],
"spec": [
{
"min_ready_seconds": 0,
"persistent_volume_claim_retention_policy": [
{
"when_deleted": "Retain",
"when_scaled": "Retain"
}
],
"pod_management_policy": "OrderedReady",
"replicas": "1",
"revision_history_limit": 0,
"selector": [
{
"match_expressions": [],
"match_labels": {
"app": "mongodb"
}
}
],
"service_name": "mongodb",
"template": [
{
"metadata": [
{
"annotations": null,
"generate_name": "",
"generation": 0,
"labels": {
"app": "mongodb"
},
"name": "",
"namespace": "",
"resource_version": "",
"uid": ""
}
],
"spec": [
{
"active_deadline_seconds": 0,
"affinity": [],
"automount_service_account_token": true,
"container": [
{
"args": null,
"command": null,
"env": [
{
"name": "MONGO_INITDB_ROOT_USERNAME",
"value": "root",
"value_from": []
},
{
"name": "MONGO_INITDB_ROOT_PASSWORD",
"value": "",
"value_from": [
{
"config_map_key_ref": [],
"field_ref": [],
"resource_field_ref": [],
"secret_key_ref": [
{
"key": "MONGO_INITDB_ROOT_PASSWORD",
"name": "mongodb",
"optional": false
}
]
}
]
},
{
"name": "MONGO_INITDB_DATABASE",
"value": "homelab",
"value_from": []
}
],
"env_from": [],
"image": "mongo:8",
"image_pull_policy": "IfNotPresent",
"lifecycle": [],
"liveness_probe": [],
"name": "mongodb",
"port": [
{
"container_port": 27017,
"host_ip": "",
"host_port": 0,
"name": "",
"protocol": "TCP"
}
],
"readiness_probe": [],
"resources": [
{
"limits": {
"cpu": "500m",
"memory": "512Mi"
},
"requests": {
"cpu": "200m",
"memory": "256Mi"
}
}
],
"security_context": [],
"startup_probe": [],
"stdin": false,
"stdin_once": false,
"termination_message_path": "/dev/termination-log",
"termination_message_policy": "File",
"tty": false,
"volume_mount": [],
"working_dir": ""
}
],
"dns_config": [],
"dns_policy": "ClusterFirst",
"enable_service_links": true,
"host_aliases": [],
"host_ipc": false,
"host_network": false,
"host_pid": false,
"hostname": "",
"image_pull_secrets": [],
"init_container": [],
"node_name": "",
"node_selector": null,
"os": [],
"priority_class_name": "",
"readiness_gate": [],
"restart_policy": "Always",
"runtime_class_name": "",
"scheduler_name": "default-scheduler",
"security_context": [],
"service_account_name": "",
"share_process_namespace": false,
"subdomain": "",
"termination_grace_period_seconds": 30,
"toleration": [],
"topology_spread_constraint": [],
"volume": []
}
]
}
],
"update_strategy": [],
"volume_claim_template": []
}
],
"timeouts": null,
"wait_for_rollout": false
},
"sensitive_attributes": [],
"identity_schema_version": 0,
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJyZWFkIjo2MDAwMDAwMDAwMDAsInVwZGF0ZSI6NjAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0=",
"dependencies": [
"kubernetes_namespace.domains",
"kubernetes_secret.mongodb",
"kubernetes_service.mongodb",
"random_password.mongodb"
]
}
]
},
{
"mode": "managed",
"type": "random_password",
"name": "grafana",
"provider": "provider[\"registry.terraform.io/hashicorp/random\"]",
"instances": [
{
"schema_version": 3,
"attributes": {
"bcrypt_hash": "$2a$10$gtPbohVnFQk0/9B59snVXuDUad.55.IBqXmpGWPlvSSeUfbyINf4G",
"id": "none",
"keepers": null,
"length": 24,
"lower": true,
"min_lower": 0,
"min_numeric": 0,
"min_special": 0,
"min_upper": 0,
"number": true,
"numeric": true,
"override_special": null,
"result": "jXWfhChbpD6QEDK2wLXbLHy7",
"special": false,
"upper": true
},
"sensitive_attributes": [
[
{
"type": "get_attr",
"value": "bcrypt_hash"
}
],
[
{
"type": "get_attr",
"value": "result"
}
]
],
"identity_schema_version": 0
}
]
},
{
"mode": "managed",
"type": "random_password",
"name": "mongodb",
"provider": "provider[\"registry.terraform.io/hashicorp/random\"]",
"instances": [
{
"schema_version": 3,
"attributes": {
"bcrypt_hash": "$2a$10$CNBRlYZKIyKStfctvc1feuLMLE5wV9BKUEXkB5QbP4FkbEtw0vn3y",
"id": "none",
"keepers": null,
"length": 24,
"lower": true,
"min_lower": 0,
"min_numeric": 0,
"min_special": 0,
"min_upper": 0,
"number": true,
"numeric": true,
"override_special": null,
"result": "CQeYgJN3AXl9Kpx15zmwkArd",
"special": false,
"upper": true
},
"sensitive_attributes": [
[
{
"type": "get_attr",
"value": "bcrypt_hash"
}
],
[
{
"type": "get_attr",
"value": "result"
}
]
],
"identity_schema_version": 0
}
]
}
],
"check_results": null
}