Add control-interface app with base configuration and yc-k8s-test overlay
This commit is contained in:
parent
b9974c7037
commit
aadbe6975f
29
apps/control-interface/base/deployment.yaml
Normal file
29
apps/control-interface/base/deployment.yaml
Normal 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
|
||||
|
||||
8
apps/control-interface/base/kustomization.yaml
Normal file
8
apps/control-interface/base/kustomization.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: control-interface
|
||||
resources:
|
||||
- namespace.yaml
|
||||
# - deployment.yaml
|
||||
# - service.yaml
|
||||
7
apps/control-interface/base/namespace.yaml
Normal file
7
apps/control-interface/base/namespace.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: control-interface
|
||||
labels:
|
||||
istio-injection: enabled
|
||||
14
apps/control-interface/base/service.yaml
Normal file
14
apps/control-interface/base/service.yaml
Normal 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
|
||||
10
apps/control-interface/yc-k8s-test/kustomization.yaml
Normal file
10
apps/control-interface/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: srx-admin
|
||||
8
apps/control-interface/yc-k8s-test/replicas.yaml
Normal file
8
apps/control-interface/yc-k8s-test/replicas.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: srx-admin
|
||||
namespace: control-interface
|
||||
spec:
|
||||
replicas: 1
|
||||
@ -8,3 +8,4 @@ resources:
|
||||
# apps
|
||||
- ../../apps/reviews/yc-k8s-test
|
||||
- ../../apps/projects/yc-k8s-test
|
||||
- ../../apps/control-interface/yc-k8s-test
|
||||
Loading…
Reference in New Issue
Block a user