From 0852995947f2e94d0ca00201896b0e6754c76e9c Mon Sep 17 00:00:00 2001 From: LepkoQQ Date: Tue, 10 Sep 2024 13:50:08 +0200 Subject: [PATCH] update kustomize files --- kustomize/deployment.yaml | 21 +++++++++++ kustomize/frontend.yaml | 68 ------------------------------------ kustomize/ingress.yaml | 34 ++++++++++++++++++ kustomize/kustomization.yaml | 4 ++- kustomize/service.yaml | 11 ++++++ 5 files changed, 69 insertions(+), 69 deletions(-) create mode 100644 kustomize/deployment.yaml delete mode 100644 kustomize/frontend.yaml create mode 100644 kustomize/ingress.yaml create mode 100644 kustomize/service.yaml diff --git a/kustomize/deployment.yaml b/kustomize/deployment.yaml new file mode 100644 index 0000000..279ef45 --- /dev/null +++ b/kustomize/deployment.yaml @@ -0,0 +1,21 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: consul-landing + labels: + app: consul-landing +spec: + replicas: 1 + selector: + matchLabels: + app: consul-landing + template: + metadata: + labels: + app: consul-landing + spec: + containers: + - name: consul-landing + image: consul-landing + ports: + - containerPort: 80 diff --git a/kustomize/frontend.yaml b/kustomize/frontend.yaml deleted file mode 100644 index 3c28089..0000000 --- a/kustomize/frontend.yaml +++ /dev/null @@ -1,68 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: consul-landing - labels: - app: consul-landing -spec: - replicas: 1 - selector: - matchLabels: - app: consul-landing - template: - metadata: - labels: - app: consul-landing - spec: - containers: - - name: consul-landing - image: consul-landing - ports: - - containerPort: 80 ---- -apiVersion: v1 -kind: Service -metadata: - name: consul-landing -spec: - selector: - app: consul-landing - ports: - - protocol: TCP - port: 80 - targetPort: 80 ---- -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: consul-landing - annotations: - cert-manager.io/cluster-issuer: "letsencrypt-production" -spec: - ingressClassName: nginx - tls: - - hosts: - - consul.djnd.si - - consul.danesjenovdan.si - secretName: consul-landing-tls - rules: - - host: consul.djnd.si - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: consul-landing - port: - number: 80 - - host: consul.danesjenovdan.si - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: consul-landing - port: - number: 80 diff --git a/kustomize/ingress.yaml b/kustomize/ingress.yaml new file mode 100644 index 0000000..3033818 --- /dev/null +++ b/kustomize/ingress.yaml @@ -0,0 +1,34 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: consul-landing + annotations: + cert-manager.io/cluster-issuer: "letsencrypt-production" +spec: + ingressClassName: nginx + tls: + - hosts: + - consul.djnd.si + - consul.danesjenovdan.si + secretName: consul-landing-tls + rules: + - host: consul.djnd.si + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: consul-landing + port: + number: 80 + - host: consul.danesjenovdan.si + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: consul-landing + port: + number: 80 diff --git a/kustomize/kustomization.yaml b/kustomize/kustomization.yaml index b5c4086..6183a26 100644 --- a/kustomize/kustomization.yaml +++ b/kustomize/kustomization.yaml @@ -2,7 +2,9 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: consul-landing resources: -- frontend.yaml + - deployment.yaml + - ingress.yaml + - service.yaml images: - name: consul-landing newName: rg.fr-par.scw.cloud/djnd/consul-landing diff --git a/kustomize/service.yaml b/kustomize/service.yaml new file mode 100644 index 0000000..2e5740f --- /dev/null +++ b/kustomize/service.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: consul-landing +spec: + selector: + app: consul-landing + ports: + - protocol: TCP + port: 80 + targetPort: 80