Add mapper app with base configuration and yc-k8s-test overlay
This commit is contained in:
parent
fb98f21c46
commit
c198e955c5
45
apps/mapper/base/deployment.yaml
Normal file
45
apps/mapper/base/deployment.yaml
Normal 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
|
||||||
8
apps/mapper/base/kustomization.yaml
Normal file
8
apps/mapper/base/kustomization.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: mapper
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
# - deployment.yaml
|
||||||
|
# - service.yaml
|
||||||
7
apps/mapper/base/namespace.yaml
Normal file
7
apps/mapper/base/namespace.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: mapper
|
||||||
|
labels:
|
||||||
|
istio-injection: enabled
|
||||||
14
apps/mapper/base/service.yaml
Normal file
14
apps/mapper/base/service.yaml
Normal 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
|
||||||
10
apps/mapper/yc-k8s-test/kustomization.yaml
Normal file
10
apps/mapper/yc-k8s-test/kustomization.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../base
|
||||||
|
patches:
|
||||||
|
- path: replicas.yaml
|
||||||
|
target:
|
||||||
|
kind: Deployment
|
||||||
|
name: backend
|
||||||
8
apps/mapper/yc-k8s-test/replicas.yaml
Normal file
8
apps/mapper/yc-k8s-test/replicas.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: backend
|
||||||
|
namespace: mapper
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
@ -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
|
||||||
Loading…
Reference in New Issue
Block a user