Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

GPT is amazing as a stackexchange, et. el. replacement. Just earlier today I used GPT to answer a really simple question which I Google failed to answer. I just wanted to programmatically change a setting in a Kubernetes deployment, but I really didn't want to take the time to figure out the insane JSON nesting.

This is so worth a subscription fee.

  Please write a kubectl command to correctly patch the imagePullPolicy to be equal to Always.

  kubectl patch deployment <deployment-name> --patch '{"spec":{"template":{"spec":{"containers":[{"name":"<container-name>","imagePullPolicy":"Always"}]}}}}'


Honestly just fiddling with quotes and parens takes forever - this is a nice usage.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: