Difference between revisions of "Kubectl describe secret"
Jump to navigation
Jump to search
(25 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | kubectl -n kube-system describe secret $(kubectl -n kube-system | + | [[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 | ||
+ | |||
+ | |||
+ | Name: your-helm-4 | ||
+ | Namespace: default | ||
+ | Labels: [[controller.cert-manager.io/fao]]=true | ||
+ | Annotations: [[cert-manager.io]]/alt-names: your.example.com | ||
+ | cert-manager.io/certificate-name: your-helm-4 | ||
+ | cert-manager.io/common-name: | ||
+ | cert-manager.io/ip-sans: | ||
+ | cert-manager.io/uri-sans: | ||
+ | |||
+ | Type: kubernetes.io/tls | ||
+ | |||
+ | Data | ||
+ | ==== | ||
+ | tls.crt: 944 bytes | ||
+ | tls.key: 1675 bytes | ||
+ | |||
== Related == | == Related == | ||
− | * [[kubectl get secret]] | + | * <code>[[kubectl get secret]]</code> |
+ | * [[kubectl get secrets -A]] | ||
+ | * [[Default namespace]] | ||
+ | * [[Base64]] | ||
== See also == | == See also == | ||
− | * {{ | + | * {{Kubernetes secrets}} |
[[Category:Kubectl]] | [[Category:Kubectl]] |
Latest revision as of 19:51, 15 February 2024
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
Name: your-helm-4 Namespace: default Labels: controller.cert-manager.io/fao=true Annotations: cert-manager.io/alt-names: your.example.com cert-manager.io/certificate-name: your-helm-4 cert-manager.io/common-name: cert-manager.io/ip-sans: cert-manager.io/uri-sans: Type: kubernetes.io/tls Data ==== tls.crt: 944 bytes tls.key: 1675 bytes
Related[edit]
See also[edit]
- Kubernetes secrets:
kubectl [ get | create | describe | delete | secret ] secrets
,secret.yml, kind: Secret, secretKeyRef, default-token, imagePullSecrets:, kubernetes.io/dockerconfigjson
Advertising: