Consolidate K8s configuration into single manifest

This commit is contained in:
Chris Cheetham 2021-04-13 08:19:16 -04:00
Родитель d537f9bf0b
Коммит e76278e891
3 изменённых файлов: 12 добавлений и 41 удалений

Просмотреть файл

@ -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