Configure your environment#
Follow the steps in this section to configure your environment to work with KaaS.
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
file and apply this file to your configuration using
configure a Grafana alert notification channel of choice as described in the
Rackspace KaaS supports the following Grafana notifications types:
To configure application metrics monitoring, complete the following steps:
apiVersion: monitoring.coreos.com/v1alpha1 kind: ServiceMonitor metadata: name: your-application namespace: rackspace-monitoring labels: monitor: rackspace-prometheus # needs to have this label to be detected by the managed prometheus resource spec: selector: matchLabels: some-label: <that-will-match-your-application-service> namespaceSelector: matchNames: - the-namespace-where-your-application-lives # needs to be the namespace the app got deployed to endpoints: - port: the-name-of-the-port-that-exposes-your-metrics-endpoint
Apply this configuration:
$ kubectl apply -f service-monitor.yaml
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
mk8s.systems, the URL to access the Kubernetes UI would be
The following table lists the customer-facing dashboards.
|KaaS Control Panel||
||A token generated in the KaaS Control Panel or
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:
Log in to the OpenStack dashboard.
In the upper-left navigation panel, under projects, select your project.
Go to Project > Access & Security > API Access.
Click Download OpenStack RC file v3.
On your computer, go to the Rackspace KaaS
Source your RC file:
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.yamlfiles in the