From 090c16131e090b105a27aeee6f5a7fb53d04de6a Mon Sep 17 00:00:00 2001 From: tuna Date: Thu, 5 Sep 2024 16:48:43 +0200 Subject: [PATCH] will redo again --- manifests/blog-app/certificate.yaml | 24 ------------------- manifests/blog-app/clusterIssuer.yaml | 15 ------------ .../istio-gateway-virtualService.yaml | 22 ++++++++--------- 3 files changed, 11 insertions(+), 50 deletions(-) delete mode 100644 manifests/blog-app/certificate.yaml delete mode 100644 manifests/blog-app/clusterIssuer.yaml diff --git a/manifests/blog-app/certificate.yaml b/manifests/blog-app/certificate.yaml deleted file mode 100644 index 6f473d6..0000000 --- a/manifests/blog-app/certificate.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - name: blog-app-domain-cert-prod - namespace: istio-system -spec: - secretName: blog-app-domain-cert-prod - duration: 2160h #90d - renewBefore: 360h # 15d - isCA: false - privateKey: - algorithm: RSA - encoding: PKCS1 - size: 2048 - usages: - - server auth - - client auth - dnsNames: - - "blogapp.magdalani.com" - - "www.blogapp.magdalani.com" - issuerRef: - name: letsencrypt-prod-cluster - kind: ClusterIssuer - group: cert-manager.io \ No newline at end of file diff --git a/manifests/blog-app/clusterIssuer.yaml b/manifests/blog-app/clusterIssuer.yaml deleted file mode 100644 index 55f5135..0000000 --- a/manifests/blog-app/clusterIssuer.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: cert-manager.io/v1 -kind: ClusterIssuer -metadata: - name: letsencrypt-prod-cluster - namespace: istio-system -spec: - acme: - email: tunacinsoy@gmail.com - server: https://acme-v02.api.letsencrypt.org/directory - privateKeySecretRef: - name: letsencrypt-prod-cluster - solvers: - - http01: - ingress: - class: istio diff --git a/manifests/blog-app/istio-gateway-virtualService.yaml b/manifests/blog-app/istio-gateway-virtualService.yaml index 34ae4f5..7487963 100644 --- a/manifests/blog-app/istio-gateway-virtualService.yaml +++ b/manifests/blog-app/istio-gateway-virtualService.yaml @@ -17,17 +17,17 @@ spec: # hosts: ["myblog.com"]: Accepts traffic only for myblog.com hosts: - "*" - tls: - httpsRedirect: false # Handle redirect in the VirtualService - - port: - number: 443 - name: https - protocol: HTTPS - tls: - mode: SIMPLE - credentialName: blog-app-domain-cert-prod - hosts: - - "blogapp.magdalani.com" + # tls: + # httpsRedirect: false # Handle redirect in the VirtualService + # - port: + # number: 443 + # name: https + # protocol: HTTPS + # tls: + # mode: SIMPLE + # credentialName: blog-app-domain-cert-prod + # hosts: + # - "blogapp.magdalani.com" --- apiVersion: networking.istio.io/v1 kind: VirtualService