Add mapper app with base configuration and yc-k8s-test overlay

This commit is contained in:
emelinda 2026-04-13 12:44:28 +03:00
parent fb98f21c46
commit c198e955c5
7 changed files with 94 additions and 1 deletions

View File

@ -0,0 +1,45 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: backend
namespace: mapper
labels:
app: backend
spec:
replicas: 3
selector:
matchLabels:
app: backend
template:
metadata:
labels:
app: backend
spec:
containers:
- name: backend
image: cr.yandex/crp3ccidau046kdj8g9q/mapper:prod_b0d05a34
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8000
protocol: TCP
env:
- name: DOCUMENTATION_HOST
value: https://api.sarex.io/documentations/api/v1
- name: FLOW_HOST
value: https://api.sarex.io/flows/api/v1
- name: DJANGO_HOST
value: https://lk.sarex.io/api
- name: NOTE_HOST
value: https://api.sarex.io/notes/api/v1
- name: REDIS_USE
value: "0"
- name: TIMEOUT
value: "120"
resources:
requests:
cpu: "1"
memory: 128Mi
imagePullSecrets:
- name: regcred

View File

@ -0,0 +1,8 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: mapper
resources:
- namespace.yaml
# - deployment.yaml
# - service.yaml

View File

@ -0,0 +1,7 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: mapper
labels:
istio-injection: enabled

View File

@ -0,0 +1,14 @@
---
apiVersion: v1
kind: Service
metadata:
name: backend-service
namespace: mapper
spec:
type: ClusterIP
selector:
app: backend
ports:
- port: 8000
targetPort: 8000
protocol: TCP

View File

@ -0,0 +1,10 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base
patches:
- path: replicas.yaml
target:
kind: Deployment
name: backend

View File

@ -0,0 +1,8 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: backend
namespace: mapper
spec:
replicas: 1

View File

@ -9,4 +9,5 @@ resources:
- ../../apps/reviews/yc-k8s-test - ../../apps/reviews/yc-k8s-test
- ../../apps/projects/yc-k8s-test - ../../apps/projects/yc-k8s-test
- ../../apps/control-interface/yc-k8s-test - ../../apps/control-interface/yc-k8s-test
- ../../apps/cross-section/yc-k8s-test - ../../apps/cross-section/yc-k8s-test
- ../../apps/mapper/yc-k8s-test