When the Walker Bothers sang ‘Make it easy on yourself’ they was most definitely was not singing about Kubernetes.
However, if you want to make it easy on yourself, learn some of Kubernetes short names and save time typing all those kubectl commands.
Some don’t help much,
% kubectl get nodes NAME STATUS ROLES AGE VERSION 10.0.10.154 Ready node 45h v1.20.8 10.0.10.179 Ready node 45h v1.20.8 10.0.10.95 Ready node 45h v1.20.8 or % kubectl get no NAME STATUS ROLES AGE VERSION 10.0.10.154 Ready node 45h v1.20.8 10.0.10.179 Ready node 45h v1.20.8 10.0.10.95 Ready node 45h v1.20.8
But others can be useful, for example:
% kubectl get storageclasses NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE oci (default) oracle.com/oci Delete Immediate false 45h oci-bv blockvolume.csi.oraclecloud.com Delete WaitForFirstConsumer false 45h or % kubectl get sc NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE oci (default) oracle.com/oci Delete Immediate false 45h oci-bv blockvolume.csi.oraclecloud.com Delete WaitForFirstConsumer false 45h
Below is a table I have started of Kubernetes Names, Short Names and Kind, as I discover new ones I will add them to the list:
Name | Short Name | Kind |
---|---|---|
autopilotruleobjects | aro | AutopilotRuleObject |
autopilotrules | ar | AutopilotRule |
certificatesigningrequests | csr | CertificateSigningRequest |
clusterdomainsstatuses | cds | ClusterDomainsStatus |
clusterdomainupdates | cdu | ClusterDomainUpdate |
componentstatues | cs | ComponentStatus |
configmaps | cm | ConfigMap |
cronjobs | cj | CronJob |
customresourcedefinitions | crd, crds | CustomResourceDefinition |
daemonsets | ds | DaemonSet |
deployments | deploy | Deployment |
endpoints | ep | Endpoints |
events | ev | Event |
horizontalpodautoscalers | hpa | HorizontalPodAutoscaler |
ingresses | ing | Ingress |
innodbclusters | ic, ics | InnoDBCluster |
limitranges | limits | LimitRange |
mysqlbackups | mkb | MySQLBackup |
namespaces | ns | Namespace |
networkpolicies | netpol | NetworkPolicy |
node | no | Node |
persistentvolumeclaims | pvc | PersistentVolumeClaim |
persistentvolumes | pv | PersistentVolume |
poddisruptionbudgets | pdb | PodDisruptionBudget |
pods | po | Pod |
podsecuritypolicies | psp | PodSecurityPolicy |
priorityclasses | pc | PriorityClass |
replicasets | rs | ReplicaSet |
replicationcontrollers | rc | ReplicationController |
resourcequotas | quota | ResourceQuota |
serviceaccounts | sa | ServiceAccount |
services | svc | Service |
statefulsets | sts | StatefulSet |
storageclasses | sc | StorageClass |
storagenodes | sn | StorageNode |
volumeplacementstrategies | vps, vp | VolumePlacementStrategy |
Summary
If you discover a missing entry please let me know, so I can add it to the list.
[twitter-follow screen_name=’RonEkins’ show_count=’yes’]
Leave a Reply