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