k8s.github.io

Namespaces

In this section, we will take a look at Namespaces

So far in this course we have created Objects such as PODs, Deployments and Services in our cluster. Whatever we have been doing we have been doing in a NAMESPACE.

apiVersion: v1
kind: Pod
metadata:
  name: myapp-pod
  labels:
     app: myapp
     type: front-end
spec:
  containers:
  - name: nginx-container
    image: nginx
  $ kubectl create -f pod-definition.yaml

K8s Reference Docs: