Consolidate K8s configuration into single manifest
This commit is contained in:
Родитель
d537f9bf0b
Коммит
e76278e891
|
@ -1,31 +0,0 @@
|
|||
---
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: initializr-ingress
|
||||
namespace: initializr
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: nginx
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
nginx.ingress.kubernetes.io/rewrite-target: /$1
|
||||
spec:
|
||||
rules:
|
||||
- http:
|
||||
paths:
|
||||
- path: /(.*)
|
||||
backend:
|
||||
serviceName: initializr-web
|
||||
servicePort: 80
|
||||
- path: /(api/.*)
|
||||
backend:
|
||||
serviceName: initializr-api
|
||||
servicePort: 80
|
||||
# - path: /config/(.*)
|
||||
# backend:
|
||||
# serviceName: initializr-config-server
|
||||
# servicePort: 8888
|
||||
# - path: /izrs/(.*)
|
||||
# backend:
|
||||
# serviceName: initializr-izrs
|
||||
# servicePort: 80
|
|
@ -3,6 +3,7 @@ apiVersion: apps/v1
|
|||
kind: Deployment
|
||||
metadata:
|
||||
name: initializr-izrs
|
||||
namespace: initializr
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
|
@ -20,3 +21,14 @@ spec:
|
|||
image: localhost:5000/initializr-izrs
|
||||
ports:
|
||||
- containerPort: 80
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: initializr-izrs
|
||||
namespace: initializr
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
selector:
|
||||
app: initializr-izrs
|
|
@ -1,10 +0,0 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: initializr-izrs
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
selector:
|
||||
app: initializr-izrs
|
Загрузка…
Ссылка в новой задаче