kubectl Usage Conventions (original) (raw)

Recommended usage conventions for kubectl.

Using kubectl in Reusable Scripts

For a stable output in a script:

Subresources

Best Practices

kubectl run

For kubectl run to satisfy infrastructure as code:

You can use the --dry-run=client flag to preview the object that would be sent to your cluster, without really submitting it.

kubectl apply