Split up k8s.yaml

This commit is contained in:
斟酌 鵬兄 2022-03-16 01:56:17 +09:00
parent 9bd7f03301
commit 7fb7f01dc6
2 changed files with 33 additions and 36 deletions

View File

@ -83,39 +83,3 @@ spec:
ports: ports:
- port: 5000 - port: 5000
targetPort: 5000 targetPort: 5000
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: astrojs
namespace: ingress-https
spec:
ingressClassName: nginx
tls:
- hosts:
- astrojs.k8s.astropenguin.net
secretName: any-k8s-astro-prod
rules:
- host: astrojs.k8s.astropenguin.net
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: f-astrojs-default
port:
number: 5000
---
kind: Service
apiVersion: v1
metadata:
name: f-astrojs-default
namespace: ingress-https
spec:
type: ExternalName
externalName: astrojs.default.svc.cluster.local

33
k8s/ingress.yaml Normal file
View File

@ -0,0 +1,33 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: default-astrojs
namespace: ingress-https
spec:
ingressClassName: nginx
tls:
- hosts:
- astrojs.k8s.astropenguin.net
secretName: any-k8s-astro-prod
rules:
- host: astrojs.k8s.astropenguin.net
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: default-astrojs
port:
number: 5000
---
kind: Service
apiVersion: v1
metadata:
name: default-astrojs
namespace: ingress-https
spec:
type: ExternalName
externalName: astrojs.default.svc.cluster.local