{"id":22706852,"url":"https://github.com/zimfw/k","last_synced_at":"2025-04-12T11:17:04.774Z","repository":{"id":108622437,"uuid":"554566495","full_name":"zimfw/k","owner":"zimfw","description":"All kubectl aliases in one function.","archived":false,"fork":false,"pushed_at":"2024-10-01T13:26:23.000Z","size":13,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T06:03:40.902Z","etag":null,"topics":["kubectl","zim","zimfw","zsh","zsh-plugin","zsh-plugins"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zimfw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-20T02:45:03.000Z","updated_at":"2025-01-24T07:17:20.000Z","dependencies_parsed_at":"2025-02-04T21:33:50.816Z","dependency_job_id":"a47963e1-96fb-4cfc-ae92-15d5ce72c78b","html_url":"https://github.com/zimfw/k","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimfw%2Fk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimfw%2Fk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimfw%2Fk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimfw%2Fk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zimfw","download_url":"https://codeload.github.com/zimfw/k/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248557846,"owners_count":21124168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kubectl","zim","zimfw","zsh","zsh-plugin","zsh-plugins"],"created_at":"2024-12-10T10:09:56.970Z","updated_at":"2025-04-12T11:17:04.754Z","avatar_url":"https://github.com/zimfw.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"k\n=\n\nAll kubectl aliases in one function. Also initializes kubectl completion if it\nwas not initialized.\n\n```\nusage: k \u003ckeys\u003e [args...]\n```\n\nThe keys parameter is composed of:\n  * 1 command key\n  * 0 or more resource keys\n  * 0 or more option keys\n  * 0 or 1 suffix key\n\nall typed sequentially without spaces. Longer keys have precedence over shorter\nkeys. E.g `pvc` has precedence over `pv`.\n\n### Commands\n| Key | Command |\n| --- | ------- |\n| a | apply |\n| c | create |\n| d | describe |\n| e | edit |\n| E | exec |\n| g | get |\n| h | help |\n| k | kustomize |\n| l | logs |\n| t | top |\n| v | version |\n| x | delete |\n\n### Resources\n| Key | Resource |\n| --- | -------- |\n| apis  | apiservice |\n| bi    | binding |\n| cj    | cronjob |\n| cm    | configmap |\n| cr    | clusterrole |\n| crb   | clusterrolebinding |\n| crd   | customresourcedefinition |\n| crv   | controllerrevision |\n| cs    | componentstatus |\n| csid  | csidriver |\n| csin  | csinode |\n| csisc | csistoragecapacity |\n| csr   | certificatesigningrequest |\n| de    | deployment |\n| ds    | daemonset |\n| ep    | endpoint |\n| eps   | endpointslice |\n| ev    | event |\n| fs    | flowschema |\n| hpa   | horizontalpodautoscaler |\n| ic    | ingressclass |\n| ing   | ingress |\n| jo    | job |\n| le    | lease |\n| lr    | limitrange |\n| lsarv | localsubjectaccessreview |\n| mwc   | mutatingwebhookconfiguration |\n| no    | node |\n| np    | networkpolicy |\n| ns    | namespace |\n| pc    | priorityclass |\n| pdb   | poddisruptionbudget |\n| plc   | prioritylevelconfiguration |\n| po    | pod |\n| psp   | podsecuritypolicies |\n| pt    | podtemplate |\n| pv    | persistentvolume |\n| pvc   | persistentvolumeclaim |\n| rb    | rolebinding |\n| rc    | replicationcontroller |\n| ro    | role |\n| rq    | resourcequota |\n| rs    | replicaset |\n| rtc   | runtimeclass |\n| sa    | serviceaccount |\n| sarv  | subjectaccessreview |\n| sc    | storageclass |\n| sec   | secret |\n| ssarv | selfsubjectaccessreview |\n| ssrrv | selfsubjectrulesreview |\n| sts   | statefulset |\n| svc   | service |\n| tr    | tokenrequest |\n| trv   | tokenreview |\n| va    | volumeattachment |\n| vo    | volume |\n| vwc   | validatingwebhookconfiguration |\n\n### Options\n| Key | Option |\n| --- | ------ |\n| A  | --all-namespaces |\n| a  | --all |\n| h  | --help |\n| oj | -o=json |\n| on | -o=name |\n| ow | -o=wide |\n| oy | -o=yaml |\n| sl | --show-labels |\n| w  | --watch |\n\n### Suffixes\n| Key | Suffix |\n| --- | ------ |\n| f | -f |\n| k | -k |\n| l | -l |\n\nExamples\n--------\n| Input | Output |\n| ----- | ------ |\n| `k af pod.json` | `kubectl apply -f pod.json` |\n| `k dpol name=myLabel` | `kubectl describe pod -l name=myLabel` |\n| `k gk dir/` | `kubectl get -k dir/` |\n| `k gpoowA` | `kubectl get pod -o=wide --all-namespaces` |\n| `k gsvcrc` | `kubectl get service,replicationcontroller` |\n| `k xpoa` | `kubectl delete pod --all` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzimfw%2Fk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzimfw%2Fk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzimfw%2Fk/lists"}