Difference between revisions of "Kubectl get secret"

From wikieduonline
Jump to navigation Jump to search
Line 22: Line 22:
 
  grafana-token-fsxtt            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
 
  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
  
 
== Related terms ==
 
== Related terms ==

Revision as of 21:12, 4 December 2021

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

Related terms

See also

Advertising: