Kubernetes: Difference between revisions

From wiki.vacula.xyz
(Created page with "== Concepts == Decoupling: * run resources anywhere * don't tie an application to a specific server * don't store configuration within the application")
 
Line 4: Line 4:
* don't tie an application to a specific server
* don't tie an application to a specific server
* don't store configuration within the application
* don't store configuration within the application
== Tips and Tricks ==
Don't write YAML files, generate them. Use <code>kubectl create</code> with the options <code>--dry-run=client -o yaml</code> to generate the YAML files. Alternatively, use a <code>kubectl get</code> command with <code>-o yaml</code>.

Revision as of 14:48, 1 May 2025

Concepts

Decoupling:

  • run resources anywhere
  • don't tie an application to a specific server
  • don't store configuration within the application

Tips and Tricks

Don't write YAML files, generate them. Use kubectl create with the options --dry-run=client -o yaml to generate the YAML files. Alternatively, use a kubectl get command with -o yaml.