Sha256: d49cc9a1c017ddfaabcd3048ba2f8ab2cf6c7278c3c1daba69f88ff26ba40c1a

Contents?: true

Size: 447 Bytes

Versions: 58

Compression:

Stored size: 447 Bytes

Contents

---
title: Namespace
categories: dsl
---

## Example

Here's an example of a Namespace.

.kubes/resources/shared/namespace.rb

```ruby
name "demo"
labels(app: "demo") # useful with NetworkPolicy
```

Produces:

.kubes/output/shared/namespace.yaml

```yaml
apiVersion: v1
kind: Namespace
metadata:
  name: demo
  labels:
    app: demo
```

## DSL Methods

Here's the source of the namespace resource.

{% include dsl/methods.md name="namespace" %}

Version data entries

58 entries across 58 versions & 1 rubygems

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