Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chris-gillatt/c7e1eeb47471048039361f16e13f7c6c to your computer and use it in GitHub Desktop.
Save chris-gillatt/c7e1eeb47471048039361f16e13f7c6c to your computer and use it in GitHub Desktop.
Create a Kubenetes namespace using a file
in JSON:
{
"kind": "Namespace",
"apiVersion": "v1",
"metadata": {
"name": "test",
"labels": {
"name": "test"
}
}
}
or YAML:
kind: Namespace
apiVersion: v1
metadata:
name: test
labels:
name: test
Need to be careful with the spacing or nothing will work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment