Is there a way to generate blank kubernetes yaml?

10/14/2017

Is there any kubectl command to bootstrap yaml file for certain object?

For example

kubectl generate deployment --yml

After which I would fill it with values I want.

Thanks

-- Marko Bogdanović
kubectl
kubernetes

1 Answer

10/14/2017

You could try playing with:

kubectl create <resourcetype> <otheroptions> --output=yaml --dry-run

See:

for different <resourcetype> you could use this with.

-- Graham Dumpleton
Source: StackOverflow