Guia-Tutorial-kubernetes/files/yaml-del-pelado/14-secret.yaml

13 lines
349 B
YAML
Raw Normal View History

2022-09-19 18:31:05 +02:00
apiVersion: v1
kind: Secret
metadata:
name: db-credentials
type: Opaque
data:
username: YWRtaW4=
password: c3VwM3JwYXNzdzByZAo=
# Esto se puede crear a mano:
# kubectl create secret generic db-credentials --from-literal=username=admin --from-literal=password=sup3rpassw0rd
# Docs: https://kubernetes.io/es/docs/concepts/configuration/secret/