v1 · Cluster Resource
Secret
Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.
Click on Property Name to see the description, and Pink Types to expand schema.
Looking for some examples?
There are 2 examples of Secret that you can use as a starting point to create your own.
kind: Secret apiVersion: v1 metadata: name: database-connection data: # this value is base64 encoded, actual content is postgres://postgres:123456@127.0.0.1:5432/dummy DATABASE_URL: cG9zdGdyZXM6Ly9wb3N0Z3JlczoxMjM0NTZAMTI3LjAuMC4xOjU0MzIvZHVtbXk=
apiVersion: v1
kind: Secret
metadata:
name: default-token-ffw2t
annotations:
kubernetes.io/service-account.name: default
kubernetes.io/service-account.uid: a4961e57-aec8-4a40-8977-7525997442e7
type: kubernetes.io/service-account-token
data:
ca.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJkekNDQVIyZ0F3SUJBZ0lCQURBS0JnZ3Foa2pPUFFRREFqQWpNU0V3SHdZRFZRUUREQmhyTTNNdGMyVnkKZG1WeUxXTmhRREUyTnpJM09ERXdNVFl3SGhjTk1qTXdNVEF6TWpFeU16TTJXaGNOTXpJeE1qTXhNakV5TXpNMgpXakFqTVNFd0h3WURWUVFEREJock0zTXRjMlZ5ZG1WeUxXTmhRREUyTnpJM09ERXdNVFl3V1RBVEJnY3Foa2pPClBRSUJCZ2dxaGtqT1BRTUJCd05DQUFSWnM0MWRsb2wxelNDUXFERE8ra0VLenJZODRiWmFiTHJ2Nmk5MDRmUjUKT2lCT0xibW1lRkNaMjZWZGFSZXVNOE55SnJHSkZWNFlGT1VvMXNOL0c1S1FvMEl3UURBT0JnTlZIUThCQWY4RQpCQU1DQXFRd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZEJnTlZIUTRFRmdRVVJseitSYVFZRCtibnhMTi8zZmUrCmd2bWVLclV3Q2dZSUtvWkl6ajBFQXdJRFNBQXdSUUlnZEZ3WWx3Rmd0TmlGZi9tdXRJdURKZjk1ZDBaUkpEZkUKdDFnK242eWhiYWNDSVFELz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