Sha256: 8cabcedf230495baf3ccb5d08f334a820ba5a1f93edbb1412886c4a0cd91e329
Contents?: true
Size: 989 Bytes
Versions: 12
Compression:
Stored size: 989 Bytes
Contents
--- title: How Kubes Works --- Kubes is pretty straightforward. Kubes first builds the Docker image. Then it compiles Kubernetes YAML files. Lastly, it merely calls out to `kubectl`. In fact, you can use Kubes to build the files first, and then run `kubectl` directly. Example: kubes docker build kubes docker push kubes compile # compiles the .kubes/resources files to .kubes/output Now, use `kubectl` directly and apply them in the proper order: kubectl apply -f .kubes/output/shared/namespace.yaml kubectl apply -f .kubes/output/web/service.yaml kubectl apply -f .kubes/output/web/deployment.yaml The deploy command simpifily does all 3 steps: build, compile, and apply. kubes deploy Kubes is very transparent about it does. It prints out the `kubectl` commands as they are being called. You can also run the `kubectl apply` only. The `kube apply` command compiles but will skip the docker build stage if it's already been built. kubes apply
Version data entries
12 entries across 12 versions & 1 rubygems