Commit Graph

71 Commits (c26fe7e49f2363c2b3b94a2a717280f86da5dcd3)

Author SHA1 Message Date
ramnar 4ed2587df3
implemented review comments 2020-11-18 10:03:23 +05:30
ramnar ba4b043336
updated review comments
updated review comments
2020-11-10 07:08:40 +05:30
ramnar 18e4eaff07
implemented feedback
implemented feedback
2020-11-10 07:05:16 +05:30
ramnar bc2b4f2e5b
implemented review comments
implemented review comments
2020-10-28 07:28:32 +05:30
ramnar 177fb0d6f2
implementing review comments
implementing review comments
2020-10-25 16:05:29 +05:30
ramnar 18eb0bfc02
commands to create job and cronjob 2020-10-24 10:36:54 +05:30
Kubernetes Prow Robot 8c60bd2208
Merge pull request #22975 from kbhawkey/kb-fix-heading-cheatsheet
remove extra title in kubectl cheatsheet
2020-08-16 14:10:18 -07:00
Garron Kramer 05a417c303
Assist those who struggle to find path to relevant keys in Json output. 2020-08-07 14:57:15 +03:00
Karen Bradshaw 672af3395a remove extra title kubectl cheatsheet 2020-08-05 09:19:49 -04:00
Qiming Teng 4ddc1663f2 Add a kubectl tip for working with keys with dots 2020-07-02 16:30:52 +08:00
Wang(わん) 622e5f9713
update latest kubectl run syntax
--dry-run is deprecated

`--restart=Never` flag is unnecessary to create a pod from 1.18
2020-06-15 21:06:55 +09:00
Karen Bradshaw ecc27bbbe7 add en pages 2020-06-09 19:33:15 -04:00
gosoon 1847278b1f fix: error message 2020-04-21 17:22:23 +08:00
Jim Angel 11ac6b9e13 adding custom-columns examples 2020-04-19 19:55:29 -05:00
Rajesh Deshpande be6c0c3a21
Removing references of `kubectl rolling-update` command (#19449)
* Removing rolling-update command details

Removing rolling-update command details

Removing references to kubectl rolling-update command

* Removing rolling-update references
2020-03-27 18:33:53 -07:00
Anastas Dancha 1f958e0744
updating cheatsheet.md with command to get containerIDs of all initContainer (#19243)
* adding cheatsheet.md

adding kubectl command to get containerIDs of all
initContainers for every Pod in the cluster
helps to identify stopped container which should not be removed,
when running manual cleanup of stopped containers on K8s cluster nodes

* adding more context for finding initContainer IDs

* removing reference to github issue

Signed-off-by: Anastas Dancha <anapsix@random.io>
2020-03-15 23:12:35 -07:00
Louis Raymond a869f00509
Update cheatsheet.md (#19039)
Replaced 'if' ZSH kubectl autocomplete with a more compact form
2020-03-15 21:58:35 -07:00
Naoki Oketani e37b117a3f
remove example of deprecated option: kubectl get --export (#19336) 2020-03-15 21:24:35 -07:00
Andrey Zhelnin 8ccc83fad6
Update kubectl explain usage case (#19612)
You can't specify more then one resources at one for explain. See error below:
$ kubectl explain pods,svc
the server doesn't have a resource type "pods,svc"

error: We accept only this format: explain RESOURCE
2020-03-13 17:50:34 -07:00
Kabir Kwatra cd2f675b5b
Updated CHANGELOG-11 link (#19036) 2020-02-09 14:53:53 -08:00
Prasad Honavar 9da040d5d0
Update cheatsheet.md (#18975)
* Update cheatsheet.md

"List all pods in the namespace, with more details" command corrected by adding --all-namespaces

* Update content/en/docs/reference/kubectl/cheatsheet.md

Co-Authored-By: Tim Bannister <tim@scalefactory.com>

Co-authored-by: Tim Bannister <tim@scalefactory.com>
2020-02-07 11:45:46 -08:00
Aman Gupta 7e0dd4f59f
(fix) Removed `-n test` from `kubectl get pv` command (#18877)
- PV are cluster scoped rather than namespaced scope
    - So, there is no need to list it by namespace

Signed-off-by: Aman Gupta <aman.gupta@mayadata.io>
2020-02-07 07:23:45 -08:00
zhouya0 0c57f2c46b add kubectl diff to cheatsheet (#18481) 2020-01-12 17:53:37 -08:00
chendotjs 0c2a5ceb0b Remove useless blank line (#18211) 2020-01-10 14:25:37 -08:00
Antoine Pelisse 40499ac391 Add "rollout restart" to cheatsheet (#18224) 2020-01-07 16:47:40 -08:00
pierwill 6324ff5d75 kubectl cheatsheet edits (#18222)
* Capitalize terms in kubectl cheatsheet

* Edit output flag section of kubectl cheatsheet

Minor edit for readability
2019-12-30 10:53:39 -08:00
Zach Corleissen bb45a9818d Revert breaking commits (#17967)
* Revert "Remove dead links to old getting started guides (#17889)"

This reverts commit d6285eaac4.

* Revert "Fix a command in kubectl cheatsheet (#17888)"

This reverts commit e03f4b258c.
2019-12-05 15:22:49 -08:00
Qiming e03f4b258c Fix a command in kubectl cheatsheet (#17888)
Closes: #17883
2019-11-30 21:23:03 -08:00
praveen-kg e26dd31892 incorrect command for sort-by operation on pod (#17032)
* incorrect command for sort-by

kubectl get pods -n test --sort-by=.spec.capacity.storage, is incorrect for pod as pods will not have capacity.storage under .spec, rather it should be for PersistentVolume.

So change the command  

kubectl get pv -n test --sort-by=.spec.capacity.storage

* Update cheatsheet.md
2019-11-25 21:29:10 -08:00
Ahmad Bani jamali 57047b2c2c a small fix in the delete all pods (#16824)
There was a typo in kubectl -n my-ns delete pod,svc --all
2019-10-14 15:33:51 -07:00
Daniel Laing a2edf8f934 Minor text edit (#16760)
Clarified the description of `kubectl edit`.
2019-10-14 15:27:51 -07:00
Peter Mikitsh 3964d24053 fix(cheatsheet): update context cmd description (#15935)
* fix(cheatsheet): update context cmd description

* chore: remove newline
2019-10-14 14:55:51 -07:00
Pengcheng Chen 657c976468 Fix indent issue in cheatsheet.md (#16574) 2019-09-27 14:22:43 -07:00
Melony QIN 62b279afbb add kubectl run deploy pod into specific namespace (#15825)
* add kubectl run deploy pod into specific namespace

* add my namespace
2019-09-27 14:04:42 -07:00
Ismail Alidzhikov 5f9fe16f28 Align cheatsheet comments (#16178)
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2019-09-27 13:29:36 -07:00
Deepika Pandhi 7bb1acf3dd removed longer version to fetch labels for pods #14778 (#16268)
* updated OR comments

* removed older long version to fetch labels for pods to use only kubectl get pods --show-labels
2019-09-27 13:03:37 -07:00
Pengcheng Chen 54af88fad2 Update the kubectl config command in cheatsheet.md (#16556)
`kubectl config view -o jsonpath='{.users[].name}' ` in the doc doesn't get the list of users as described in the comment actually.
To get the list of users, the json path should be `'{.users[].name}' `
2019-09-25 19:25:06 -07:00
Deepika Pandhi 3eb7612e88 Removed uninitialized flag reference from kubectl cheetsheet (#16485) 2019-09-22 20:21:22 -07:00
Melony QIN 7796f3cea6 add rollout history and back to specific revision (#15818)
add rollout history and back to specific revision
2019-08-15 20:36:32 -07:00
lyveng 306a6201b8 Fixed broken link to logging conventions in kubectl cheatsheet (#15699) 2019-08-06 17:12:54 -07:00
Melony QIN a17f259b8d update cheat sheet (#15677)
add sort by capacity
2019-08-05 20:11:53 -07:00
Tim Bannister 20e45f1331 Add concept page for Operators (#14458)
* Add concept page for Operator pattern

* Link to article about Operator best practices
2019-07-11 17:57:07 -07:00
devasat a90f783820 cheatsheet.md: fix command that queries for label version (#15355)
'rc' in the command is interpreted as pod name
2019-07-11 16:13:05 -07:00
Brian Grant 71e027895e Remove myself from review of all files except what-is-kubernetes and the deprecation policy. All of the lists of suggested reviewers need to be overhauled, but that's a separate task. (#15227) 2019-07-06 04:20:35 -07:00
Deepika Pandhi 658f5c498d Added --show-labels (#14779)
* updated OR comments

* updated comments from review for --show-labels
2019-06-18 15:36:32 -07:00
codyc d1ceddba29 fixed indentation for kubectl config view (#14060)
fixed indentation for kubectl config view
2019-04-26 14:06:22 -07:00
ismail yenigul 100de28f11 Delete all pods matching the egrep pattern (#13821)
* Delete all pods matching the egrep pattern

* replace egrep with awk to delete pods by a pattern

* Update content/en/docs/reference/kubectl/cheatsheet.md

Co-Authored-By: ismailyenigul <ismailyenigul@gmail.com>
2019-04-25 11:29:49 -07:00
Miguel Angel Medina Mondragon e0d2b86919 add log commands with label flag (#13804)
* add log commands with label flag

* style
2019-04-14 17:44:00 -07:00
AbdullahBM cc09428797 setting current context and finding running pod's YAML (#13665) 2019-04-08 18:03:04 -07:00
Tennis Smith b809bdcba0 Add 'get-contexts' (#13677)
Added `kubectl config get-contexts` for completeness
2019-04-08 18:01:04 -07:00