Cluster Management
Learn how to connect, configure, and manage your Kubernetes clusters with Optral.
Overview
Optral connects to your Kubernetes clusters through a lightweight agent that runs inside each cluster. The agent collects metrics, logs, and resource information, sending it securely to the Optral platform for analysis and visualization.
Cluster Status
Understanding the different cluster states
The agent is running and actively sending data. All features are available.
Cluster was created but the agent hasn't connected yet. Install the agent to activate.
No heartbeat received for over 5 minutes. Check agent health and network connectivity.
Cluster has been manually disabled. Re-enable from cluster settings.
Adding a Cluster
- Go to Clusters > Add Cluster
- Enter a unique name for your cluster
- Select the environment type (production, staging, development)
- Copy the generated Helm installation command
- Run the command in your cluster
Cluster Limits
GitOps Integration
Connect your cluster to a Git repository for automated deployments
Optral supports GitOps workflows by integrating with GitHub and GitLab. When enabled, Optral can automatically create pull requests with remediation changes.
Supported Features:
- Automatic PR creation for runbook remediations
- Manifest sync status monitoring
- Drift detection between Git and cluster state
- Approval workflows for sensitive changes
Setup:
- Navigate to cluster settings
- Enable GitOps integration
- Connect your GitHub or GitLab account
- Select the repository and branch
- Specify the path to your Kubernetes manifests
Configuration Options
Name & Environment
Update the cluster display name and environment label. This helps organize clusters in the dashboard.
Agent Settings
Configure what data the agent collects: metrics interval, log retention, resource watch filters.
Notifications
Set up alerts for cluster events, issue detection, and agent health.
Required Permissions
RBAC permissions needed by the Optral agent
The Optral agent requires read access to most cluster resources to provide visibility and analysis. For runbook execution, additional write permissions may be needed.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: optral-agent
rules:
- apiGroups: [""]
resources: ["pods", "services", "nodes", "events", "configmaps"]
verbs: ["get", "list", "watch"]
- apiGroups: ["apps"]
resources: ["deployments", "daemonsets", "statefulsets"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["pods/log"]
verbs: ["get"]Removing a Cluster
To remove a cluster from Optral:
- Uninstall the agent from your cluster:
helm uninstall optral-agent -n optral-system - Delete the cluster from the dashboard via cluster settings