apiVersion: v1
kind: Secret
metadata:
name: mysql-db-password
#type: Opaque means that from kubernetes's point of view the contents of this Secret is unstructured.
#It can contain arbitrary key-value pairs.
type: Opaque
data:
# Output of echo -n 'Redhat1449' | base64
db-password: ZGJwYXNzd29yZDEx
Step-03: Update secret in MySQL Deployment for DB Password¶
# Create All Objects
kubectl apply -f kube-manifests/
# List Pods
kubectl get pods
# Get Public IP of Application
kubectl get svc
# Access Application
http://<External-IP-from-get-service-output>
Username: admin101
Password: password101