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