@@ -204,6 +204,13 @@ kubectl get events --sort-by=.metadata.creationTimestamp
|
|||||||
|
|
||||||
# Compares the current state of the cluster against the state that the cluster would be in if the manifest was applied.
|
# Compares the current state of the cluster against the state that the cluster would be in if the manifest was applied.
|
||||||
kubectl diff -f ./my-manifest.yaml
|
kubectl diff -f ./my-manifest.yaml
|
||||||
|
|
||||||
|
# Produce a period-delimited tree of all keys returned for nodes
|
||||||
|
# Helpful when locating a key within a complex nested JSON structure
|
||||||
|
kubectl get nodes -o json | jq -c 'path(..)|[.[]|tostring]|join(".")'
|
||||||
|
|
||||||
|
# Produce a period-delimited tree of all keys returned for pods, etc
|
||||||
|
kubectl get pods -o json | jq -c 'path(..)|[.[]|tostring]|join(".")'
|
||||||
```
|
```
|
||||||
|
|
||||||
## Updating Resources
|
## Updating Resources
|
||||||
|
|||||||
Reference in New Issue
Block a user