From 7dfa2df69a5d2d249b8ae73a49b01bed30bf7e1a Mon Sep 17 00:00:00 2001 From: Sugeng Agung Suganda Date: Tue, 29 Jul 2025 14:21:51 +0700 Subject: [PATCH] Fix typo in services jsonpath line --- CHEATSHEET.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHEATSHEET.md b/CHEATSHEET.md index d341a9a..b56000f 100644 --- a/CHEATSHEET.md +++ b/CHEATSHEET.md @@ -33,7 +33,7 @@ A beginner-friendly guide to commonly used Kubernetes commands for managing pods - `kubectl get services --all-namespaces`: list services across all namespaces - `kubectl describe endpoints `: show detailed information about a specific endpoints - `kubectl get services -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}'`: list the names of all services in jsonpath format -- `kubectl get services -o jsonpath='{.items[*].spec.ports[*].name}'`: list the ports name of all services in jsonpath foat +- `kubectl get services -o jsonpath='{.items[*].spec.ports[*].name}'`: list the ports name of all services in jsonpath format - `kubectl get services -o jsonpath='{.items[*].spec.ports[*].port}'`: list the ports number of all services in jsonpath format ## Deployment Management