++
This commit is contained in:
parent
77e43f93b8
commit
3f6666aa66
15
apps/faas/base/backend-service.yaml
Normal file
15
apps/faas/base/backend-service.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: export-reviews-svc
|
||||
namespace: faas
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: export-reviews
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 8000
|
||||
protocol: TCP
|
||||
64
apps/faas/base/export-reviews.yaml
Normal file
64
apps/faas/base/export-reviews.yaml
Normal file
@ -0,0 +1,64 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: export-reviews
|
||||
namespace: faas
|
||||
labels:
|
||||
app: export-reviews
|
||||
service: export-reviews
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: export-reviews
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: export-reviews
|
||||
service: export-reviews
|
||||
spec:
|
||||
containers:
|
||||
- name: api
|
||||
image: cr.yandex/crp3ccidau046kdj8g9q/export-reviews:prod_c4cae4ee
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8000
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: BASE_HOST
|
||||
value: https://sarex.contour.infra.sarex.tech
|
||||
- name: DJANGO_HOST
|
||||
value: https://sarex.contour.infra.sarex.tech
|
||||
- name: REVIEWS_HOST
|
||||
value: https://sarex.contour.infra.sarex.tech/flows
|
||||
- name: GATEWAY_HOST
|
||||
value: https://sarex.contour.infra.sarex.tech/gateway
|
||||
- name: DOCUMENTATIONS_HOST
|
||||
value: https://sarex.contour.infra.sarex.tech/documentations
|
||||
- name: EAV_HOST
|
||||
value: http://eav-service.eav.svc.cluster.local:8000
|
||||
- name: TRANSMITTALS_INTERNAL_HOST
|
||||
value: http://transmittal-service.transmittal.svc.cluster.local:80/internal/v1
|
||||
- name: DJANGO_TIMEOUT
|
||||
value: "180"
|
||||
- name: REVIEWS_TIMEOUT
|
||||
value: "180"
|
||||
- name: GATEWAY_TIMEOUT
|
||||
value: "60"
|
||||
- name: DOCUMENTATIONS_TIMEOUT
|
||||
value: "60"
|
||||
- name: EAV_TIMEOUT
|
||||
value: "30"
|
||||
- name: TRANSMITTALS_TIMEOUT
|
||||
value: "30"
|
||||
- name: TIMEOUT
|
||||
value: "180"
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: "1"
|
||||
memory: 1Gi
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
8
apps/faas/base/kustomization.yaml
Normal file
8
apps/faas/base/kustomization.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: faas
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- export-reviews.yaml
|
||||
- backend-service.yaml
|
||||
7
apps/faas/base/namespace.yaml
Normal file
7
apps/faas/base/namespace.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: faas
|
||||
labels:
|
||||
istio-injection: enabled
|
||||
10
apps/faas/yc-k8s-test/kustomization.yaml
Normal file
10
apps/faas/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: frontend
|
||||
8
apps/faas/yc-k8s-test/replicas.yaml
Normal file
8
apps/faas/yc-k8s-test/replicas.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: backend
|
||||
namespace: faas
|
||||
spec:
|
||||
replicas: 1
|
||||
@ -23,4 +23,5 @@ resources:
|
||||
- ../../apps/system-log/yc-k8s-test
|
||||
- ../../apps/remarks/yc-k8s-test
|
||||
- ../../apps/notes/yc-k8s-test
|
||||
- ../../apps/pm/yc-k8s-test
|
||||
- ../../apps/pm/yc-k8s-test
|
||||
- ../../apps/faas/yc-k8s-test
|
||||
Loading…
Reference in New Issue
Block a user