kubectl get secret

Jmnote (토론 | 기여)님의 2018년 10월 29일 (월) 14:47 판 (→‎개요)

1 개요

kubectl get secret
kubectl get secrets
$ kubectl get secret
NAME                  TYPE                                  DATA      AGE
default-token-m2lbk   kubernetes.io/service-account-token   3         6m

$ 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

2 같이 보기

3 참고

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