Skip to content

Kubernetes Integration

Monitor and manage Kubernetes clusters with Ops Atlas.

Setup

Service Account

yaml
apiVersion: v1
kind: ServiceAccount
metadata:
  name: ops-atlas
  namespace: ops-atlas
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: ops-atlas
rules:
  - apiGroups: [""]
    resources: ["pods", "services", "deployments", "namespaces"]
    verbs: ["get", "list", "watch"]
  - apiGroups: ["apps"]
    resources: ["deployments", "replicasets"]
    verbs: ["get", "list", "watch", "update"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: ops-atlas
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: ops-atlas
subjects:
  - kind: ServiceAccount
    name: ops-atlas
    namespace: ops-atlas

Configuration

yaml
kubernetes:
  enabled: true
  in_cluster: true  # Use service account
  # Or external kubeconfig:
  # kubeconfig: /path/to/kubeconfig

Features

Pod Management

  • View all pods across namespaces
  • Real-time status updates
  • Log streaming
  • Shell access (if enabled)

Deployments

  • Trigger rolling updates
  • Scale replicas
  • Rollback to previous versions

Metrics

  • Pod CPU/memory usage
  • Node utilization
  • Network traffic

Multi-Cluster

Monitor multiple clusters:

yaml
kubernetes:
  clusters:
    - name: production
      kubeconfig: /configs/prod-kubeconfig
    - name: staging
      kubeconfig: /configs/staging-kubeconfig

Released under the MIT License.