Backing up the Maximo® Monitor namespace
You must back up four secrets in the namespace.
In the mas-{MAS_INSTANCE_ID}-add namespace, back up the following secrets:
- datadictionary-<MAS_WORKSPACE_ID>
- The secret that contains the credentials to access the Asset Data Dictionary APIs.
- instance-admin
- The secret that contains the default admin group userid and password that is used by Asset Data Dictionary components.
oc get secret datadictionary-{MAS_WORKSPACE_ID} -n mas-{MAS_INSTANCE_ID}-add -o yaml | yq 'del(.metadata.creationTimestamp, .metadata.ownerReferences, .metadata.resourceVersion, .metadata.uid, .metadata.annotations["kubectl.kubernetes.io/last-applied-configuration"], .status)' > ./datadictionary-{MAS_WORKSPACE_ID}.yaml
oc get secret instance-admin -n mas-{MAS_INSTANCE_ID}-add -o yaml | yq 'del(.metadata.creationTimestamp, .metadata.ownerReferences, .metadata.resourceVersion, .metadata.uid, .metadata.annotations["kubectl.kubernetes.io/last-applied-configuration"], .status)' > ./instance-admin.yaml
In the mas-{MAS_INSTANCE_ID}-monitor namespace, back up the following secrets:
- <MAS_INSTANCE_ID>-<MAS_WORKSPACE_ID>-datadictionaryworkspace-workspace-binding
- This secret contains the userid and API key to access the Asset Data Dictionary APIs.
- monitor-kitt
- This secret also contains the userid and API key to access the Asset Data Dictionary APIs.
oc get secret {MAS_INSTANCE_ID}-{MAS_WORKSPACE_ID}-datadictionaryworkspace-workspace-binding -n mas-{MAS_INSTANCE_ID}-monitor -o yaml | yq 'del(.metadata.creationTimestamp, .metadata.ownerReferences, .metadata.resourceVersion, .metadata.uid, .metadata.annotations["kubectl.kubernetes.io/last-applied-configuration"], .status)' > ./{MAS_INSTANCE_ID}-{MAS_WORKSPACE_ID}-datadictionaryworkspace-workspace-binding.yaml
oc get secret monitor-kitt -n mas-{MAS_INSTANCE_ID}-monitor -o yaml | yq 'del(.metadata.creationTimestamp, .metadata.ownerReferences, .metadata.resourceVersion, .metadata.uid, .metadata.annotations["kubectl.kubernetes.io/last-applied-configuration"], .status)' > ./monitor-kitt.yaml