4.8 Creating a Kubernetes Secret for the OHS Domain Credentials
Create a Kubernetes secret that stores the credentials for the Oracle HTTP Server (OHS) domain.
Run the following command to create the
secret:
kubectl create secret generic ohs-secret -n <namespace> --from-literal=username=weblogic --from-literal=password='<password>'
For
example:kubectl create secret generic ohs-secret -n ohsns --from-literal=username=weblogic --from-literal=password='<password>`
Replace
<password>
with a password of your choice.
The output will look similar to the
following:
secret/ohs-secret created