This section instructs you on how to configure and deploy a managed cluster that is based on the baremetal-based management cluster through the Mirantis Container Cloud web UI.
To create a managed cluster on bare metal:
Recommended. Verify that you have successfully configured an L2 template for a new cluster as described in Advanced networking configuration. You may skip this step if you do not require L2 separation for network traffic.
Optional. Create a custom bare metal host profile depending on your needs as described in Create a custom bare metal host profile.
Log in to the Container Cloud web UI with the writer
permissions.
Switch to the required project using the Switch Project action icon located on top of the main left-side navigation panel.
In the SSH keys tab, click Add SSH Key to upload the public SSH key that will be used for the SSH access to VMs.
In the Clusters tab, click Create Cluster.
Configure the new cluster in the Create New Cluster wizard that opens:
Define general and Kubernetes parameters:
Section |
Parameter name |
Description |
---|---|---|
General settings |
Cluster name |
The cluster name. |
Provider |
Select Baremetal. |
|
Region |
From the drop-down list, select Baremetal. |
|
Release version |
The Container Cloud version. |
|
SSH keys |
From the drop-down list, select the SSH key name that you have previously added for SSH access to the bare metal hosts. |
|
Provider |
LB host IP |
The IP address of the load balancer endpoint that will be used to access the Kubernetes API of the new cluster. This IP address must be on the Combined/PXE network. |
LB address range |
The range of IP addresses that can be assigned to load balancers for Kubernetes Services by MetalLB. |
|
Kubernetes |
Node CIDR |
The Kubernetes worker nodes CIDR block.
For example, |
Services CIDR blocks |
The Kubernetes Services CIDR blocks.
For example, |
|
Pods CIDR blocks |
The Kubernetes pods CIDR blocks.
For example, |
Configure StackLight:
Section |
Parameter name |
Description |
---|---|---|
StackLight |
Enable Monitoring |
Selected by default. Deselect to skip StackLight deployment. Note You can also enable, disable, or configure StackLight parameters after deploying a managed cluster. For details, see Change a cluster configuration or Configure StackLight. |
Enable Logging |
Select to deploy the StackLight logging stack. For details about the logging components, see Reference Architecture: StackLight deployment architecture. |
|
HA Mode |
Select to enable StackLight monitoring in the HA mode. For the differences between HA and non-HA modes, see Reference Architecture: StackLight deployment architecture. |
|
Elasticsearch |
Retention Time |
The Elasticsearch logs retention period in Logstash. |
Persistent Volume Claim Size |
The Elasticsearch persistent volume claim size. |
|
Prometheus |
Retention Time |
The Prometheus database retention period. |
Retention Size |
The Prometheus database retention size. |
|
Persistent Volume Claim Size |
The Prometheus persistent volume claim size. |
|
Enable Watchdog Alert |
Select to enable the Watchdog alert that fires as long as the entire alerting pipeline is functional. |
|
Custom Alerts |
Specify alerting rules for new custom alerts or upload a YAML file in the following exemplary format: - alert: HighErrorRate
expr: job:request_latency_seconds:mean5m{job="myjob"} > 0.5
for: 10m
labels:
severity: page
annotations:
summary: High request latency
For details, see Official Prometheus documentation: Alerting rules. For the list of the predefined StackLight alerts, see Operations Guide: Available StackLight alerts. |
|
StackLight Email Alerts |
Enable Email Alerts |
Select to enable the StackLight email alerts. |
Send Resolved |
Select to enable notifications about resolved StackLight alerts. |
|
Require TLS |
Select to enable transmitting emails through TLS. |
|
Email alerts configuration for StackLight |
Fill out the following email alerts parameters as required:
|
|
StackLight Slack Alerts |
Enable Slack alerts |
Select to enable the StackLight Slack alerts. |
Send Resolved |
Select to enable notifications about resolved StackLight alerts. |
|
Slack alerts configuration for StackLight |
Fill out the following Slack alerts parameters as required:
|
Click Create.
To view the deployment status, verify the cluster status on the Clusters page. Once the orange blinking dot near the cluster name disappears, the deployment is complete.
Now, proceed to Add a bare metal host.