Use kustomize and envsubst to generalize k8s config.

Adds a [kustomize](https://github.com/kubernetes-sigs/kustomize) overlay
for a new staging environment. Additionally, adds environment variables
in the place of certain pieces of information that need to be templated.

The K8s README ("deploy/README.md") has been updated to reflect the new
method for applying config.

This commit also removes the configuration for the AWS cluster and
references to AWS in the README.
This commit is contained in:
dandds
2019-11-06 11:19:30 -05:00
parent 3d92ac4840
commit 630469744a
24 changed files with 128 additions and 2246 deletions

View File

@@ -15,7 +15,7 @@ spec:
selector:
matchLabels:
role: web
replicas: 1
replicas: 4
strategy:
type: RollingUpdate
template:
@@ -28,7 +28,7 @@ spec:
fsGroup: 101
containers:
- name: atst
image: pwatat.azurecr.io/atat:latest
image: $CONTAINER_IMAGE
envFrom:
- configMapRef:
name: atst-envvars
@@ -133,7 +133,7 @@ spec:
selector:
matchLabels:
role: worker
replicas: 1
replicas: 2
strategy:
type: RollingUpdate
template:
@@ -146,7 +146,7 @@ spec:
fsGroup: 101
containers:
- name: atst-worker
image: pwatat.azurecr.io/atat:latest
image: $CONTAINER_IMAGE
args: [
"/opt/atat/atst/.venv/bin/python",
"/opt/atat/atst/.venv/bin/celery",
@@ -207,7 +207,7 @@ spec:
fsGroup: 101
containers:
- name: atst-beat
image: pwatat.azurecr.io/atat:latest
image: $CONTAINER_IMAGE
args: [
"/opt/atat/atst/.venv/bin/python",
"/opt/atat/atst/.venv/bin/celery",