Skip to content

Instantly share code, notes, and snippets.

@KyWa
Created January 29, 2022 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KyWa/d71f3e6011653a8ccbbf7b178084ec58 to your computer and use it in GitHub Desktop.
Save KyWa/d71f3e6011653a8ccbbf7b178084ec58 to your computer and use it in GitHub Desktop.
Kubectl Get All (namespaced api-resources)
~ (k8s:default) > kubegetall kube-system
Resource: configmaps
NAME DATA AGE
coredns 1 3d9h
extension-apiserver-authentication 6 3d9h
kube-proxy 2 3d9h
kube-root-ca.crt 1 3d9h
kubeadm-config 1 3d9h
kubelet-config-1.23 1 3d9h
Resource: controllerrevisions.apps
NAME CONTROLLER REVISION AGE
kindnet-698dd8777f daemonset.apps/kindnet 1 3d9h
kube-proxy-8485885f8b daemonset.apps/kube-proxy 1 3d9h
Resource: cronjobs.batch
Resource: csistoragecapacities.storage.k8s.io
Resource: daemonsets.apps
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
kindnet 3 3 3 3 3 <none> 3d9h
kube-proxy 3 3 3 3 3 kubernetes.io/os=linux 3d9h
Resource: deployments.apps
NAME READY UP-TO-DATE AVAILABLE AGE
coredns 1/1 1 1 3d9h
Resource: endpoints
NAME ENDPOINTS AGE
k8s.io-minikube-hostpath <none> 3d9h
kube-dns 10.244.0.2:53,10.244.0.2:53,10.244.0.2:9153 3d9h
Resource: endpointslices.discovery.k8s.io
NAME ADDRESSTYPE PORTS ENDPOINTS AGE
kube-dns-v2b4f IPv4 9153,53,53 10.244.0.2 3d9h
Resource: horizontalpodautoscalers.autoscaling
Resource: ingresses.networking.k8s.io
Resource: jobs.batch
Resource: leases.coordination.k8s.io
Resource: limitranges
Resource: networkpolicies.networking.k8s.io
Resource: persistentvolumeclaims
Resource: poddisruptionbudgets.policy
Resource: pods
NAME READY STATUS RESTARTS AGE
coredns-64897985d-p7j5s 1/1 Running 0 3d9h
etcd-minikube 1/1 Running 0 3d9h
kindnet-47kjw 1/1 Running 0 3d9h
kindnet-pknbj 1/1 Running 0 3d9h
kindnet-rdq4h 1/1 Running 0 3d9h
kube-apiserver-minikube 1/1 Running 0 3d9h
kube-controller-manager-minikube 1/1 Running 0 3d9h
kube-proxy-4pgbq 1/1 Running 0 3d9h
kube-proxy-n4ksg 1/1 Running 0 3d9h
kube-proxy-smjzx 1/1 Running 0 3d9h
kube-scheduler-minikube 1/1 Running 0 3d9h
storage-provisioner 1/1 Running 0 3d9h
Resource: podtemplates
Resource: replicasets.apps
NAME DESIRED CURRENT READY AGE
coredns-64897985d 1 1 1 3d9h
Resource: replicationcontrollers
Resource: resourcequotas
Resource: rolebindings.rbac.authorization.k8s.io
NAME ROLE AGE
kube-proxy Role/kube-proxy 3d9h
kubeadm:kubelet-config-1.23 Role/kubeadm:kubelet-config-1.23 3d9h
kubeadm:nodes-kubeadm-config Role/kubeadm:nodes-kubeadm-config 3d9h
system::extension-apiserver-authentication-reader Role/extension-apiserver-authentication-reader 3d9h
system::leader-locking-kube-controller-manager Role/system::leader-locking-kube-controller-manager 3d9h
system::leader-locking-kube-scheduler Role/system::leader-locking-kube-scheduler 3d9h
system:controller:bootstrap-signer Role/system:controller:bootstrap-signer 3d9h
system:controller:cloud-provider Role/system:controller:cloud-provider 3d9h
system:controller:token-cleaner Role/system:controller:token-cleaner 3d9h
system:persistent-volume-provisioner Role/system:persistent-volume-provisioner 3d9h
Resource: roles.rbac.authorization.k8s.io
NAME CREATED AT
extension-apiserver-authentication-reader 2022-01-26T03:48:38Z
kube-proxy 2022-01-26T03:48:39Z
kubeadm:kubelet-config-1.23 2022-01-26T03:48:38Z
kubeadm:nodes-kubeadm-config 2022-01-26T03:48:38Z
system::leader-locking-kube-controller-manager 2022-01-26T03:48:38Z
system::leader-locking-kube-scheduler 2022-01-26T03:48:38Z
system:controller:bootstrap-signer 2022-01-26T03:48:38Z
system:controller:cloud-provider 2022-01-26T03:48:38Z
system:controller:token-cleaner 2022-01-26T03:48:38Z
system:persistent-volume-provisioner 2022-01-26T03:48:42Z
Resource: secrets
NAME TYPE DATA AGE
attachdetach-controller-token-gnbhb kubernetes.io/service-account-token 3 3d9h
bootstrap-signer-token-m7mcj kubernetes.io/service-account-token 3 3d9h
bootstrap-token-gc2f48 bootstrap.kubernetes.io/token 5 3d9h
bootstrap-token-uu3tw3 bootstrap.kubernetes.io/token 5 3d9h
certificate-controller-token-vtf86 kubernetes.io/service-account-token 3 3d9h
clusterrole-aggregation-controller-token-k85qx kubernetes.io/service-account-token 3 3d9h
coredns-token-h28v8 kubernetes.io/service-account-token 3 3d9h
cronjob-controller-token-8gs87 kubernetes.io/service-account-token 3 3d9h
daemon-set-controller-token-kfd9b kubernetes.io/service-account-token 3 3d9h
default-token-xpvvh kubernetes.io/service-account-token 3 3d9h
deployment-controller-token-r6r8t kubernetes.io/service-account-token 3 3d9h
disruption-controller-token-5cddb kubernetes.io/service-account-token 3 3d9h
endpoint-controller-token-v2vft kubernetes.io/service-account-token 3 3d9h
endpointslice-controller-token-x8tqq kubernetes.io/service-account-token 3 3d9h
endpointslicemirroring-controller-token-tzmrn kubernetes.io/service-account-token 3 3d9h
ephemeral-volume-controller-token-m7hkd kubernetes.io/service-account-token 3 3d9h
expand-controller-token-qtn75 kubernetes.io/service-account-token 3 3d9h
generic-garbage-collector-token-p2f7g kubernetes.io/service-account-token 3 3d9h
horizontal-pod-autoscaler-token-v49fq kubernetes.io/service-account-token 3 3d9h
job-controller-token-zczrl kubernetes.io/service-account-token 3 3d9h
kindnet-token-wt5kt kubernetes.io/service-account-token 3 3d9h
kube-proxy-token-xxpm8 kubernetes.io/service-account-token 3 3d9h
namespace-controller-token-cp8h7 kubernetes.io/service-account-token 3 3d9h
node-controller-token-rzw99 kubernetes.io/service-account-token 3 3d9h
persistent-volume-binder-token-xtv8v kubernetes.io/service-account-token 3 3d9h
pod-garbage-collector-token-2lbvw kubernetes.io/service-account-token 3 3d9h
pv-protection-controller-token-4kmf8 kubernetes.io/service-account-token 3 3d9h
pvc-protection-controller-token-2hj4r kubernetes.io/service-account-token 3 3d9h
replicaset-controller-token-c62mh kubernetes.io/service-account-token 3 3d9h
replication-controller-token-fdqvk kubernetes.io/service-account-token 3 3d9h
resourcequota-controller-token-bb8kt kubernetes.io/service-account-token 3 3d9h
root-ca-cert-publisher-token-kd6kc kubernetes.io/service-account-token 3 3d9h
service-account-controller-token-rxf7w kubernetes.io/service-account-token 3 3d9h
service-controller-token-zq8n2 kubernetes.io/service-account-token 3 3d9h
statefulset-controller-token-jcnxp kubernetes.io/service-account-token 3 3d9h
storage-provisioner-token-xxkvt kubernetes.io/service-account-token 3 3d9h
token-cleaner-token-nnpsb kubernetes.io/service-account-token 3 3d9h
ttl-after-finished-controller-token-zjgvf kubernetes.io/service-account-token 3 3d9h
ttl-controller-token-tgfnz kubernetes.io/service-account-token 3 3d9h
Resource: serviceaccounts
NAME SECRETS AGE
attachdetach-controller 1 3d9h
bootstrap-signer 1 3d9h
certificate-controller 1 3d9h
clusterrole-aggregation-controller 1 3d9h
coredns 1 3d9h
cronjob-controller 1 3d9h
daemon-set-controller 1 3d9h
default 1 3d9h
deployment-controller 1 3d9h
disruption-controller 1 3d9h
endpoint-controller 1 3d9h
endpointslice-controller 1 3d9h
endpointslicemirroring-controller 1 3d9h
ephemeral-volume-controller 1 3d9h
expand-controller 1 3d9h
generic-garbage-collector 1 3d9h
horizontal-pod-autoscaler 1 3d9h
job-controller 1 3d9h
kindnet 1 3d9h
kube-proxy 1 3d9h
namespace-controller 1 3d9h
node-controller 1 3d9h
persistent-volume-binder 1 3d9h
pod-garbage-collector 1 3d9h
pv-protection-controller 1 3d9h
pvc-protection-controller 1 3d9h
replicaset-controller 1 3d9h
replication-controller 1 3d9h
resourcequota-controller 1 3d9h
root-ca-cert-publisher 1 3d9h
service-account-controller 1 3d9h
service-controller 1 3d9h
statefulset-controller 1 3d9h
storage-provisioner 1 3d9h
token-cleaner 1 3d9h
ttl-after-finished-controller 1 3d9h
ttl-controller 1 3d9h
Resource: services
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kube-dns ClusterIP 10.96.0.10 <none> 53/UDP,53/TCP,9153/TCP 3d9h
Resource: statefulsets.apps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment