v1 · Cluster Resource
Namespace
Namespace provides a scope for Names. Use of multiple namespaces is optional.
Click on Property Name to see the description, and Pink Types to expand schema.
Looking for some examples?
There are 2 examples of Namespace that you can use as a starting point to create your own.
apiVersion: v1 kind: Namespace metadata: name: my-namespace # Replace with your namespace name
apiVersion: v1
kind: Namespace
metadata:
name: my-namespace # Replace with your namespace name
labels:
environment: production # In case you have multiple environments in your cluster
app: my-app # Namespace per application is a good practice :)
annotations:
description: This namespace contains resources for my-app in production
created-by: john.doe@example.com