commit 7fb7f01dc6e563fbff20744e20063793160c39b9
| author | 斟酌 鵬兄 <tgckpg@gmail.com> |
| date | 2022-03-15T16:56:17Z |
| subject | Split up k8s.yaml |
commit 7fb7f01dc6e563fbff20744e20063793160c39b9
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date: 2022-03-15T16:56:17Z
Split up k8s.yaml
---
k8s.yaml => k8s/deployments.yaml | 36 ------------------------------------
k8s/ingress.yaml | 33 +++++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 36 deletions(-)
diff --git a/k8s.yaml b/k8s/deployments.yaml
similarity index 74%
rename from k8s.yaml
rename to k8s/deployments.yaml
index 30cccc9..36be384 100644
--- a/k8s.yaml
+++ b/k8s/deployments.yaml
@@ -83,39 +83,3 @@ spec:
ports:
- port: 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
diff --git a/k8s/ingress.yaml b/k8s/ingress.yaml
new file mode 100644
index 0000000..1971d8c
--- /dev/null
+++ b/k8s/ingress.yaml
@@ -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