k8s-core
Core Kubernetes resource management for pods, namespaces, configmaps, secrets, and nodes. Use when listing, inspecting, or managing fundamental K8s objects.
Best use case
k8s-core is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Core Kubernetes resource management for pods, namespaces, configmaps, secrets, and nodes. Use when listing, inspecting, or managing fundamental K8s objects.
Teams using k8s-core should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/k8s-core/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How k8s-core Compares
| Feature / Agent | k8s-core | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Core Kubernetes resource management for pods, namespaces, configmaps, secrets, and nodes. Use when listing, inspecting, or managing fundamental K8s objects.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Core Kubernetes Resources
Manage fundamental Kubernetes objects using kubectl-mcp-server's core tools.
## When to Apply
Use this skill when:
- User mentions: "pods", "namespaces", "configmaps", "secrets", "nodes", "events"
- Operations: listing resources, describing objects, creating/deleting resources
- Keywords: "show me", "list", "get", "describe", "create", "delete"
## Priority Rules
| Priority | Rule | Impact | Tools |
|----------|------|--------|-------|
| 1 | Check namespace exists before operations | CRITICAL | `get_namespaces` |
| 2 | Never expose secrets in plain text | CRITICAL | Handle `get_secret` output carefully |
| 3 | Use labels for filtering | HIGH | `label_selector` parameter |
| 4 | Check events after changes | MEDIUM | `get_events` |
## Quick Reference
| Task | Tool | Example |
|------|------|---------|
| List pods | `get_pods` | `get_pods(namespace="default")` |
| Describe pod | `describe_pod` | `describe_pod(name, namespace)` |
| Get logs | `get_pod_logs` | `get_pod_logs(name, namespace)` |
| List namespaces | `get_namespaces` | `get_namespaces()` |
| Get configmap | `get_configmap` | `get_configmap(name, namespace)` |
| List nodes | `get_nodes` | `get_nodes()` |
## Pods
```python
get_pods(namespace="default")
get_pods(namespace="kube-system", label_selector="app=nginx")
describe_pod(name="my-pod", namespace="default")
get_pod_logs(name="my-pod", namespace="default")
get_pod_logs(name="my-pod", namespace="default", previous=True)
delete_pod(name="my-pod", namespace="default")
```
## Namespaces
```python
get_namespaces()
create_namespace(name="my-namespace")
delete_namespace(name="my-namespace")
```
## ConfigMaps
```python
get_configmaps(namespace="default")
get_configmap(name="my-config", namespace="default")
create_configmap(
name="app-config",
namespace="default",
data={"key": "value", "config.yaml": "setting: true"}
)
```
## Secrets
```python
get_secrets(namespace="default")
get_secret(name="my-secret", namespace="default")
create_secret(
name="db-credentials",
namespace="default",
data={"username": "admin", "password": "secret123"}
)
```
## Nodes
```python
get_nodes()
describe_node(name="node-1")
get_nodes_summary()
cordon_node(name="node-1")
uncordon_node(name="node-1")
drain_node(name="node-1", ignore_daemonsets=True)
```
## Events
```python
get_events(namespace="default")
get_events(namespace="default", field_selector="involvedObject.name=my-pod")
```
## Multi-Cluster Support
All tools support `context` parameter:
```python
get_pods(namespace="default", context="production-cluster")
get_nodes(context="staging-cluster")
```
## Related Skills
- [k8s-troubleshoot](../k8s-troubleshoot/SKILL.md) - Debug failing pods
- [k8s-operations](../k8s-operations/SKILL.md) - kubectl apply/patch/deleteRelated Skills
k8s-vind
Manage vCluster (virtual Kubernetes clusters) instances using vind. Use when creating, managing, or operating lightweight virtual clusters for development, testing, or multi-tenancy.
k8s-troubleshoot
Debug Kubernetes pods, nodes, and workloads. Use when pods are failing, containers crash, nodes are unhealthy, or users mention debugging, troubleshooting, or diagnosing Kubernetes issues.
k8s-storage
Kubernetes storage management for PVCs, storage classes, and persistent volumes. Use when provisioning storage, managing volumes, or troubleshooting storage issues.
k8s-service-mesh
Manage Istio service mesh for traffic management, security, and observability. Use for traffic shifting, canary releases, mTLS, and service mesh troubleshooting.
k8s-security
Audit Kubernetes RBAC, enforce policies, and manage secrets. Use for security reviews, permission audits, policy enforcement with Kyverno/Gatekeeper, and secret management.
k8s-rollouts
Progressive delivery with Argo Rollouts and Flagger. Use when implementing canary deployments, blue-green deployments, or traffic shifting strategies.
k8s-policy
Kubernetes policy management with Kyverno and Gatekeeper. Use when enforcing security policies, validating resources, or auditing policy compliance.
k8s-operations
kubectl operations for applying, patching, deleting, and executing commands on Kubernetes resources. Use when modifying resources, running commands in pods, or managing resource lifecycle.
k8s-networking
Kubernetes networking management for services, ingresses, endpoints, and network policies. Use when configuring connectivity, load balancing, or network isolation.
k8s-multicluster
Manage multiple Kubernetes clusters, switch contexts, and perform cross-cluster operations. Use when working with multiple clusters, comparing environments, or managing cluster lifecycle.
k8s-kubevirt
Virtual machine management with KubeVirt on Kubernetes. Use when creating, managing, or troubleshooting VMs running on Kubernetes clusters.
k8s-kind
Manage kind (Kubernetes IN Docker) local clusters. Use when creating, testing, or developing with local Kubernetes clusters in Docker containers.