Skip to content
Errors
Commands
Flags
Config
Cheat sheets
Changes
Compat
Codes
Compare
Glossary
Search
Ctrl K
Browse
Error Messages
Commands
Flags & Options
Config Reference
Cheat Sheets
Version Changes
Compatibility
Codes & Tables
X vs Y
Glossary
All tools
Home
Tools
Kubernetes
Containers & orchestration
Kubernetes
Container orchestration and the kubectl CLI.
Official documentation
Errors
1
Commands
1
Cheat sheets
1
Compat
1
Glossary
1
kubectl: error converting YAML to JSON: mapping values are not allowed in this context
kubectl apply fails with error converting YAML to JSON: mapping values are not allowed in this context when indentation is wrong or a colon is unquoted.
All Kubernetes error messages
Generate Kubernetes YAML with kubectl create --dry-run=client -o yaml
kubectl create deployment, service, configmap or secret with --dry-run=client -o yaml prints a ready manifest without a cluster. Save it with > file.yaml.
All Kubernetes commands
kubectl cheat sheet: everyday Kubernetes commands
kubectl cheat sheet: contexts and namespaces, get and describe, logs and exec, apply and rollout, port-forward, scaling, and manifests with --dry-run=client.
All Kubernetes cheat sheets
kubectl version skew: which kubectl works with which cluster
Kubernetes supports kubectl within one minor version of the API server: kubectl 1.37 works with clusters 1.36 to 1.38. Skew rules for kubelet and the rest.
All Kubernetes compatibility
What is a Pod in Kubernetes?
A Pod is the smallest deployable unit in Kubernetes: one or more containers that share a network namespace, IP address and volumes, always on the same node.
All Kubernetes glossary
Esc