Sha256: 1ac6660e7b76a5329d8f794a5d8b6c8282b75628696328852770aa1bdb4b43fd

Contents?: true

Size: 908 Bytes

Versions: 22

Compression:

Stored size: 908 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. This will apply all the files:

    kubectl apply --recursive -f .kubes/output

You can also selectively apply specific files:

    kubectl apply -f .kubes/output/web/deployment.yaml
    kubectl apply -f .kubes/output/web/service.yaml

You can also apply with kubes. This will compile the files automatically also.

    kubes apply

The deploy command, does all 3 steps: builds the docker image, compiles the `.kubes/resources` files, and runs kubectl apply.

    kubes deploy

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
kubes-0.5.0 docs/_docs/intro/how-kubes-works.md
kubes-0.4.7 docs/_docs/intro/how-kubes-works.md
kubes-0.4.6 docs/_docs/intro/how-kubes-works.md
kubes-0.4.5 docs/_docs/intro/how-kubes-works.md
kubes-0.4.4 docs/_docs/intro/how-kubes-works.md
kubes-0.4.3 docs/_docs/intro/how-kubes-works.md
kubes-0.4.2 docs/_docs/intro/how-kubes-works.md
kubes-0.4.1 docs/_docs/intro/how-kubes-works.md
kubes-0.4.0 docs/_docs/intro/how-kubes-works.md
kubes-0.3.5 docs/_docs/intro/how-kubes-works.md
kubes-0.3.4 docs/_docs/intro/how-kubes-works.md
kubes-0.3.3 docs/_docs/intro/how-kubes-works.md
kubes-0.3.2 docs/_docs/intro/how-kubes-works.md
kubes-0.3.1 docs/_docs/intro/how-kubes-works.md
kubes-0.3.0 docs/_docs/intro/how-kubes-works.md
kubes-0.2.6 docs/_docs/intro/how-kubes-works.md
kubes-0.2.5 docs/_docs/intro/how-kubes-works.md
kubes-0.2.4 docs/_docs/intro/how-kubes-works.md
kubes-0.2.3 docs/_docs/intro/how-kubes-works.md
kubes-0.2.2 docs/_docs/intro/how-kubes-works.md