Configuring ConfigMap and timezone

Create an OpenShift ConfigMap with the localtime file to ensure PEM uses the correct timezone.

About this task

PEM requires a ConfigMap containing the localtime file to ensure that the application uses the correct timezone for logging and scheduling operations.

Procedure

  1. Create a ConfigMap with the localtime file
    oc create configmap <configmap-name> --from-file=/etc/localtime

    Replace <configmap-name> with a descriptive name for your ConfigMap, such as pem-timezone.

  2. Verify the ConfigMap creation
    oc get configmap <configmap-name>
  3. Reference the ConfigMap in values.yaml

    In your Helm values file, set the timezone ConfigMap name:

    timezone:
      configmapname: <configmap-name>