added k8s deployment

This commit is contained in:
Askill 2024-07-16 18:10:13 +02:00
parent dadc693af3
commit 0b346a037f
3 changed files with 24 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
venv/**
.idea/**
**__pycache__**
**__pycache__**
kubectl.exe

View File

@ -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

20
deployment.yaml Normal file
View File

@ -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