DEV Community

Cover image for How I turned ChatGPT into Kubernetes and Helm Playground in 5 Minutes
Ajeet Singh Raina
Ajeet Singh Raina

Posted on

How I turned ChatGPT into Kubernetes and Helm Playground in 5 Minutes

As a highly advanced language model, ChatGPT can be fine-tuned on specific tasks, or on specific data, to improve its accuracy and performance even more. It can be fine-tuned on a dataset of Linux commands and corresponding outputs, or on a dataset of Helm commands and corresponding outputs, to simulate a Linux terminal or Helm playground respectively.

Here's how I turned ChatGPT into a Kubernetes and Helm Playground.

Ajeet: Hello GPT. Good Morning. I want you to act as a Mac terminal. Kubernetes is already installed. I will type some commands and you'll reply with what the terminal should show. Please show the result using the Mac terminal. When I tell you something, I will do so by putting text inside curly brackets {like this}. Please don't write an explanation just the command result is sufficient. My first command is the kubectl version.

Image1

Ajeet: {kubectl get po,deploy,svc}

Image2

Ajeet: {kubectl run --image=nginx nginx-app --port=80 --env="DOMAIN=cluster"}

Image3

Ajeet:{kubectl expose deployment nginx-app --port=80 --name=nginx-http}

Image4

Ajeet: {kubectl get po,svc,deploy}

Image5

Ajeet: {curl 10.100.67.94:80}

Image6

Ajeet: {helm repo add bitnami https://charts.bitnami.com/bitnami}

Image7

Ajeet: {helm repo update}

Image8

Ajeet: {helm install bitnami/mysql --generate-name}

Image9

Ajeet: {helm show chart bitnami/mysql}

Image9

Top comments (0)