Kubespec Logo kubespec.dev

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=

Other useful resources