Sha256: 24b74dc142d71705a582c525c2efc83b3606b4c58173cc66c7f467a3e1ab8934

Contents?: true

Size: 883 Bytes

Versions: 16

Compression:

Stored size: 883 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

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

16 entries across 16 versions & 1 rubygems

Version Path
kubes-0.7.5 docs/_docs/intro/how-kubes-works.md
kubes-0.7.4 docs/_docs/intro/how-kubes-works.md
kubes-0.7.3 docs/_docs/intro/how-kubes-works.md
kubes-0.7.2 docs/_docs/intro/how-kubes-works.md
kubes-0.7.1 docs/_docs/intro/how-kubes-works.md
kubes-0.7.0 docs/_docs/intro/how-kubes-works.md
kubes-0.6.8 docs/_docs/intro/how-kubes-works.md
kubes-0.6.7 docs/_docs/intro/how-kubes-works.md
kubes-0.6.6 docs/_docs/intro/how-kubes-works.md
kubes-0.6.5 docs/_docs/intro/how-kubes-works.md
kubes-0.6.4 docs/_docs/intro/how-kubes-works.md
kubes-0.6.3 docs/_docs/intro/how-kubes-works.md
kubes-0.6.2 docs/_docs/intro/how-kubes-works.md
kubes-0.6.1 docs/_docs/intro/how-kubes-works.md
kubes-0.6.0 docs/_docs/intro/how-kubes-works.md
kubes-0.5.1 docs/_docs/intro/how-kubes-works.md