{"id":20483321,"url":"https://github.com/styczynski/terraform-provider-kubectl-query","last_synced_at":"2026-04-21T13:32:46.602Z","repository":{"id":64307806,"uuid":"311733544","full_name":"styczynski/terraform-provider-kubectl-query","owner":"styczynski","description":"Terraform provider to get information about k8s status","archived":false,"fork":false,"pushed_at":"2020-11-15T13:10:20.000Z","size":62,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T16:15:42.499Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/styczynski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-10T17:21:58.000Z","updated_at":"2021-02-14T12:12:25.000Z","dependencies_parsed_at":"2023-01-15T11:00:47.000Z","dependency_job_id":null,"html_url":"https://github.com/styczynski/terraform-provider-kubectl-query","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/styczynski/terraform-provider-kubectl-query","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styczynski%2Fterraform-provider-kubectl-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styczynski%2Fterraform-provider-kubectl-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styczynski%2Fterraform-provider-kubectl-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styczynski%2Fterraform-provider-kubectl-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/styczynski","download_url":"https://codeload.github.com/styczynski/terraform-provider-kubectl-query/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/styczynski%2Fterraform-provider-kubectl-query/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32094463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T16:17:00.818Z","updated_at":"2026-04-21T13:32:46.565Z","avatar_url":"https://github.com/styczynski.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubernetes \"kubectl-query\" Provider \n\nThe query provider can be used to check the state and specs of the services/pods etc. in the k8s cluster.\nWhy anyone would need that?\n\nSometimes you deploy your services via [kubectl provider plugin](https://github.com/gavinbunney/terraform-provider-kubectl) and you have no idea what the endpoint of the load balancer is!\nThis plugin solves that problem and allows you to query services/pods etc. using kubectl.\n\n## Installation\n\nThe provider can be installed and managed automatically by Terraform. Sample `versions.tf` file :\n\n```hcl\nterraform {\n  required_version = \"\u003e= 0.13\"\n\n  required_providers {\n    kubectl = {\n      source  = \"styczynski/kubectl-query\"\n      version = \"\u003e= 1.7.0\"\n    }\n  }\n}\n```\n\n## Quick Start\n\n```hcl\nprovider \"kubectl-query\" {\n  host                   = var.eks_cluster_endpoint\n  cluster_ca_certificate = base64decode(var.eks_cluster_ca)\n  token                  = data.aws_eks_cluster_auth.main.token\n  load_config_file       = false\n}\n\ndata \"kubectl-query_services\" \"cluster_lbs\" {}\n\noutput \"cluster_lb_endpoint\" {\n    value = [for service in data.kubectl-query_services.cluster_lbs.services: service if service.type == \"LoadBalancer\"]\n}\n```\n\nSee [User Guide](https://registry.terraform.io/providers/styczynski/kubectl-query/latest) for details on installation and all the provided data and resource types.\n\n---\n\n### Inspiration\n\nThis plugin was written thanks to awesome [kubectl provider plugin](https://github.com/gavinbunney/terraform-provider-kubectl) by [gavinbunney](https://github.com/gavinbunney)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstyczynski%2Fterraform-provider-kubectl-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstyczynski%2Fterraform-provider-kubectl-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstyczynski%2Fterraform-provider-kubectl-query/lists"}