smart48 / larak8

DigitalOcean Kubernetes Deployment of Laravel App
2 stars 3 forks source link

Local is missing PHP Worker / Horizon / Autoscaler / Workspace #4

Closed jasperf closed 4 years ago

jasperf commented 4 years ago

Seems local deployment needs to have PHP worker, horizon and autoscaling set up. Even though we can run local stuff with sms-docker it is important that we can test all locally with minikube. So we need to copy these from the general DO setup and add them to deployments for local usage.

jasperf commented 4 years ago

We do have replicas set in deployment already, but the autoscaler deployment has not been added to local setup. For DO or remote / production setup https://github.com/smart48/smt-deploy/blob/main/autoscaling.yml with

minReplicas: 2
maxReplicas: 20

needs to be tested too. This as we have three replicas set in deployment but minimum 2 in autoscaling. Not sure if that work @rmrbest .

Provisioning does set scaling for nodes at https://github.com/smart48/smt-provision/blob/master/kubernetes.tf with:

kubernetes_autoscale = "true"
kubernetes_min_nodes = 1
kubernetes_max_nodes = 2

and there should be no conflicts there.

jasperf commented 4 years ago

Worker, Workspace and Horizon added.

jasperf commented 4 years ago

Autoscaling added too