From 7fb7f01dc6e563fbff20744e20063793160c39b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Wed, 16 Mar 2022 01:56:17 +0900 Subject: [PATCH] Split up k8s.yaml --- k8s.yaml => k8s/deployments.yaml | 36 -------------------------------- k8s/ingress.yaml | 33 +++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 36 deletions(-) rename k8s.yaml => k8s/deployments.yaml (74%) create mode 100644 k8s/ingress.yaml 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