Percona Kubernetes Operators With K3s Monitoring and ManagementAs we have Kubernetes installed in part one (see Using Percona Kubernetes Operators With K3s Part 1: Installation) and have Percona Server for MySQL running (Using Percona Kubernetes Operators With K3s Part 2: Percona Server for MySQL Operator) lets review how we can install monitoring and monitor our running instance.

Percona Monitoring and Management installation

We recently implemented helm charts to allow Percona Monitoring and Management (PMM) to be directly installed into Kubernetes (Percona Monitoring and Management in Kubernetes is now in Tech Preview).

The most convenient way is to use helm, so there it is:

Please remember this is a Technical Preview release and there could be some issues (one of them later in this post).

And we will see the pod running:

This also will automatically expose PMM service to the outside world:

Monitoring the running Percona Operator for MySQL

This is the most manual process so far and I expect we will simplify it in the future.

 

To get running cluster monitored we need to obtain API key:

 

Step 1. Obtain PMM password

 

 

Step 2. Obtain API_KEY via command line

The command line is critical in this case. When I got API_KEY via GUI it did not work for me.

 

 

Step 3. Change pmmserverkey secret for running MySQL Cluster:

 

 

 

After this is processed we will see our cluster in PMM!

Percona Monitoring and Management installation

PMM will also show annotations:

PMM installation kubernetes

And we can see how the workload switches between nodes when we perform workload (see the previous post Using Percona Kubernetes Operators With K3s Part 2: Percona Server for MySQL Operator).

Percona Kubernetes Operator

Percona Operators

Summary

In this three-part series I showed:

  • How to install your own Kubernetes Cluster (using k3s distribution)
  • How to deploy Percona Operator for MySQL with asynchronous replication, where the Operator can handle node failures
  • How to deploy PMM and get replication monitored with workload charts and failover events

Both Percona Operator for MySQL with asynchronous replication and PMM for Kubernetes are in Technical Preview state, so we need your feedback on what should be improved before we ship the final product!

Percona Kubernetes Operators automate the creation, alteration, or deletion of members in your Percona Distribution for MySQL, MongoDB, or PostgreSQL environment.

Learn More About Percona Kubernetes Operators

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments