Add control-interface app with base configuration and yc-k8s-test overlay

This commit is contained in:
emelinda 2026-04-13 12:03:25 +03:00
parent b9974c7037
commit aadbe6975f
7 changed files with 78 additions and 1 deletions

View File

@ -0,0 +1,29 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: srx-admin
namespace: control-interface
labels:
app: srx-admin
spec:
replicas: 1
selector:
matchLabels:
app: srx-admin
template:
metadata:
labels:
app: srx-admin
spec:
containers:
- name: srx-admin
image: cr.yandex/crp3ccidau046kdj8g9q/srx-admin:prod_3b9cb250
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 80
protocol: TCP
imagePullSecrets:
- name: regcred

View File

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

View File

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

View File

@ -0,0 +1,14 @@
---
apiVersion: v1
kind: Service
metadata:
name: srx-admin-svc
namespace: control-interface
spec:
type: ClusterIP
selector:
app: srx-admin
ports:
- port: 8080
targetPort: 80
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: srx-admin

View File

@ -0,0 +1,8 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: srx-admin
namespace: control-interface
spec:
replicas: 1

View File

@ -7,4 +7,5 @@ resources:
# apps # apps
- ../../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