How To Build a CI/CD Pipeline for Kubernetes Stateful Applications | by Nic Vermande | Jan, 2022

base
job.yaml
kustomization.yaml
marvel_deploy.yaml
marvel_svc.yaml
mongodbcommunity_cr.yaml
ondat_sc.yaml
overlay
dev
job.yaml
kustomization.yaml
marvel_deploy.yaml
mongodbcommunity_cr.yaml
name_reference.yaml
ondat_sc.yaml
kustomize build overlay/dev | kubectl apply -f -
FROM python:3.9

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt

RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

COPY ./app /code/app

CMD ["gunicorn", "--conf", "app/gunicorn_conf.py", "--bind", "0.0.0.0:80", "app.main:app"]

Leave a Comment