Skip to content

Secret

TLS secret

YAML
apiVersion: v1
kind: Secret
metadata:
  name: bs-cert
  namespace: default
  selfLink: /api/v1/namespaces/default/secrets/bs-cert
type: kubernetes.io/tls
data:
  tls.crt: LS0tLS1CRUdJTixxxxxxxxxx==
  tls.key: LS0tLSxxxxxxxxxxxxxxxxxxx=

Regular ecret

YAML
apiVersion: v1
kind: Secret
metadata:
  name: secret-name
  namespace: default
data:
  somefilename.data: some secret data here
Back to top