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>
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
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
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
- OpenStack DNS zone for the Kubernetes cluster
- Login and password
To get the required information for logging in to the Kubernetes dashboards:
Get the name of your Kubernetes cluster:
kubectl config get-clusters
Get the DNS zone name for your Kubernetes cluster:
openstack zone list
Example of system response:
+--------------+-------------------+---------+----------+--------+--------+ | id | name | type | serial | status | action | +--------------+-------------------+---------+----------+--------+--------+ | 034d29de ... | test.mk8s.systems.| PRIMARY | 92303 ...| ACTIVE | NONE | +--------------+-------------------+---------+----------+--------+--------+
If your cluster name is
kubernetes-testand the DNS zone name is
test.mk8s.systems, the URL to log in to the manage services dashboards is
Use the username and password provided to you by your administrator to log in.
The following table lists the customer-facing dashboards.
|Rackspace KaaS UI||
|Kubernetes Web UI||
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