Run OIG utlities inside the OIG Kubernetes cluster.
Access a bash shell inside the governancedomain-oim-server1
pod:
$ kubectl -n oigns exec -it governancedomain-oim-server1 -- bash
This will take you into a bash shell in the running governancedomain-oim-server1
pod:
[oracle@governancedomain-oim-server1 oracle]$
Navigate to the /u01/oracle/idm/server/bin
directory and execute the utility as required. For example:
[oracle@governancedomain-oim-server1 oracle] cd /u01/oracle/idm/server/bin
[oracle@governancedomain-oim-server1 bin]$ ./<filename>.sh
Copy the input file to pass to a directory of your choice.
Run the following command to copy the input file to the running governancedomain-oim-server1
pod.
$ kubectl -n oigns cp /<path>/<inputFile> governancedomain-oim-server1:/u01/oracle/idm/server/bin/
Access a bash shell inside the governancedomain-oim-server1
pod:
$ kubectl -n oigns exec -it governancedomain-oim-server1 -- bash
This will take you into a bash shell in the running governancedomain-oim-server1
pod:
[oracle@governancedomain-oim-server1 oracle]$
Navigate to the /u01/oracle/idm/server/bin
directory and execute the utility as required, passing the input file. For example:
[oracle@governancedomain-oim-server1 oracle] cd /u01/oracle/idm/server/bin
[oracle@governancedomain-oim-server1 bin]$ ./<filename>.sh -inputFile <inputFile>
Note As pods are stateless the copied input file will remain until the pod restarts.
To edit a property/profile file in the Kubernetes cluster:
Copy the input file from the pod to a on the local system, for example:
$ kubectl -n oigns cp governancedomain-oim-server1:/u01/oracle/idm/server/bin/<file.properties_profile> /<path>/<file.properties_profile>
Note: If you see the message tar: Removing leading '/' from member names
this can be ignored.
Edit the </path>/<file.properties_profile>
in an editor of your choice.
Copy the file back to the pod:
$ kubectl -n oigns cp /<path>/<file.properties_profile> governancedomain-oim-server1:/u01/oracle/idm/server/bin/
Note: As pods are stateless the copied input file will remain until the pod restarts. Preserve a local copy in case you need to copy files back after pod restart.