Configure NTP server for a regional cluster

Configure NTP server for a regional cluster

If you did not add the NTP server parameters during the management cluster bootstrap, configure them on the existing regional cluster as required. These parameters are applied to all machines of regional and managed clusters in the specified region.

Warning

The procedure below triggers an upgrade of all clusters in a specific region, which may lead to workload disruption during nodes cordoning and draining.

To configure an NTP server for a regional cluster:

  1. Download your management cluster kubeconfig:

    1. Log in to the Mirantis Container Cloud web UI with the writer permissions.

    2. Switch to the required project using the Switch Project action icon located on top of the main left-side navigation panel.

    3. Expand the menu of the tab with your user name.

    4. Click Download kubeconfig to download kubeconfig of your management cluster.

    5. Log in to any local machine with kubectl installed.

    6. Copy the downloaded kubeconfig to this machine.

  2. Use the downloaded kubeconfig to edit the management cluster:

    kubectl --kubeconfig <kubeconfigPath> edit -n <projectName> cluster <managementClusterName>
    

    In the command above and the step below, replace the parameters enclosed in angle brackets with the corresponding values of your cluster.

  3. In the regional section, add the ntp:servers section with the list of required servers names:

    spec:
      ...
      providerSpec:
        value:
          kaas:
          ...
            regional:
              - helmReleases:
                - name: <providerName>
                  values:
                    config:
                      lcm:
                        ...
                        ntp:
                          servers:
                          - 0.pool.ntp.org
                          ...