{"id":29610668,"url":"https://github.com/lework/dify-plugin-kubernetes","last_synced_at":"2025-07-20T20:08:18.559Z","repository":{"id":301320655,"uuid":"1008858741","full_name":"lework/dify-plugin-kubernetes","owner":"lework","description":"dify-plugin-kubernetes","archived":false,"fork":false,"pushed_at":"2025-06-26T09:59:31.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-11T10:58:38.265Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lework.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-26T07:47:01.000Z","updated_at":"2025-06-26T09:58:23.000Z","dependencies_parsed_at":"2025-06-26T09:31:29.121Z","dependency_job_id":"9807146c-eb3c-4366-9104-0f74a2f145b8","html_url":"https://github.com/lework/dify-plugin-kubernetes","commit_stats":null,"previous_names":["lework/dify-plugin-kubernetes"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lework/dify-plugin-kubernetes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lework%2Fdify-plugin-kubernetes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lework%2Fdify-plugin-kubernetes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lework%2Fdify-plugin-kubernetes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lework%2Fdify-plugin-kubernetes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lework","download_url":"https://codeload.github.com/lework/dify-plugin-kubernetes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lework%2Fdify-plugin-kubernetes/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266189677,"owners_count":23890065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2025-07-20T20:08:18.108Z","updated_at":"2025-07-20T20:08:18.540Z","avatar_url":"https://github.com/lework.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## dify-plugin-kubernetes\n\n**Author:** lework\n**Version:** 0.0.1\n**Type:** tool\n\n### Description\n\nDify Plugin - Kubernetes Cluster Resource Management Tool. This plugin enables you to retrieve and manage resources in your Kubernetes clusters directly through Dify.\n\n### Feature List\n\n1. Basic Information Query Tool (dify-plugin-kubernetes)\n\n   - Retrieve fundamental information about your Kubernetes cluster\n   - Get cluster status, version, and node information\n   - View available API resources\n\n2. Pod Log Query Tool (get-pod-logs)\n\n   - Fetch logs from specified Pods\n   - Support for namespace specification, container name selection, and log line quantity control\n   - Real-time monitoring and troubleshooting of applications\n   - Filter logs based on specific time periods\n\n3. Resource Description Tool (describe-resource)\n\n   - Functionality similar to the `kubectl describe` command\n   - Support for multiple resource types: Pod, Deployment, DaemonSet, StatefulSet, Service, Ingress, and more\n   - Provides detailed resource status and configuration information\n   - Custom namespace support\n   - Displays events related to resources for easier troubleshooting\n   - Extract key metrics and status indicators\n\n4. Resource Listing Tool (list-resources)\n   - List available resources by type across namespaces\n   - Filter resources by labels and fields\n   - Get concise overview of cluster resources\n   - Support for wide output with additional details\n\n### Requirements\n\n- Properly configured kubectl environment with access to your Kubernetes cluster\n- Python 3.8 or higher\n- Required dependencies: `pip install -r requirements.txt`\n- Appropriate RBAC permissions in your Kubernetes cluster to access resources\n\n### Parameter Descriptions\n\n#### Pod Log Query Tool\n\n- `pod_name`: Pod name (required)\n- `namespace`: Namespace (optional, defaults to \"default\")\n- `container_name`: Container name (optional, returns logs from the first container if not specified)\n- `tail_lines`: Number of log lines to return (optional, defaults to 100)\n\n#### Resource Description Tool\n\n- `resource_type`: Resource type (required, e.g., pod, deployment, daemonset, statefulset, service, etc.)\n- `resource_name`: Resource name (required)\n- `namespace`: Namespace (optional, defaults to \"default\")\n\n#### Resource Listing Tool\n\n- `resource_type`: Resource type (required, e.g., pods, deployments, services, etc.)\n- `namespace`: Namespace (optional, defaults to \"all-namespaces\")\n- `label_selector`: Label selector to filter resources (optional)\n- `field_selector`: Field selector to filter resources (optional)\n\n### Development and Debugging\n\n```bash\n# Install dependencies\npip install -r requirements.txt\n\n# Run debug\npython -m main\n\n# Package plugin\ndify plugin package ./dify-plugin-kubernetes\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flework%2Fdify-plugin-kubernetes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flework%2Fdify-plugin-kubernetes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flework%2Fdify-plugin-kubernetes/lists"}