Hacker News new | ask | show | jobs
by echelon 2116 days ago
> I can't write a deployment yaml without googling or copy/pasting

What about Nginx or Apache configuration files? Could you write them without googling?

1 comments

What about Nginx or Apache configuration files? Could you write them without googling?

Easily, because noone writes them from scratch, they just modify the default one.

For most of my Kubernetes work I "kubectl describe" something existing into YAML, modify it, then "kubectl apply" it back again.

You can do this without a cluster also:

  kubectl create deployment my-deployment --image nginx --dry-run -oyaml