From 48a657b01a5eda458a6a191a5151167d5be45130 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Wed, 12 Feb 2025 11:04:46 +0100 Subject: [PATCH] fix(deploy): adding correct listen port --- kustomization.yaml | 3 +++ resources/deployment.yaml | 7 ++++++- resources/svc.yaml | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/kustomization.yaml b/kustomization.yaml index 35b444f..10dfa43 100644 --- a/kustomization.yaml +++ b/kustomization.yaml @@ -6,6 +6,9 @@ resources: - resources/svc.yaml configMapGenerator: +- name: varnish-env + literals: + - VARNISH_SIZE=1G - name: varnish-config files: - files/default.vcl diff --git a/resources/deployment.yaml b/resources/deployment.yaml index 0325f77..d1a1b74 100644 --- a/resources/deployment.yaml +++ b/resources/deployment.yaml @@ -16,8 +16,13 @@ spec: spec: containers: - name: varnish - image: reg.cadoles.com/dh/library/varnish:7.6.1 + image: reg.cadoles.com/dh/library/varnish:7.6.1-alpine imagePullPolicy: IfNotPresent + envFrom: + - configMapRef: + name: varnish-env + env: + - VARNISH_HTTP_PORT=8080 ports: - containerPort: 8080 volumeMounts: diff --git a/resources/svc.yaml b/resources/svc.yaml index 667231f..f89d40d 100644 --- a/resources/svc.yaml +++ b/resources/svc.yaml @@ -7,5 +7,5 @@ spec: app: varnish ports: - protocol: TCP - port: 80 + port: 8080 targetPort: 8080