Deploy MySQL on Kubernetes, secrets from yaml

It looks like when we creating the Secrets not from a command kubectl create secret generic --from-literal, but from yaml:

apiVersion: v1
kind: Secret
  name: mysql-db-url
type: Opaque
  database: a29kZWtsb3VkX2RiNgo=

we have the task incomplete without reason.

Hi @alexeysmail,

Please send your failed task under the “Review” section and paste the link here.


Hi mmkmou_KodeKloud,

Sorry, I can’t. I have redone it yet. Only replace the secrets yaml definition with “kubectl create secret”. Other yaml definition (deploy, svc, pv, pvc) are the same.
Deploy MySQL on Kubernetes Sep 6, 2022 9:44:57 AM 1200 600 Success

1 Like