From c943dadf17796d7b3622120c00046402198ad0d4 Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 23 Sep 2022 10:21:44 +0200 Subject: [PATCH] Update ingress and service definitions Remove type loadBalancer from service. --- src/main/resources/website/ingress.yaml | 2 +- src/main/resources/website/nginx-service.yaml | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/main/resources/website/ingress.yaml b/src/main/resources/website/ingress.yaml index 545ee71..80647ca 100644 --- a/src/main/resources/website/ingress.yaml +++ b/src/main/resources/website/ingress.yaml @@ -19,6 +19,6 @@ spec: path: "/" backend: service: - name: website-service + name: nginx-service port: number: 80 diff --git a/src/main/resources/website/nginx-service.yaml b/src/main/resources/website/nginx-service.yaml index 548d95c..643f13a 100644 --- a/src/main/resources/website/nginx-service.yaml +++ b/src/main/resources/website/nginx-service.yaml @@ -5,15 +5,12 @@ metadata: labels: app: nginx namespace: default -spec: - type: LoadBalancer - ipFamilyPolicy: PreferDualStack +spec: selector: app: nginx ports: - - port: 80 - targetPort: 80 - name: http - - port: 443 - targetPort: 443 - name: https \ No newline at end of file + - name: nginx-http + port: 80 + - name: nginx-https + port: 443 + \ No newline at end of file