4.2.9 Creating a Kubernetes Namespace and Secret
Create a Kubernetes namespace and secret for the deployment.
- Run the following command to create a Kubernetes namespace for the
deployment:
For example:kubectl create namespace <namespace>
kubectl create namespace oaans
Note:
The namespace given will be used later in the parametercommon.kube.namespace=oaans
in theinstallOAA.properties
. - Create a Kubernetes secret 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
Note:
The secret namedockersecret
will be used later in the parameterinstall.global.imagePullSecrets\[0\].name
in theinstallOAA.properties
.