{"id":15319083,"url":"https://github.com/appleboy/deploy-k8s","last_synced_at":"2026-05-09T04:33:59.180Z","repository":{"id":170259506,"uuid":"646384326","full_name":"appleboy/deploy-k8s","owner":"appleboy","description":"Generate a Kubeconfig or creating \u0026 updating K8s Deployments","archived":false,"fork":false,"pushed_at":"2024-01-28T14:33:46.000Z","size":153,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T18:22:34.429Z","etag":null,"topics":["drone-plugin","github-actions","k8s","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appleboy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://www.paypal.me/appleboy46"]}},"created_at":"2023-05-28T08:13:29.000Z","updated_at":"2024-12-14T15:37:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"d88522fa-0af6-4270-b6e6-2ce8bbaeafd2","html_url":"https://github.com/appleboy/deploy-k8s","commit_stats":{"total_commits":63,"total_committers":1,"mean_commits":63.0,"dds":0.0,"last_synced_commit":"10b1c108e8d58dfd0213dba47fc42408eb637b14"},"previous_names":["appleboy/deploy-k8s"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/appleboy/deploy-k8s","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdeploy-k8s","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdeploy-k8s/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdeploy-k8s/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdeploy-k8s/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appleboy","download_url":"https://codeload.github.com/appleboy/deploy-k8s/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appleboy%2Fdeploy-k8s/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32807265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["drone-plugin","github-actions","k8s","kubernetes"],"created_at":"2024-10-01T09:03:35.644Z","updated_at":"2026-05-09T04:33:59.165Z","avatar_url":"https://github.com/appleboy.png","language":"Go","funding_links":["https://www.paypal.me/appleboy46"],"categories":[],"sub_categories":[],"readme":"# Deploy K8S Tool\n\n[![Lint and Testing](https://github.com/appleboy/deploy-k8s/actions/workflows/testing.yml/badge.svg?branch=main)](https://github.com/appleboy/deploy-k8s/actions/workflows/testing.yml)\n\nGenerate a Kubeconfig or creating \u0026 updating K8s Deployments.\n\n## Installation\n\nDownload the latest binary from [release page][1] or install from homebrew.\n\n```sh\nbrew install appleboy/tap/deploy-k8s\n```\n\n[1]: https://github.com/appleboy/deploy-k8s/releases\n\n## Usage\n\n```sh\ndeploy-k8s --help\n```\n\n| Parameter           | Description                                                   | Environment Variables                       |\n|---------------------|---------------------------------------------------------------|---------------------------------------------|\n| --server            | Address of the Kubernetes cluster `https://hostname:port`      | $PLUGIN_SERVER, $INPUT_SERVER               |\n| --skip-tls          | Skip validity check for server's certificate (default: false)   | $PLUGIN_SKIP_TLS_VERIFY, $INPUT_SKIP_TLS_VERIFY |\n| --ca-cert           | PEM-encoded certificate authority certificates                 | $PLUGIN_CA_CERT, $INPUT_CA_CERT             |\n| --token             | Kubernetes service account token                               | $PLUGIN_TOKEN, $INPUT_TOKEN                 |\n| --namespace         | Kubernetes namespace                                           | $PLUGIN_NAMESPACE, $INPUT_NAMESPACE         |\n| --proxy-url         | URLs with http, https, and socks5                              | $PLUGIN_PROXY_URL, $INPUT_PROXY_URL         |\n| --templates         | Template files, supports glob pattern                          | $PLUGIN_TEMPLATES, $INPUT_TEMPLATES         |\n| --output            | Generate Kubernetes config file                                | $PLUGIN_OUTPUT, $INPUT_OUTPUT               |\n| --cluster-name      | Cluster name (default: \"default\")                              | $PLUGIN_CLUSTER_NAME, $INPUT_CLUSTER_NAME   |\n| --authinfo-name     | AuthInfo name (default: \"default\")                             | $PLUGIN_AUTHINFO_NAME, $INPUT_AUTHINFO_NAME |\n| --context-name      | Context name (default: \"default\")                              | $PLUGIN_CONTEXT_NAME, $INPUT_CONTEXT_NAME   |\n| --debug             | Enable debug mode (default: false)                             | $PLUGIN_DEBUG, $INPUT_DEBUG                 |\n| --help, -h          | Show help                                                     |                                             |\n| --version, -v       | Print the version                                             |                                             |\n\n## How To Get Kubernetes Cluster URL\n\n```sh\nkubectl config view --raw --minify --flatten \\\n  -o jsonpath='{.clusters[].cluster.server}'\n```\n\n## How To Get Kubernetes CA Certificate\n\nUsing Your Own Kubeconfig and don't base64 decode the certificate data.\n\n```sh\nkubectl config view --raw --minify --flatten \\\n  -o jsonpath='{.clusters[].cluster.certificate-authority-data}'\n```\n\n## How To Get Kubernetes Token\n\nCreate a service account and secret.\n\n```yaml\n---\napiVersion: v1\nkind: ServiceAccount\nmetadata:\n  name: drone-ci\n  namespace: default\n---\napiVersion: v1\nkind: Secret\nmetadata:\n  name: drone-ci\n  namespace: default\n  annotations:\n    kubernetes.io/service-account.name: drone-ci\ntype: kubernetes.io/service-account-token\n```\n\nGet the token from the secret with `default` namespace.\n\n```sh\nkubectl get secret drone-ci -n default \\\n  -o jsonpath='{.data.token}' | base64 -d\n```\n\n## How To Get Kubernetes Namespace\n\n```sh\nkubectl config view --raw --minify --flatten \\\n  -o jsonpath='{.contexts[].context.namespace}'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fdeploy-k8s","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappleboy%2Fdeploy-k8s","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappleboy%2Fdeploy-k8s/lists"}