Merge branch 'staging' into cloudzero-k8s
This commit is contained in:
@@ -29,6 +29,13 @@ spec:
|
||||
containers:
|
||||
- name: atst
|
||||
image: $CONTAINER_IMAGE
|
||||
env:
|
||||
- name: UWSGI_PROCESSES
|
||||
value: "2"
|
||||
- name: UWSGI_THREADS
|
||||
value: "2"
|
||||
- name: UWSGI_ENABLE_THREADS
|
||||
value: "1"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: atst-envvars
|
||||
@@ -50,11 +57,11 @@ spec:
|
||||
mountPath: "/config"
|
||||
resources:
|
||||
requests:
|
||||
memory: 200Mi
|
||||
cpu: 400m
|
||||
memory: 400Mi
|
||||
cpu: 940m
|
||||
limits:
|
||||
memory: 200Mi
|
||||
cpu: 400m
|
||||
memory: 400Mi
|
||||
cpu: 940m
|
||||
- name: nginx
|
||||
image: nginx:alpine
|
||||
ports:
|
||||
@@ -86,10 +93,10 @@ spec:
|
||||
resources:
|
||||
requests:
|
||||
memory: 20Mi
|
||||
cpu: 10m
|
||||
cpu: 25m
|
||||
limits:
|
||||
memory: 20Mi
|
||||
cpu: 10m
|
||||
cpu: 25m
|
||||
volumes:
|
||||
- name: nginx-client-ca-bundle
|
||||
configMap:
|
||||
@@ -309,6 +316,7 @@ metadata:
|
||||
namespace: atat
|
||||
spec:
|
||||
loadBalancerIP: 13.92.235.6
|
||||
externalTrafficPolicy: Local
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8342
|
||||
@@ -329,6 +337,7 @@ metadata:
|
||||
namespace: atat
|
||||
spec:
|
||||
loadBalancerIP: 23.100.24.41
|
||||
externalTrafficPolicy: Local
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8343
|
||||
|
@@ -10,6 +10,7 @@ data:
|
||||
callable = app
|
||||
module = app
|
||||
socket = /var/run/uwsgi/uwsgi.socket
|
||||
plugins-dir = /usr/lib/uwsgi
|
||||
plugin = python3
|
||||
plugin = logfile
|
||||
virtualenv = /opt/atat/atst/.venv
|
||||
|
16
deploy/overlays/staging/autoscaling.yml
Normal file
16
deploy/overlays/staging/autoscaling.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
apiVersion: autoscaling/v2beta1
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: atst
|
||||
spec:
|
||||
minReplicas: 1
|
||||
maxReplicas: 2
|
||||
---
|
||||
apiVersion: autoscaling/v2beta1
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: atst-worker
|
||||
spec:
|
||||
minReplicas: 1
|
||||
maxReplicas: 2
|
@@ -5,6 +5,7 @@ resources:
|
||||
- namespace.yml
|
||||
- reset-cron-job.yml
|
||||
patchesStrategicMerge:
|
||||
- autoscaling.yml
|
||||
- ports.yml
|
||||
- envvars.yml
|
||||
- flex_vol.yml
|
||||
|
Reference in New Issue
Block a user