5.1.11 Creating a Kubernetes Namespace and Secret
Create a Kubernetes namespace and secret for the deployment.
- Run the following command on the <INSTALL_HOST> to create a Kubernetes
namespace
oaans
for the deployment:kubectl create namespace oaans
- Create a Kubernetes secret called
dockersecret
for your Container Image Registry (CIR) in the OAA namespace. This is required so the management container pod can push images to your CIR and so the OAA/OARM/OUA deployment can pull images from your CIR.
For example:kubectl create secret docker-registry dockersecret --docker-server=<CONTAINER_REGISTRY> \ --docker-username='<USER_NAME>' \ --docker-password='<PASSWORD>' \ --docker-email='<EMAIL_ADDRESS>' \ --namespace=<namespace>
kubectl create secret docker-registry dockersecret --docker-server=container-registry.example.com \ --docker-username="user@example.com" \ --docker-password=<PASSWORD> \ --docker-email=user@example.com \ --namespace=oaans