StackLight configuration procedure

This section describes the StackLight configuration workflow.

To configure StackLight:

  1. Download your management cluster kubeconfig:

    1. Log in to the MOSK management console with the m:kaas:namespace@operator or m:kaas:namespace@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. Run one of the following commands:

    • For a management cluster:

      kubectl --kubeconfig <mgmtClusterKubeconfigPath> edit -n default cluster <mgmtClusterName>
      
    • For a MOSK cluster:

      kubectl --kubeconfig <mgmtClusterKubeconfigPath> edit -n <moskClusterProjectName> cluster <moskClusterName>
      
  3. In the following section of the opened manifest, configure the required StackLight parameters as described in StackLight configuration parameters.

    spec:
      providerSpec:
        value:
          helmReleases:
            - name: stacklight
              values:
    

    To enable StackLight on an existing MOSK cluster, add the following mandatory fields to the manifest:

    spec:
      providerSpec:
        value:
          helmReleases:
            - name: stacklight
              values:
                elasticsearch:
                  persistentVolumeClaimSize: 30Gi
                highAvailabilityEnabled: true
                logging:
                  enabled: true
                prometheusServer:
                  persistentVolumeClaimSize: 16Gi
    

    The snippet above contains example values for mandatory StackLight fields. Configure them depending on the cluster needs. For descriptions of these fields, see: StackLight configuration parameters.

  4. Verify StackLight after configuration.