Add cross-section app with base configuration and yc-k8s-test overlay
This commit is contained in:
parent
1d35476b00
commit
c4044fb28b
46
apps/cross-section/base/deployment.yaml
Normal file
46
apps/cross-section/base/deployment.yaml
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: cross-section-static
|
||||||
|
namespace: cross-section
|
||||||
|
labels:
|
||||||
|
app: cross-section-static
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: cross-section-static
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: cross-section-static
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: frontend
|
||||||
|
image: cr.yandex/crp3ccidau046kdj8g9q/cross-section-app:production_e09e648b
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /ping
|
||||||
|
port: 80
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 10
|
||||||
|
failureThreshold: 10
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /ping
|
||||||
|
port: 80
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
periodSeconds: 10
|
||||||
|
failureThreshold: 20
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 100Mi
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: regcred
|
||||||
8
apps/cross-section/base/kustomization.yaml
Normal file
8
apps/cross-section/base/kustomization.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: cross-section
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
# - deployment.yaml
|
||||||
|
# - service.yaml
|
||||||
7
apps/cross-section/base/namespace.yaml
Normal file
7
apps/cross-section/base/namespace.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: cross-section
|
||||||
|
labels:
|
||||||
|
istio-injection: enabled
|
||||||
15
apps/cross-section/base/service.yaml
Normal file
15
apps/cross-section/base/service.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: cross-section-static
|
||||||
|
namespace: cross-section
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
selector:
|
||||||
|
app: cross-section-static
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
10
apps/cross-section/yc-k8s-test/kustomization.yaml
Normal file
10
apps/cross-section/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: cross-section-static
|
||||||
8
apps/cross-section/yc-k8s-test/replicas.yaml
Normal file
8
apps/cross-section/yc-k8s-test/replicas.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: cross-section-static
|
||||||
|
namespace: cross-section
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
@ -9,3 +9,4 @@ 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
|
||||||
Loading…
Reference in New Issue
Block a user