kubectl get secret
Jump to navigation
Jump to search
This article is a Draft. Help us to complete it.
kubectl get secret --namespace default grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo Tjp67Ib3c2PxvGoD6SH1pjTtnlq6X4XvrXo4xxx
kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep service-controller-token | awk '{print $1}')
kubectl get secret NAME TYPE DATA AGE default-token-kb4hm kubernetes.io/service-account-token 3 3h15m grafana Opaque 3 169m grafana-test-token-j4jgj kubernetes.io/service-account-token 3 169m grafana-token-fsxtt kubernetes.io/service-account-token 3 169m sh.helm.release.v1.grafana.v1 helm.sh/release.v1 1 169m
kubectl get secret --namespace default NAME TYPE DATA AGE default-token-kb4hm kubernetes.io/service-account-token 3 3h13m grafana Opaque 3 167m grafana-test-token-j4jgj kubernetes.io/service-account-token 3 167m grafana-token-fsxtt kubernetes.io/service-account-token 3 167m sh.helm.release.v1.grafana.v1 helm.sh/release.v1 1 167m
kubectl get secret NAME TYPE DATA AGE default-token-wdzsn kubernetes.io/service-account-token 3 2d23h metrics-server-token-cwzgk kubernetes.io/service-account-token 3 2d5h sh.helm.release.v1.metrics-server.v1 helm.sh/release.v1 1 2d5h
kubectl get secret -n kube-system
NAME TYPE DATA AGE admin-user-token-8mwp5 kubernetes.io/service-account-token 3 2d5h attachdetach-controller-token-w5pvm kubernetes.io/service-account-token 3 2d23h aws-cloud-provider-token-5dk62 kubernetes.io/service-account-token 3 2d23h aws-node-token-lkqvj kubernetes.io/service-account-token 3 2d23h certificate-controller-token-dwhlr kubernetes.io/service-account-token 3 2d23h clusterrole-aggregation-controller-token-j9kcz kubernetes.io/service-account-token 3 2d23h coredns-token-t69l7 kubernetes.io/service-account-token 3 2d23h cronjob-controller-token-m7jkm kubernetes.io/service-account-token 3 2d23h daemon-set-controller-token-69rdz kubernetes.io/service-account-token 3 2d23h default-token-z9vs8 kubernetes.io/service-account-token 3 2d23h deployment-controller-token-vrfdp kubernetes.io/service-account-token 3 2d23h disruption-controller-token-8zzgr kubernetes.io/service-account-token 3 2d23h eks-vpc-resource-controller-token-v9dd7 kubernetes.io/service-account-token 3 2d23h endpoint-controller-token-2fjkq kubernetes.io/service-account-token 3 2d23h endpointslice-controller-token-jfbvz kubernetes.io/service-account-token 3 2d23h endpointslicemirroring-controller-token-rvzsv kubernetes.io/service-account-token 3 2d23h ephemeral-volume-controller-token-ktpbl kubernetes.io/service-account-token 3 2d23h expand-controller-token-zjdrp kubernetes.io/service-account-token 3 2d23h generic-garbage-collector-token-46dmh kubernetes.io/service-account-token 3 2d23h horizontal-pod-autoscaler-token-x4ptb kubernetes.io/service-account-token 3 2d23h job-controller-token-6bbpn kubernetes.io/service-account-token 3 2d23h kube-proxy-token-x9md9 kubernetes.io/service-account-token 3 2d23h namespace-controller-token-8rw2g kubernetes.io/service-account-token 3 2d23h node-controller-token-tbhlj kubernetes.io/service-account-token 3 2d23h persistent-volume-binder-token-xsf66 kubernetes.io/service-account-token 3 2d23h pod-garbage-collector-token-fb9zk kubernetes.io/service-account-token 3 2d23h pv-protection-controller-token-sbvqz kubernetes.io/service-account-token 3 2d23h pvc-protection-controller-token-b6gtg kubernetes.io/service-account-token 3 2d23h replicaset-controller-token-jj4mp kubernetes.io/service-account-token 3 2d23h replication-controller-token-64z6b kubernetes.io/service-account-token 3 2d23h resourcequota-controller-token-pvv9x kubernetes.io/service-account-token 3 2d23h root-ca-cert-publisher-token-76wkq kubernetes.io/service-account-token 3 2d23h service-account-controller-token-d7qkk kubernetes.io/service-account-token 3 2d23h service-controller-token-qljq5 kubernetes.io/service-account-token 3 2d23h statefulset-controller-token-jl4rm kubernetes.io/service-account-token 3 2d23h ttl-after-finished-controller-token-hp6h9 kubernetes.io/service-account-token 3 2d23h ttl-controller-token-28vng kubernetes.io/service-account-token 3 2d23h vpc-resource-controller-token-6rtfp kubernetes.io/service-account-token 3 2d23h
Related terms
See also
kubectl get
: [all
|componentstatus | pods | apiservices | events
|event
|nodes
|replicaset
|services
|svc
|namespaces
|hpa
|secret | deployments | serviceaccounts | endpoints | daemonset | networkpolicy
],kubectl get -h
kubectl
: [cp | config | create
|delete
|edit | explain |
apply
|exec
|get
|set
|drain | uncordon | rolling-update
|rollout
|logs
|run
|auth
|label | annotate
|version
|top
|diff
|debug
|replace
|describe
|port-forward | proxy
|scale
|rollout
|api-resources
| expose deployment | expose | patch | attach | get endpoints | ~/.kube/config | kubectl logs --help | kubectl --help, kubectl-convert, kubectl autoscale, kubectl.kubernetes.io
Advertising: