Configure your environment#

After obtaining all the required items described in Prerequisites, set up your environment by configuring the environment variables provided by your administrator. Use the export command to set up your username, cluster name, and domain as environment variables.

To configure the environment variables, run the following commands:

export RS_OS_USERNAME=<my-openstack-username>
export RS_K8S_CLUSTER_NAME=<my-cluster-name>
export RS_K8S_DOMAIN=<my-cluster-domain>

Install the Kubernetes certificate authority#

To configure your web browser and personal Docker Engine to work with the managed services, install the Kubernetes CA certificate. You must perform this configuration once.

To install the Kubernetes CA certificate, perform the following steps:

  1. Run the installation script:

  2. If you are using MacOS or Windows, restart Docker:

    docker-machine restart <docker-machine>

Configure application metrics monitoring#

Rackspace Kubernetes-as-a-Service (KaaS) provides an easy to use and configure Prometheus cloud monitoring solution that visualizes alerts and metrics through the Grafana dashboards. You can configure Prometheus to collect metrics from your Kubernetes applications through a Kubernetes Custom Resource Definition (CRD) called ServiceMonitor. You can define the ServiceMonitor in a simple yaml file and apply this file to your configuration using kubectl. Then, configure a Grafana alert notification channel of choice as described in the Grafana documentation. Rackspace KaaS supports the following Grafana notifications types:

  • Slack
  • PagerDuty
  • Webhook

To configure application metrics monitoring, complete the following steps:

  1. Create a yaml configuration file:

    kind: ServiceMonitor
      name: your-application
      namespace: rackspace-monitoring
      monitor: rackspace-prometheus # needs to have this label to be detected by the managed prometheus resource
          some-label: <that-will-match-your-application-service>
        - the-namespace-where-your-application-lives # needs to be the namespace
          the app got deployed to
      - port: the-name-of-the-port-that-exposes-your-metrics-endpoint
  2. Save as service-monitor.yaml.

  3. Apply this configuration:

    $ kubectl apply -f service-monitor.yaml
  4. Configure Grafana alert notifications for your application as described in the Grafana documentation.

Access the Rackspace KaaS dashboards#

The Rackspace KaaS solution enables you to access the managed services user interface by using your web browser.

To access the dashboards, you need the following information:

  • Kubernetes cluster name
  • Kubernetes cluster domain name
  • Login and password

For example, if your cluster name is test and the domain name is, the URL to access the Kubernetes UI would be

The following table lists the customer-facing dashboards.

Managed service URL Credentials
KaaS Control Panel https://control-panel.<openstack-env-domain-name>/login
  • Password: RS_OS_PASSWORD
Prometheus Monitoring https://prometheus.<cluster-name>.<domain-name>/graph
  • Password: RS_OS_PASSWORD
Grafana Dashboard https://grafana.<cluster-name>.<domain-name>
  • Password: RS_OS_PASSWORD
Logging https://kibana.<cluster-name>.<domain-name>
  • Password: RS_OS_PASSWORD
Private registry https://registry.<cluster-name>.<domain-name>
  • Password: RS_OS_PASSWORD
Kubernetes Web UI https://dashboard.<cluster-name>.<domain-name> A token generated in the KaaS Control Panel.

Perform OpenStack operations from your local machine#

If you are managing a Kubernetes cluster located in the Rackspace data center from your computer, you might need to log in to the underlying OpenStack environment and perform actions there. You can do so by logging in to the OpenStack dashboard or by using the command line. Some of the operations are only available in the command line.

To enable command line OpenStack operations on your computer, complete the following steps:

  1. Log in to the OpenStack dashboard.

  2. In the upper-left navigation panel, under projects, select your project.

  3. Go to Project > Access & Security > API Access.

  4. Click Download OpenStack RC file v3.

  5. On your computer, go to the Rackspace KaaS installer/ directory.

  6. Source your RC file:

    source ~/<cluster-name>
  7. To obtain super-user privileges in your cluster, export the following credentials:

    export OS_USERNAME=<admin-user>
    export OS_PASSWORD=<admin-password>
    export OS_PROJECT_ID=<project-ID>

    You can find these parameters in the bootsrap.yaml files in the openstack section.