Namespace

Example

Here’s an example of a Namespace.

.kubes/resources/shared/namespace.rb

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

Produces:

.kubes/output/shared/namespace.yaml

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

DSL Methods

Here’s the source of the namespace resource.

For a full list of the available methods, refer to the source itself syntax/namespace.rb.