{ "version": 4, "terraform_version": "1.15.5", "serial": 352, "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": 1780862639, "last_deployed": 1780862639, "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": 1780862639, "last_deployed": 1780862639, "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": "kube_prometheus_stack", "provider": "provider[\"registry.terraform.io/hashicorp/helm\"]", "instances": [ { "schema_version": 1, "attributes": { "atomic": true, "chart": "kube-prometheus-stack", "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": "kps", "keyring": null, "lint": false, "manifest": null, "max_history": 0, "metadata": [ { "app_version": "v0.91.0", "chart": "kube-prometheus-stack", "first_deployed": 1780862636, "last_deployed": 1780862636, "name": "kps", "namespace": "monitoring", "notes": "kube-prometheus-stack has been installed. Check its status by running:\n kubectl --namespace monitoring get pods -l \"release=kps\"\n\nGet Grafana 'admin' user password by running:\n\n kubectl --namespace monitoring get secrets kps-grafana -o jsonpath=\"{.data.admin-password}\" | base64 -d ; echo\n\nAccess Grafana local instance:\n\n export POD_NAME=$(kubectl --namespace monitoring get pod -l \"app.kubernetes.io/name=grafana,app.kubernetes.io/instance=kps\" -oname)\n kubectl --namespace monitoring port-forward $POD_NAME 3000\n\nGet your grafana admin user password by running:\n\n kubectl get secret --namespace monitoring -l app.kubernetes.io/component=admin-secret -o jsonpath=\"{.items[0].data.admin-password}\" | base64 --decode ; echo\n\n\nVisit https://github.com/prometheus-operator/kube-prometheus for instructions on how to create \u0026 configure Alertmanager and Prometheus instances using the Operator.\n\nkube-state-metrics is a simple service that listens to the Kubernetes API server and generates metrics about the state of the objects.\nThe exposed metrics can be found here:\nhttps://github.com/kubernetes/kube-state-metrics/blob/master/docs/README.md#exposed-metrics\n\nThe metrics are exported on the HTTP endpoint /metrics on the listening port.\nIn your case, kps-kube-state-metrics.monitoring.svc.cluster.local:8080/metrics\n\nThey are served either as plaintext or protobuf depending on the Accept header.\nThey are designed to be consumed either by Prometheus itself or by a scraper that is compatible with scraping a Prometheus client endpoint.\n\n1. Get the application URL by running these commands:\n export POD_NAME=$(kubectl get pods --namespace monitoring -l \"app.kubernetes.io/name=prometheus-node-exporter,app.kubernetes.io/instance=kps\" -o jsonpath=\"{.items[0].metadata.name}\")\n echo \"Visit http://127.0.0.1:9100 to use your application\"\n kubectl port-forward --namespace monitoring $POD_NAME 9100\n1. Get your 'admin' user password by running:\n\n kubectl get secret --namespace monitoring kps-grafana -o jsonpath=\"{.data.admin-password}\" | base64 --decode ; echo\n\n\n2. The Grafana server can be accessed via port 80 on the following DNS name from within your cluster:\n\n kps-grafana.monitoring.svc.cluster.local\n\n If you bind grafana to 80, please update values in values.yaml and reinstall:\n ```\n securityContext:\n runAsUser: 0\n runAsGroup: 0\n fsGroup: 0\n\n command:\n - \"setcap\"\n - \"'cap_net_bind_service=+ep'\"\n - \"/usr/sbin/grafana-server \u0026\u0026\"\n - \"sh\"\n - \"/run.sh\"\n ```\n Details refer to https://grafana.com/docs/installation/configuration/#http-port.\n Or grafana would always crash.\n\n From outside the cluster, the server URL(s) are:\n http://grafana.homelab.local\n\n3. Login with the password from step 1 and the username: admin\n#################################################################################\n###### WARNING: Persistence is disabled!!! You will lose your data when #####\n###### the Grafana pod is terminated. #####\n#################################################################################\n", "revision": 1, "values": "{\"alertmanager\":{\"enabled\":false},\"grafana\":{\"additionalDataSources\":[{\"access\":\"proxy\",\"isDefault\":false,\"name\":\"Jaeger\",\"type\":\"jaeger\",\"uid\":\"jaeger\",\"url\":\"http://jaeger.monitoring.svc:16686\"},{\"access\":\"proxy\",\"isDefault\":false,\"name\":\"Loki\",\"type\":\"loki\",\"uid\":\"loki\",\"url\":\"http://loki-gateway.monitoring.svc\"}],\"adminPassword\":\"jXWfhChbpD6QEDK2wLXbLHy7\",\"ingress\":{\"annotations\":{\"traefik.ingress.kubernetes.io/router.middlewares\":\"auth-forward-auth@kubernetescrd\"},\"enabled\":true,\"hosts\":[\"grafana.homelab.local\"],\"ingressClassName\":\"traefik\"}},\"kube-state-metrics\":{\"resources\":{\"requests\":{\"cpu\":\"50m\",\"memory\":\"128Mi\"}}},\"node-exporter\":{\"resources\":{\"requests\":{\"cpu\":\"25m\",\"memory\":\"64Mi\"}}},\"prometheus\":{\"prometheusSpec\":{\"resources\":{\"limits\":{\"cpu\":\"1\",\"memory\":\"1Gi\"},\"requests\":{\"cpu\":\"200m\",\"memory\":\"512Mi\"}}}}}", "version": "86.0.2" } ], "name": "kps", "namespace": "monitoring", "pass_credentials": false, "postrender": [], "recreate_pods": false, "render_subchart_notes": true, "replace": false, "repository": "https://prometheus-community.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": [ "\"alertmanager\":\n \"enabled\": false\n\"grafana\":\n \"additionalDataSources\":\n - \"access\": \"proxy\"\n \"isDefault\": false\n \"name\": \"Jaeger\"\n \"type\": \"jaeger\"\n \"uid\": \"jaeger\"\n \"url\": \"http://jaeger.monitoring.svc:16686\"\n - \"access\": \"proxy\"\n \"isDefault\": false\n \"name\": \"Loki\"\n \"type\": \"loki\"\n \"uid\": \"loki\"\n \"url\": \"http://loki-gateway.monitoring.svc\"\n \"adminPassword\": \"jXWfhChbpD6QEDK2wLXbLHy7\"\n \"ingress\":\n \"annotations\":\n \"traefik.ingress.kubernetes.io/router.middlewares\": \"auth-forward-auth@kubernetescrd\"\n \"enabled\": true\n \"hosts\":\n - \"grafana.homelab.local\"\n \"ingressClassName\": \"traefik\"\n\"kube-state-metrics\":\n \"resources\":\n \"requests\":\n \"cpu\": \"50m\"\n \"memory\": \"128Mi\"\n\"node-exporter\":\n \"resources\":\n \"requests\":\n \"cpu\": \"25m\"\n \"memory\": \"64Mi\"\n\"prometheus\":\n \"prometheusSpec\":\n \"resources\":\n \"limits\":\n \"cpu\": \"1\"\n \"memory\": \"1Gi\"\n \"requests\":\n \"cpu\": \"200m\"\n \"memory\": \"512Mi\"\n" ], "verify": false, "version": "86.0.2", "wait": true, "wait_for_jobs": false }, "sensitive_attributes": [ [ { "type": "get_attr", "value": "repository_password" } ], [ { "type": "get_attr", "value": "values" }, { "type": "index", "value": { "value": 0, "type": "number" } } ] ], "identity_schema_version": 0, "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", "dependencies": [ "kubernetes_namespace.domains", "random_password.grafana" ] } ] }, { "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": 1780862638, "last_deployed": 1780862638, "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": "563", "uid": "955b1b5e-870d-4e10-ba2a-df9fd3837886" } ], "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": "560", "uid": "c5e86a50-58dd-4449-8009-021fc4db6c47" } ], "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": "562", "uid": "832f867c-1c87-4916-bb2a-6a553ff9fe97" } ], "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": "561", "uid": "946fad48-8db3-4c65-901f-a41647aff588" } ], "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": "890e74f8-5aab-4ab1-b29f-aeca95468824" } ], "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": "564", "uid": "cea8776d-af80-4031-9f2a-8db84300bbfc" } ], "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": "571", "uid": "b060268d-ca4e-435d-860e-40a3d88c7593" } ], "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": "576", "uid": "d15b185d-4df9-459b-a404-e213f362284b" } ], "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": "574", "uid": "8b9cefc6-147f-4beb-99c5-7fd1845a26bb" } ], "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": "577", "uid": "83e46b25-edec-42e9-9e03-fb394779d6d5" } ], "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": "589", "uid": "470fd582-2e00-4c00-98b9-e42b67a2d455" } ], "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": "588", "uid": "1f20a3be-a400-47e9-8526-6c3825189302" } ], "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": "df1de823-571b-46d3-b85b-5082b03b8bed" } ], "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": "578", "uid": "435bfa82-026a-4ad3-92af-5913673d9819" } ], "spec": [ { "allocate_load_balancer_node_ports": true, "cluster_ip": "10.43.49.246", "cluster_ips": [ "10.43.49.246" ], "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": "590", "uid": "ea21f54f-e972-4fdf-97f2-a8c538e3868f" } ], "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 }