Kubernetes

Guide Kubernetes configuration to avoid errors in resource management, probes, labels, selectors, ConfigMaps, Secrets, networking, storage, and RBAC.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/zangxin75/openclaw-skills --skill kubernetes-zangxin75
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Kubernetes
Source: https://github.com/zangxin75/openclaw-skills/tree/main/k8s
Command: npx skills add https://github.com/zangxin75/openclaw-skills --skill kubernetes-zangxin75

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users avoid common and costly mistakes when configuring and managing Kubernetes deployments, ensuring more stable and efficient containerized applications.

Core Features & Use Cases

  • Resource Management: Understand and correctly set CPU/memory requests and limits to prevent OOMKills and throttling.
  • Probe Configuration: Properly configure readiness, liveness, and startup probes to ensure application availability and automatic recovery.
  • Labeling & Selection: Implement effective labeling strategies and understand selector matching for reliable service discovery.
  • ConfigMaps & Secrets: Learn best practices for managing configuration and sensitive data, including auto-updates and security considerations.
  • Networking: Differentiate between ClusterIP, NodePort, LoadBalancer, and Ingress for effective service exposure.
  • Persistent Storage: Understand PVC/PV binding, storage classes, and access modes for stateful applications.
  • RBAC: Implement least privilege by correctly configuring Service Accounts, Roles, and Role Bindings.
  • Debugging: Utilize kubectl describe, logs, exec, and events for efficient troubleshooting.

Quick Start

Use the k8s skill to explain the difference between resource requests and limits in Kubernetes.

Frequently Asked Questions about Kubernetes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix Kubernetes pods getting OOMKilled or throttled?

Fix Kubernetes OOMKills and throttling by correctly configuring CPU and memory requests and limits. Properly setting these resource management parameters prevents container eviction and ensures stable application availability.

What is the difference between Kubernetes readiness and liveness probes?

Kubernetes readiness probes control traffic routing to pods, while liveness probes determine when to restart failed containers. Properly configuring both, alongside startup probes, ensures automatic recovery and application availability.

How do I troubleshoot Kubernetes deployment configuration errors?

Troubleshoot Kubernetes configuration errors using kubectl describe, logs, exec, and events commands. These debugging tools help identify issues with resource management, probes, networking, and persistent storage for efficient cluster operation.

What is the best way to manage Kubernetes ConfigMaps and Secrets?

The best way to manage Kubernetes ConfigMaps and Secrets involves applying security considerations and handling auto-updates. Implementing these best practices ensures sensitive data and configuration are managed safely without manual pod restarts.

How do I configure Kubernetes RBAC for least privilege?

Configure Kubernetes RBAC for least privilege by correctly setting up Service Accounts, Roles, and Role Bindings. This approach restricts user and application permissions to only what is necessary for secure cluster operation.

When do I need Kubernetes Persistent Storage and how do I bind PVCs?

You need Kubernetes persistent storage for stateful applications. Understand PVC/PV binding, storage classes, and access modes to ensure data persistence and reliable storage management for your containerized workloads.