https://github.com/robusta-dev/chatgpt-yaml-generator
Give ChatGPT full knowledge of Kubernetes schemas + validation capabilities
https://github.com/robusta-dev/chatgpt-yaml-generator
Last synced: 8 days ago
JSON representation
Give ChatGPT full knowledge of Kubernetes schemas + validation capabilities
- Host: GitHub
- URL: https://github.com/robusta-dev/chatgpt-yaml-generator
- Owner: robusta-dev
- License: mit
- Created: 2023-05-21T13:00:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-08T05:13:58.000Z (almost 2 years ago)
- Last Synced: 2025-04-02T22:55:32.747Z (12 days ago)
- Language: Python
- Homepage:
- Size: 296 KB
- Stars: 114
- Watchers: 3
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ChatGPT-repositories - chatgpt-yaml-generator - Give ChatGPT full knowledge of Kubernetes schemas + validation capabilities (Others)
README
![]()
ChatGPT Kubernetes YAML Plugin by Robusta
A ChatGPT plugin to generate accurate Kubernetes manifests
[](https://twitter.com/RobustaDev)
[](https://bit.ly/robusta-slack)
![]()
This plugin gives ChatGPT up-to-date knowledge of every Kubernetes resource and their complete specifications. It lets ChatGPT query the [Kubernetes OpenAPI (swagger) schema](https://raw.githubusercontent.com/kubernetes/kubernetes/master/api/openapi-spec/swagger.json) to fetch resource definitions. Additionally, it provides ChatGPT with schema validation capabilities.
![]()
# Key Features
1. **Schema Lookup:** The `GET /schemas/search/{resourceName}` endpoint retrieves fully-namespaced names for Kubernetes resources. For instance, a search for 'Container' will yield 'io.k8s.api.core.v1.Container'.2. **Schema Retrieval:** The `GET /schemas/resource/{resourceType}` endpoint fetches the latest OpenAPI schemas for Kubernetes resources using fully-namespaced resource names.
3. **YAML Validation:** The `POST /validate-yaml` endpoint validates generated Kubernetes YAML manifests, guaranteeing their accuracy.
## Setup
To install the required packages for this plugin, run the following command:
```bash
pip install -r requirements.txt
```To run the plugin, enter the following command:
```bash
python main.py
```Once the local server is running:
1. Navigate to https://chat.openai.com.
2. In the Model drop down, select "Plugins" (note, if you don't see it there, you don't have access yet).
3. Select "Plugin store"
4. Select "Develop your own plugin" (ChatGPT Plus is required right now)
5. Enter in `localhost:5003` since this is the URL the server is running on locally, then select "Find manifest file".The plugin should now be installed and enabled! Watch the video above for ideas on using the plugin.
## Getting help
Join the [Robusta Slack Community](https://bit.ly/robusta-slack) and ask for help.