kubectl/cmd/kinflate/longerDemo/instances/README.md

659 B

Instances

Instances of a cluster app represent a common configuration problem.

Their configuration is mostly the same.

We'd like to focus on managing differences.

The DAM approach is to create overlays.

An overlay is just a sub-directory with another manifest file, and optionally more (or fewer) resources.

Example

Create a staging and production instance.

  • The greetings from the web server will differ.
  • In staging we'll enable a risky feature.
  • Production will have a higher replica count because it takes public traffic.
mkdir -p $TUT_APP/staging
mkdir -p $TUT_APP/production