diff --git a/configmap.yaml b/configmap.yaml new file mode 100644 index 0000000..b966a99 --- /dev/null +++ b/configmap.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: ConfigMap +metadata: +name: pozdrav-app-config +data: +KLJUC1: "vr" +KLJUC2: "vr2" diff --git a/deployment.yaml b/deployment.yaml new file mode 100644 index 0000000..1b7a2db Binary files /dev/null and b/deployment.yaml differ diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..5719f1e --- /dev/null +++ b/dockerfile @@ -0,0 +1,11 @@ +FROM python:3.12-slim + +WORKDIR /app + +COPY requirements.txt . + +RUN pip install --no-cache-dir -r requirements.txt + +EXPOSE 7000 + +CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7000"] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..3516f3d --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +fastapi==0.135.2 +uvicorn[standard]==0.29.0 \ No newline at end of file diff --git a/service.yaml b/service.yaml new file mode 100644 index 0000000..46b33a2 Binary files /dev/null and b/service.yaml differ