DE 

//Cloudogu EcoSystem Docs

Configuration of the Cockpit Dogu

Prerequisite

Configuration options

The Cockpit Dogu is configured via the registry. There are several ways to configure values in the registry. In short, you can:

  1. Configure a dogu with kubectl edit -n ecosystem configmap cockpit-config (recommended)
  2. Update the configuration values using a blueprint

Configuration

Cockpit provides the following settings:

Physical memory limit
  • Configuration key path: container_config/memory_limit
  • Content: Limits the memory (RAM) of the Docker container for Cockpit
  • Data type: Binary memory specification
  • Valid values: Integer followed by [b,k,m,g] (byte, kibibyte, mebibyte, gibibyte)
  • Example: 1750m = 1750 MebiByte
Physical swap limit
  • Configuration key path: container_config/swap_limit
  • Content: Limits the swap of the Docker container for Cockpit
  • Data type: Binary memory specification
  • Valid values: Integer followed by [b,k,m,g] (byte, kibibyte, mebibyte, gibibyte)
  • Example: 1750m = 1750 MebiByte
Welcome dashboard
  • Configuration key path: welcomeDashboard
  • Content: Sets the content of the welcome dashboard for the cockpit
  • Optional
  • Data type: JSON dashboard description
  • Notes:

    • If the content does not match valid JSON, the default dashboard is displayed.
    • The maximum size of a JSON dashboard description is 2 MB.
  • Example:

    {
    "welcomeDashboard": {
      "title": "Custom Welcome Dashboard",
      "structure": "12/4-4-4",
      "rows": [
        {
          "columns": [
            {
              "styleClass": "col-md-12",
              "widgets": [],
              "cid": "1495540024138-67"
            }
          ]
        },
        {
          "columns": [
            {
              "styleClass": "col-md-4",
              "widgets": [
                {
                  "type": "clock",
                  "config": {
                    "timePattern": "HH:mm:ss",
                    "datePattern": "YYYY-MM-DD"
                  },
                  "title": "Clock",
                  "titleTemplateUrl": "../src/templates/widget-title.html",
                  "editTemplateUrl": "../src/templates/widget-edit.html",
                  "wid": "1495540110609-91"
                },
                {
                  "type": "linklist",
                  "config": {
                    "links": [
                      {
                        "title": "Custom Link",
                        "href": "https://custom.com"
                      }
                    ]
                  },
                  "title": "Links",
                  "titleTemplateUrl": "../src/templates/widget-title.html",
                  "editTemplateUrl": "../src/templates/widget-edit.html",
                  "wid": "1495526407267-47"
                }
              ],
              "cid": "1495540024149-69"
            }
          ]
        }
      ],
      "titleTemplateUrl": "app/dashboard/partials/custom-dashboard-title.html"
    }
    }
Pinned dashboard
  • Configuration key path: pinnedDashboard
  • Content: The pinned dashboard is displayed to every user and cannot be modified, moved, or removed. The format and restrictions are the same as for the welcome dashboard.
  • Optional
  • Data type: JSON dashboard description
  • Notes:

    • The maximum size of a JSON dashboard description is 2 MB.
  • Example:

    {
    "title": "Pinned dashboard",
    "structure": "4-8",
    "rows": [
      {
        "columns": [
          {
            "styleClass": "col-md-4",
            "widgets": [
              {
                "type": "clock",
                "config": {
                  "timePattern": "HH:mm:ss",
                  "datePattern": "YYYY-MM-DD"
                },
                "title": "Clock",
                "titleTemplateUrl": "../src/templates/widget-title.html",
                "editTemplateUrl": "../src/templates/widget-edit.html",
                "wid": "1495540110609-91"
              }
            ],
            "cid": "1515578484127-21"
          }
        ]
      }
    ]
    }

Global proxy usage

Cockpit uses the global CES proxy configuration from config/_global/proxy for outbound HTTP requests from the newsfeed widget.

The following global keys are evaluated during startup:

  • proxy/enabled
  • proxy/server
  • proxy/port
  • proxy/username (optional)
  • proxy/password (optional)
  • proxy/no_proxy_hosts (optional but highly recommended if proxy/enabled=true)

If the proxy is enabled, Cockpit exports the standard environment variables HTTP_PROXY, HTTPS_PROXY, http_proxy, https_proxy, NO_PROXY, and no_proxy for the Node.js process.