Encrypt your database username and password using base64 and running this commands:
echo -n $DB_PASSWORD | base64
echo -n $DB_USERNAME | base64
Encrypt your aws file using base64 and running this command:
cat ~/.aws/credentials | base64
Add these values in the coresponding empty fiels in env-secret.yaml
, aws-secret.yaml
and env-configmap.yaml
.
Load secret files:
kubectl apply -f aws-secret.yaml
kubectl apply -f env-secret.yaml
kubectl apply -f env-configmap.yaml
Apply all other yaml files:
kubectl apply -f .
This optional, enable Horizontal Pod Autoscaler on deployments.
kubectl get all
kubectl logs <podId>