Verify and Create Kubernetes Namespace

This section explains how user can verify required namespace exists in system or not. If namespace does not exist, user must create it.

Procedure

  1. Verify whether required namespace already exists in system by executing the following command:
     $ kubectl get namespaces
  2. If the output of the above command does not display the required namespace then create the namespace by executing following command:
    $ kubectl create namespace <required namespace>
    Example:
    $ kubectl create namespace ocnssf