Introduction
Welcome to the Kubernetes Monitoring and Logging Bootcamp using Nutanix Karbon Kubernetes clusters. This bootcamp accompanies an instructor-led session that introduces Nutanix and Kubernetes technologies and many common management tasks.
You will explore Prism Element and become familiar with its features and navigation. You will use Prism to perform basic cluster administration tasks, including storage and networking.
At the end of the bootcamp, attendees should understand the Core concepts and technologies that make up the Nutanix Enterprise Cloud stack and Karbon offering and should be well prepared for a hosted or onsite proof-of-concept (POC) engagement.
Note
Estimated time to complete this lab is 90 minutes
What's New
- Workshop updated for the following software versions:
- AOS 5.20.3.x &
- PC pc.2022.4.0.1
Lab Agenda
Nutanix Karbon deployed kubernetes clusters come with Prometheus pre-installed and ready to use. However, Grafana is not available by default. We will go through the following steps to enable and visualize the status of the kubernetes cluster.
- Connect to Karbon deployed kubernetes cluster
- Explore the
ntnx-systemnamespace for monitoring and logging resources - Explore available Prometheus metrics
- Deploy Grafana in
ntnx-systemnamespace - Configure prometheus as a data source in Grafana
- Configure a custom dashboard
- Import a pre-configured dashboard
Initial Setup
- Take note of the Passwords being used.
- Log into your virtual desktops (connection info below)
What's New
- Workshop uses for the following software versions:
- AOS 5.20.2.1
- Prism Central pc.2021.9.0.2
- Calm 3.3.1
Initial Setup
- Take note of the Passwords being used from you RX reservation details
- Log into your virtual desktops (connection info below)
- Login to Global Protect VPN if you have access
Cluster Assignment
The instructor will inform the attendees their assigned clusters.
Note
If these are Single Node Clusters (SNCs) pay close attention on the networking part. The SNCs are setup and configured differently to the 3 or 4 node clusters
Environment Details
Nutanix Workshops are intended to be run in the Nutanix Hosted POC environment. Your cluster will be provisioned with all necessary images, networks, and VMs required to complete the exercises.
Networking
As we are able to provide three/four node clusters and single node clusters in the HPOC environment, we need to describe each sort of cluster separately. The clusters are setup and configured differently.
Three/Four node HPOC clusters
Three or four node Hosted POC clusters follow a standard naming convention:
- Cluster Name - POCXYZ
- Subnet - 10.42.XYZ.0
- Cluster IP - 10.42.XYZ.37
For example:
- Cluster Name - POC055
- Subnet - 10.42.55.0
- Cluster IP - 10.42.55.37 for the VIP of the Cluster
Throughout the Workshop there are multiple instances where you will need to substitute XYZ with the correct octet for your subnet, for example:
| IP Address | Description |
|---|---|
| 10.42.XYZ.37 | Nutanix Cluster Virtual IP |
| 10.42.XYZ.39 | PC VM IP, Prism Central |
| 10.42.XYZ.41 | DC VM IP, NTNXLAB.local Domain Controller |
Each cluster is configured with 2 VLANs which can be used for VMs:
| Network Name | Address | VLAN | DHCP Scope |
|---|---|---|---|
| Primary | 10.42.XYZ.1/25 | 0 | 10.42.XYZ.50-10.42.XYZ.124 |
| Secondary | 10.42.XYZ.129/25 | XYZ1 | 10.42.XYZ.132-10.42.XYZ.253 |
Single Node HPOC Clusters
For some workshops we are using Single Node Clusters (SNC). The reason for this is to allow more people to have a dedicated cluster but still have enough free clusters for the bigger workshops including those for customers.
The network in the SNC config is using a /26 network. This splits the network address into four equal sizes that can be used for workshops. The below table describes the setup of the network in the four partitions. It provides essential information for the workshop with respect to the IP addresses and the services running at that IP address.
| Partition 1 | Partition 2 | Partition 3 | Partition 4 | Service | Comment |
|---|---|---|---|---|---|
| 10.38.x.1 | 10.38.x.65 | 10.38.x.129 | 10.38.x.193 | Gateway | |
| 10.38.x.5 | 10.38.x.69 | 10.38.x.133 | 10.38.x.197 | AHV Host | |
| 10.38.x.6 | 10.38.x.70 | 10.38.x.134 | 10.38.x.198 | CVM IP | |
| 10.38.x.7 | 10.38.x.71 | 10.38.x.135 | 10.38.x.199 | Cluster IP | |
| 10.38.x.8 | 10.38.x.72 | 10.38.x.136 | 10.38.x.200 | Data Services IP | |
| 10.38.x.9 | 10.38.x.73 | 10.38.x.137 | 10.38.x.201 | Prism Central IP | |
| 10.38.x.11 | 10.38.x.75 | 10.38.x.139 | 10.38.x.203 | AutoDC IP(DC) | |
| 10.38.x.32-37 | 10.38.x.96-101 | 10.38.x.160-165 | 10.38.x.224-229 | Objects 1 | |
| 10.38.x.38-58 | 10.38.x.102-122 | 10.38.x.166-186 | 10.38.x.230-250 | Primary | 6 Free IPs for static assignment |
Credentials
Note
The Cluster Password is unique to each cluster and will be provided by the leader of the Workshop.
| Credential | Username | Password |
|---|---|---|
| Prism Element | admin | Cluster Password |
| Prism Central | admin | Cluster Password |
| Controller VM | nutanix | Cluster Password |
| Prism Central VM | nutanix | Cluster Password |
Each cluster has a dedicated domain controller VM, DC, responsible for providing AD services for the NTNXLAB.local domain. The domain is populated with the following Users and Groups:
| Group | Username(s) | Password |
|---|---|---|
| Administrators | Administrator | nutanix/4u |
| SSP Admins | adminuser01-adminuser25 | nutanix/4u |
| SSP Developers | devuser01-devuser25 | nutanix/4u |
| SSP Consumers | consumer01-consumer25 | nutanix/4u |
| SSP Operators | operator01-operator25 | nutanix/4u |
| SSP Custom | custom01-custom25 | nutanix/4u |
| Bootcamp Users | user01-user25 | nutanix/4u |
Access Instructions
The Nutanix Hosted POC environment can be accessed a number of different ways:
Lab Access User Credentials
PHX Based Clusters:
- Username: PHX-POCxxx-User01 (up to PHX-POCxxx-User20),
- Password: Provided by Instructor
RTP Based Clusters:
- Username: RTP-POCxxx-User01 (up to RTP-POCxxx-User20),
- Password: Provided by Instructor
Frame VDI
Login to: https://console.nutanix.com/x/labs
Nutanix Employees - Use your NUTANIXDC credentials Non-Employees - Use Lab Access User Credentials
Parallels VDI
PHX Based Clusters Login to: https://xld-uswest1.nutanix.com
RTP Based Clusters Login to: https://xld-useast1.nutanix.com
Nutanix Employees - Use your NUTANIXDC credentials Non-Employees - Use Lab Access User Credentials
Employee Pulse Secure VPN
Download the client:
PHX Based Clusters Login to: https://xld-uswest1.nutanix.com
RTP Based Clusters Login to: https://xld-useast1.nutanix.com
Nutanix Employees - Use your NUTANIXDC credentials Non-Employees - Use Lab Access User Credentials
Install the client.
In Pulse Secure Client, Add a connection:
For PHX:
- Type - Policy Secure (UAC) or Connection Server
- Name - X-Labs - PHX
- Server URL - xlv-uswest1.nutanix.com
For RTP:
- Type - Policy Secure (UAC) or Connection Server
- Name - X-Labs - RTP
- Server URL - xlv-useast1.nutanix.com
Nutanix Version Info
- AOS 5.20.3.x &
- PC pc.2022.4.0.1
- Calm 3.3.1