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.7.5 docs/_docs/resources/shared.md
kubes-0.7.4 docs/_docs/resources/shared.md
kubes-0.7.3 docs/_docs/resources/shared.md
kubes-0.7.2 docs/_docs/resources/shared.md
kubes-0.7.1 docs/_docs/resources/shared.md
kubes-0.7.0 docs/_docs/resources/shared.md
kubes-0.6.8 docs/_docs/resources/shared.md
kubes-0.6.7 docs/_docs/resources/shared.md
kubes-0.6.6 docs/_docs/resources/shared.md
kubes-0.6.5 docs/_docs/resources/shared.md
kubes-0.6.4 docs/_docs/resources/shared.md
kubes-0.6.3 docs/_docs/resources/shared.md
kubes-0.6.2 docs/_docs/resources/shared.md
kubes-0.6.1 docs/_docs/resources/shared.md
kubes-0.6.0 docs/_docs/resources/shared.md
kubes-0.5.1 docs/_docs/resources/shared.md
kubes-0.5.0 docs/_docs/resources/shared.md
kubes-0.4.7 docs/_docs/resources/shared.md
kubes-0.4.6 docs/_docs/resources/shared.md
kubes-0.4.5 docs/_docs/resources/shared.md