"Kubectl get secret"의 두 판 사이의 차이

4번째 줄: 4번째 줄:
;kubectl get secrets
;kubectl get secrets


<source lang='console'>
$ kubectl get secret
NAME                  TYPE                                  DATA      AGE
default-token-m2lbk  kubernetes.io/service-account-token  3        6m
</source>
----
<source lang='console'>
<source lang='console'>
$ kubectl get secrets
$ kubectl get secrets
31번째 줄: 25번째 줄:
   uid: cfee02d6-c137-11e5-8d73-42010af00002
   uid: cfee02d6-c137-11e5-8d73-42010af00002
type: Opaque
type: Opaque
</source>
----
<source lang='console'>
$ kubectl get secret
NAME                  TYPE                                  DATA      AGE
default-token-m2lbk  kubernetes.io/service-account-token  3        6m
</source>
<source lang='console'>
$ kubectl describe secret
Name:        default-token-m2lbk
Namespace:    default
Labels:      <none>
Annotations:  kubernetes.io/service-account.name=default
              kubernetes.io/service-account.uid=0f31d2ed-db3d-11e8-a205-0242ac110010
Type:  kubernetes.io/service-account-token
Data
====
ca.crt:    1066 bytes
namespace:  7 bytes
token:      eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6ImRlZmF1bHQtdG9rZW4tbTJsYmsiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoiZGVmYXVsdCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjBmMzFkMmVkLWRiM2QtMTFlOC1hMjA1LTAyNDJhYzExMDAxMCIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpkZWZhdWx0OmRlZmF1bHQifQ.rU4oSi6lIvezzT34l7zTVaxs23D2nzqFOuTQL1qkLPzcSelEp5XgPPL8HMI7VJxOoGcz_wOFJSE73w3O9zpGvb-tC01DaqOOOF3sG-Q4Q6FNf1oQ5TDaN1yLKnMFPEJh08sHsej5FHt01TzHM7RfMeJHc-6qCK2kX30_ND1UxaqvlpEPdHwulonVmTA0TAaZ9ZdYQSPdblFew_BaGnH3c2UjJBAyUy62rFT92znn31G4Q2gBNekLw4BWKa4n2NkSWNoxYrzEFYgFIs42cmKAth_Neh4GEgnE1mkqqxKFxW_1ZVsZFfD1v7w6zMim2_6quuvh-hsZb-OYnHpTu0QQSA
</source>
</source>



2018년 10월 29일 (월) 14:48 판

1 개요

kubectl get secret
kubectl get secrets
$ kubectl get secrets
NAME                  TYPE                                  DATA      AGE
db-user-pass          Opaque                                2         51s
$ kubectl get secret mysecret -o yaml
apiVersion: v1
data:
  username: YWRtaW4=
  password: MWYyZDFlMmU2N2Rm
kind: Secret
metadata:
  creationTimestamp: 2016-01-22T18:41:56Z
  name: mysecret
  namespace: default
  resourceVersion: "164619"
  selfLink: /api/v1/namespaces/default/secrets/mysecret
  uid: cfee02d6-c137-11e5-8d73-42010af00002
type: Opaque

$ kubectl get secret
NAME                  TYPE                                  DATA      AGE
default-token-m2lbk   kubernetes.io/service-account-token   3         6m
$ kubectl describe secret
Name:         default-token-m2lbk
Namespace:    default
Labels:       <none>
Annotations:  kubernetes.io/service-account.name=default
              kubernetes.io/service-account.uid=0f31d2ed-db3d-11e8-a205-0242ac110010

Type:  kubernetes.io/service-account-token

Data
====
ca.crt:     1066 bytes
namespace:  7 bytes
token:      eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6ImRlZmF1bHQtdG9rZW4tbTJsYmsiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoiZGVmYXVsdCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjBmMzFkMmVkLWRiM2QtMTFlOC1hMjA1LTAyNDJhYzExMDAxMCIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpkZWZhdWx0OmRlZmF1bHQifQ.rU4oSi6lIvezzT34l7zTVaxs23D2nzqFOuTQL1qkLPzcSelEp5XgPPL8HMI7VJxOoGcz_wOFJSE73w3O9zpGvb-tC01DaqOOOF3sG-Q4Q6FNf1oQ5TDaN1yLKnMFPEJh08sHsej5FHt01TzHM7RfMeJHc-6qCK2kX30_ND1UxaqvlpEPdHwulonVmTA0TAaZ9ZdYQSPdblFew_BaGnH3c2UjJBAyUy62rFT92znn31G4Q2gBNekLw4BWKa4n2NkSWNoxYrzEFYgFIs42cmKAth_Neh4GEgnE1mkqqxKFxW_1ZVsZFfD1v7w6zMim2_6quuvh-hsZb-OYnHpTu0QQSA

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}