Skip to content

Latest commit

 

History

History

Setup Kubernetes Environment

Edit Kubernetes Configmaps and Secrets

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 Kubernetes Environment

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 .

kubernetescomponentsloading

Enable Horizontal Scaling In Kubernetes

This optional, enable Horizontal Pod Autoscaler on deployments.

Check status of all resources (services, delpoyments, pods, hpa)

kubectl get all

kubernetesresourcesstatus

Check pods logs

kubectl logs <podId>

kubernetespodslogs