13 lines
349 B
YAML
13 lines
349 B
YAML
|
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/
|