Sha256: 8c21c22e6adc9c795fafe5441926d6b349a0127b24b65872338b73c9c3e176a6

Contents?: true

Size: 1.19 KB

Versions: 58

Compression:

Stored size: 1.19 KB

Contents

---
title: Shared
---

The `shared` folder purpose is to provide a place for Kubernetes resources that are shared between roles.

## Example Structure

Here's an example structure to help explain how shared resources work.

    .kubes/resources
    ├── clock
    │   └── deployment.rb
    ├── shared
    │   └── secret.rb
    └── web
        ├── deployment.rb
        └── service.rb

## Deploy

When you deploy with Kubes, it will run `kubectl apply` on the shared resources first and then your [role-based resources]({% link _docs/resources/role.md %}) like clock and web.  Example:

    $ kubes apply
    Deploying kubes resources
    => kubectl apply -f .kubes/output/shared/secret.yaml
    secret/demo-secret created
    => kubectl apply -f .kubes/output/clock/deployment.yaml
    deployment.apps/demo-clock created
    => kubectl apply -f .kubes/output/web/service.yaml
    service/demo-web created
    => kubectl apply -f .kubes/output/web/deployment.yaml
    deployment.apps/demo-web created
    $

Kubes will order the creation of shared resources first.  You can override the default ordering with an [Order config]({% link _docs/intro/ordering/custom.md %}).

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
kubes-0.9.3 docs/_docs/resources/shared.md
kubes-0.9.2 docs/_docs/resources/shared.md
kubes-0.9.1 docs/_docs/resources/shared.md
kubes-0.9.0 docs/_docs/resources/shared.md
kubes-0.8.10 docs/_docs/resources/shared.md
kubes-0.8.9 docs/_docs/resources/shared.md
kubes-0.8.8 docs/_docs/resources/shared.md
kubes-0.8.7 docs/_docs/resources/shared.md
kubes-0.8.6 docs/_docs/resources/shared.md
kubes-0.8.5 docs/_docs/resources/shared.md
kubes-0.8.4 docs/_docs/resources/shared.md
kubes-0.8.3 docs/_docs/resources/shared.md
kubes-0.8.2 docs/_docs/resources/shared.md
kubes-0.8.1 docs/_docs/resources/shared.md
kubes-0.8.0 docs/_docs/resources/shared.md
kubes-0.7.10 docs/_docs/resources/shared.md
kubes-0.7.9 docs/_docs/resources/shared.md
kubes-0.7.8 docs/_docs/resources/shared.md
kubes-0.7.7 docs/_docs/resources/shared.md
kubes-0.7.6 docs/_docs/resources/shared.md