Difference between revisions of "Kubectl describe secret"
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
kubectl get secret | kubectl get secret | ||
NAME TYPE DATA AGE | NAME TYPE DATA AGE | ||
− | default-token-4jn4b kubernetes.io/service-account-token 3 25d | + | [[default-token]]-4jn4b [[kubernetes.io/service-account-token]] 3 25d |
Revision as of 22:24, 23 October 2023
Default namespace secrets:
kubectl describe secret kubectl describe secrets kubectl describe secret -A
kubectl describe secret YourSecretName
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
- Kubernetes secrets:
kubectl [ get | create | describe | delete | secret ] secrets
,secret.yml, kind: Secret, secretKeyRef, default-token, imagePullSecrets:, kubernetes.io/dockerconfigjson
Advertising: