kubernetes

Provides kubectl commands for managing clusters, pods, services, and deployments.

Updated Jul 2, 2024
One-click install
npx skills add https://github.com/jyasuu/cheat-sheet --skill kubernetes-jyasuu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kubernetes
Source: https://github.com/jyasuu/cheat-sheet/tree/main/skills/kubernetes
Command: npx skills add https://github.com/jyasuu/cheat-sheet --skill kubernetes-jyasuu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Kubernetes is powerful but managing clusters, pods, deployments, and services can be error-prone and time-consuming without a concise reference. This Skill consolidates essential kubectl commands into a quick-start guide to streamline day-to-day operations.

Core Features & Use Cases

  • Namespace creation: create and manage isolated environments for workloads.
  • Pod, deployment, and service operations: run pods, expose services, and inspect resources across namespaces.
  • Debugging and troubleshooting: quickly view logs, exec into pods, and diagnose cluster state.
  • Use Case: spin up a demo pod in a namespace to validate connectivity and service exposure.

Quick Start

Run basic kubectl commands to manage namespaces, pods, and services as shown in the examples.

Frequently Asked Questions about kubernetes

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

FAQPage Schema
How do I manage Kubernetes pods and services across different namespaces?

You can manage Kubernetes pods and services by using kubectl commands to create isolated namespaces, run workloads, expose deployments, and inspect resources across your cluster environments.

What is the best way to debug a Kubernetes pod that is failing?

Debug a failing Kubernetes pod by using kubectl to view container logs, exec into the pod for shell access, and inspect deployment events to diagnose the cluster state.

Do I need to know kubectl syntax to manage Kubernetes deployments?

Yes, familiarity with kubectl syntax and cluster context management is required to safely create deployments, expose services, and troubleshoot workloads across local and production clusters.

Can I use kubectl to spin up a demo pod and validate service exposure?

Yes, you can use kubectl to create a demo pod in a namespace to validate connectivity and test service exposure across local, staging, and production clusters.

Why does my kubectl deployment command fail in a new Kubernetes cluster?

Your kubectl deployment command might fail if your cluster context is not set correctly or if the target namespace has not been created before attempting to run pods or expose services.