mirror of https://github.com/Askill/optar.git
added k8s deployment
This commit is contained in:
parent
dadc693af3
commit
0b346a037f
|
|
@ -1,3 +1,4 @@
|
|||
venv/**
|
||||
.idea/**
|
||||
**__pycache__**
|
||||
**__pycache__**
|
||||
kubectl.exe
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Reference in New Issue