How I’ve Used ChatGPT To Create A Whole GitOps Demo Using 3 Simple Questions

Introduction

Generate Code → Build it → Push it to DockerHub

$ docker run -d -p 5000:5000 shonpaz123/flask-app

Generate Kubernetes Manifests → Push To A GitHub Repo

  • I expected ChatGPT to understand that I’m looking to have more than a single replica of my deployment by asking it to be highly-available
  • I expected it to remember what was my DockerHub username, which was provided earlier
  • I used natural English, to explain quite a technical syntax stuff
$ oc get route

NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
flask-app-route flask-app-route-test.apps.cluster-ttj64.ttj64.sandbox2247.opentlc.com /homepage flask-app-service <all> None

Generate ArgoCD Application YAML → Deploy In A GitOps Way

  • I expected ChatGPT to understand that I’m using ArgoCD, and suit the YAML file accordingly
  • I expected it to remember what was my DockerHub and GitHub usernames, which were provided earlier
  • I used natural English to explain which of the ArgoCD properties and features I want to use
$ oc get route 

NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
flask-app-route flask-app-route-flask-app-k8s.apps.cluster-ttj64.ttj64.sandbox2247.opentlc.com /homepage flask-app-service <all> None

Conclusion

--

--

Sr. Solution Architect, Red Hat

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store