kubectl describe secret

From wikieduonline
Revision as of 18:29, 13 February 2024 by Welcome (talk | contribs)
Jump to navigation Jump to search

Default namespace secrets:

kubectl describe secret
kubectl describe secrets
kubectl describe secret -A


kubectl describe secret YourSecretName
k describe secret -n amazon-cloudwatch amazon-cloudwatch-observability-controller-manager-service-cert
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-4jn4b   kubernetes.io/service-account-token   3      25d


kubectl describe secrets -n kubernetes-dashboard
kubectl describe secret YourSecretName -n your-namespace
Name:         YourSecretName
Namespace:    your-namespace
Labels:       cert-manager.io/next-private-key=true
Annotations:  <none>

Type:  Opaque

Data
====
tls.key:  1704 bytes


Related

See also

Advertising: