7.1.3 Creating a Kubernetes Secret for RCU in WLST
Create a Kubernetes secret for RCU using the create-rcu-credentials
script.
- Run the following command to create the
secret:
cd $WORKDIR/kubernetes/create-rcu-credentials
Where:./create-rcu-credentials.sh -u <rcu_prefix> -p <rcu_schema_pwd> -a sys -q <sys_db_pwd> -d <domain_uid> -n <domain_namespace> -s <kubernetes_rcu_secret>
-
-u <rcu_prefix>
is the name of the RCU schema prefix created in Creating the RCU Schemas. -
-p <rcu_schema_pwd>
is the password for the RCU schema prefix. -
-q <sys_db_pwd>
is the SYS database password. -
-d <domain_uid>
is the same domain UID that you specified in Creating a Kubernetes Secret for the WLST Domain. -
-n <domain_namespace>
is the domain namespace. -
-s <kubernetes_rcu_secret>
is the name of the RCU secret to create.
cd $WORKDIR/kubernetes/create-rcu-credentials
The output will look similar to the following:./create-rcu-credentials.sh -u OIGK8S -p <password> -a sys -q <password> -d governancedomain -n oigns -s oig-rcu-credentials
secret/oig-rcu-credentials created secret/oig-rcu-credentials labeled The secret oig-rcu-credentials has been successfully created in the oigns namespace.
-
- Verify the secret is created using the following
command:
For example:kubectl get secret <kubernetes_rcu_secret> -o yaml -n <domain_namespace>
The output will look similar to the following:kubectl get secret oig-rcu-credentials -o yaml -n oigns
apiVersion: v1 data: password: V2VsY29tZTE= sys_password: V2VsY29tZTE= sys_username: c3lz username: T0lHSzhT kind: Secret metadata: creationTimestamp: "<DATE>" labels: weblogic.domainName: governancedomain weblogic.domainUID: governancedomain name: oig-rcu-credentials namespace: oigns resourceVersion: "3217023" uid: ce70b91a-fbbc-4839-9616-4cc2c1adeb4f type: Opaque