Create the Kubernetes Secrets for the JRF Domain

The WebLogic Kubernetes Operator expects the secret key names to be username and password of the administrative account in the same Kubernetes namespace as the domain resource.

You should create the following secret key names:
  • A Kubernetes docker-registry secret containing the registry credentials.
    
    $ kubectl create secret docker-registry ocirsecret1 \
      -n <domain_name>-ns \
      --docker-server=container-registry.oracle.com \
      --docker-username=<YOUR_USERNAME> \
      --docker-password=<YOUR_PASSWORD> \
  • The WebLogic domain administrator credentials.
    $ kubectl create secret generic <domain_name>-weblogic-credentials \
      --from-literal=username=<ADMIN_USERNAME> --from-literal=password=<ADMIN_PASSWORD> \
      -n <domain_name>-ns
  • The domain runtime encryption secret.
    $ kubectl -n <domain_name>-ns create secret generic \
      <domain_name>-runtime-encryption-secret \
       --from-literal=password=<my_runtime_password>
  • The secret to access the Repository Creation Utility (RCU):
    If you are using the Oracle Autonomous Database:
    $ kubectl create secret generic  <domain_name>-rcu-access
          --from-literal=rcu_db_name=<RCU_DB_NAME>  
          --from-literal=rcu_prefix=<RCU_PREFIX>
          --from-literal=rcu_schema_password=<RCU_SCHEMA_PASSWORD>
          --from-literal=rcu_wallet_password=<RCU_WALLET_PASSWORD> 
          -n <domain_name>-ns
    If you are using a database deployed on Oracle Cloud Infrastructure (OCI):
    $ kubectl create secret generic <domain_name>-rcu-access 
          --from-literal=rcu_db_user=<RCU_DB_USER>
          --from-literal=rcu_prefix=<RCU_PREFIX>  
          --from-literal=rcu_schema_password=<RCU_SCHEMA_PASSWORD>
          --from-literal=rcu_admin_password=<RCU_ADMIN_PASSWORD>  
          --from-literal=rcu_db_conn_string=<RCU_CONN_STRING>
          -n <domain_name>-ns
  • The wallet password secret for Oracle Platform Security Service (OPSS).
    $ kubectl create secret generic <domain_name>-opss-wallet-password-secret  
         --from-literal=walletPassword=<WALLET_PASSWORD> 
         -n <domain_name>-ns