diff --git a/.gitignore b/.gitignore index 12fd4e3..ded7f67 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ venv/** .idea/** -**__pycache__** \ No newline at end of file +**__pycache__** +kubectl.exe diff --git a/Dockerfile b/Dockerfile index 6034cbd..a4469b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,8 @@ RUN pip install -r requirements.txt COPY prod.py prod.py COPY src ./src COPY cache ./cache + +# yes, coping them at build time is not ideal, this is a PoC COPY keywords.txt keywords.txt COPY sites.txt sites.txt diff --git a/deployment.yaml b/deployment.yaml new file mode 100644 index 0000000..d6b13ba --- /dev/null +++ b/deployment.yaml @@ -0,0 +1,20 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: optar-deployment + labels: + app: optar +spec: + replicas: 1 + selector: + matchLabels: + app: optar + template: + metadata: + labels: + app: optar + spec: + serviceAccountName: optar-s3-cache-service-account + containers: + - name: optar + image: 705632797485.dkr.ecr.eu-central-1.amazonaws.com/optar:latest