diff --git a/apps/cross-section/base/deployment.yaml b/apps/cross-section/base/deployment.yaml new file mode 100644 index 0000000..4b4c6d9 --- /dev/null +++ b/apps/cross-section/base/deployment.yaml @@ -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 diff --git a/apps/cross-section/base/kustomization.yaml b/apps/cross-section/base/kustomization.yaml new file mode 100644 index 0000000..44a7415 --- /dev/null +++ b/apps/cross-section/base/kustomization.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: cross-section +resources: + - namespace.yaml +# - deployment.yaml +# - service.yaml diff --git a/apps/cross-section/base/namespace.yaml b/apps/cross-section/base/namespace.yaml new file mode 100644 index 0000000..ac9376b --- /dev/null +++ b/apps/cross-section/base/namespace.yaml @@ -0,0 +1,7 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: cross-section + labels: + istio-injection: enabled diff --git a/apps/cross-section/base/service.yaml b/apps/cross-section/base/service.yaml new file mode 100644 index 0000000..555507e --- /dev/null +++ b/apps/cross-section/base/service.yaml @@ -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 diff --git a/apps/cross-section/yc-k8s-test/kustomization.yaml b/apps/cross-section/yc-k8s-test/kustomization.yaml new file mode 100644 index 0000000..8ff84ff --- /dev/null +++ b/apps/cross-section/yc-k8s-test/kustomization.yaml @@ -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 diff --git a/apps/cross-section/yc-k8s-test/replicas.yaml b/apps/cross-section/yc-k8s-test/replicas.yaml new file mode 100644 index 0000000..eff7632 --- /dev/null +++ b/apps/cross-section/yc-k8s-test/replicas.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: cross-section-static + namespace: cross-section +spec: + replicas: 1 diff --git a/clusters/yc-k8s-test/kustomization.yaml b/clusters/yc-k8s-test/kustomization.yaml index 403c3d2..5764ef1 100644 --- a/clusters/yc-k8s-test/kustomization.yaml +++ b/clusters/yc-k8s-test/kustomization.yaml @@ -8,4 +8,5 @@ resources: # apps - ../../apps/reviews/yc-k8s-test - ../../apps/projects/yc-k8s-test - - ../../apps/control-interface/yc-k8s-test \ No newline at end of file + - ../../apps/control-interface/yc-k8s-test + - ../../apps/cross-section/yc-k8s-test \ No newline at end of file