website icon indicating copy to clipboard operation
website copied to clipboard

Add Tips Section for abbreviated names of `kubectl` resources

Open Babapool opened this issue 4 years ago • 3 comments

This is a Feature Request

What would you like to be added

Add a Tips section for abbreviated kubectl resource names/ kubectl commands to help users with kubectl commands based on their experience.

Why is this needed Based on @sftim 's suggestion in https://github.com/kubernetes/website/issues/33957#issuecomment-1138548316 , it is more easy to associate (more obvious to understand) with kubectl get replicaset rather than kubectl get rs as mention in the Deployments page. I think a possible solution would be if could change the docs to mention kubectl get replica set on the this page. A hint/tip section could be on the page to inform users that kubectl get rs could also be used.

Many such abbreviations which are used:

  • kubectl get cm for kubectl get configmaps
  • kubectl get svc for kubectl get services amongst others

We can add a tips section in the documentation pages which could provide users with hints like using the abbreviated names for kubectl. (or vice versa). Comments

Babapool avatar Jun 14 '22 17:06 Babapool

@Babapool: This issue is currently awaiting triage.

SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Jun 14 '22 17:06 k8s-ci-robot

I don't know if we need a dedicated Tips section since you can run kubectl api-resources to get the short names

reylejano avatar Jun 24 '22 02:06 reylejano

This is already stated on the cheatsheet https://kubernetes.io/docs/reference/kubectl/cheatsheet/#resource-types I'm going to close this issue, but you feel otherwise please reopen

reylejano avatar Jun 24 '22 02:06 reylejano