4.6 Creating ConfigMaps for the OHS Configuration Files
Create the required Kubernetes ConfigMaps for the Oracle HTTP Server (OHS) configuration files.
Before following this section, make sure you have created the directories and files as per Preparing Your OHS Configuration Files.
Run the following commands to create the required ConfigMaps for the OHS
directories and files created in Preparing Your OHS Configuration Files:
cd $MYOHSFILES
kubectl create cm -n ohsns ohs-config --from-file=ohsConfig/moduleconf
kubectl create cm -n ohsns ohs-httpd --from-file=ohsConfig/httpconf
kubectl create cm -n ohsns ohs-htdocs --from-file=ohsConfig/htdocs
kubectl create cm -n ohsns ohs-myapp --from-file=ohsConfig/htdocs/myapp
kubectl create cm -n ohsns webgate-config --from-file=ohsConfig/webgate/config
kubectl create cm -n ohsns webgate-wallet --from-file=ohsConfig/webgate/config/wallet
kubectl create cm -n ohsns ohs-wallet --from-file=ohsConfig/wallet/mywallet
Note:
Only create the ConfigMaps for directories that you want to copy to the OHS container.