Editing Kind: Secret
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | + | ||
+ | https://kubernetes.io/docs/concepts/configuration/secret/#secret-types | ||
+ | [[type: Opaque]] | ||
+ | [[type: kubernetes.io/service-account-token]] | ||
+ | |||
+ | |||
https://kubernetes.io/docs/concepts/configuration/secret/#secret-types | https://kubernetes.io/docs/concepts/configuration/secret/#secret-types | ||
− | + | Opaque arbitrary user-defined data | |
+ | [[kubernetes.io/service-account-token]] ServiceAccount token | ||
+ | kubernetes.io/dockercfg serialized ~/.dockercfg file | ||
+ | kubernetes.io/dockerconfigjson serialized ~/.docker/config.json file | ||
+ | [[kubernetes.io/basic-auth]] credentials for basic authentication | ||
+ | kubernetes.io/ssh-auth credentials for SSH authentication | ||
+ | kubernetes.io/tls data for a TLS client or server | ||
+ | bootstrap.kubernetes.io/token bootstrap token data | ||
− | == | + | == Example == |
https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/ | https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/ | ||
kubectl apply -f - <<EOF | kubectl apply -f - <<EOF | ||
Line 15: | Line 27: | ||
annotations: | annotations: | ||
kubernetes.io/service-account.name: default | kubernetes.io/service-account.name: default | ||
− | type: | + | type: kubernetes.io/service-account-token |
EOF | EOF | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Related == | == Related == |
Advertising: