Search
Varnish Helm Chart

Installing Varnish Enterprise with a license file

Introduction

This guide shows how to deploy Varnish Enterprise on Kubernetes using the official public Helm chart and your license file.

Prerequisites

  • Kubernetes cluster (1.19+)
  • Helm 3.x installed
  • Varnish Enterprise license file (provided separately)

Installation Steps

Creating the license secret

First, create a Kubernetes secret containing your Varnish Enterprise license file:

kubectl create secret generic varnish-enterprise-license \
  --from-file=varnish-enterprise.lic=/path/to/your/varnish-enterprise.lic

Creating a values.yaml file

Create a values.yaml file with the following content:

server:
  extraVolumes:
    - name: varnish-enterprise-license
      secret:
        secretName: varnish-enterprise-license

  extraVolumeMounts:
    - name: varnish-enterprise-license
      mountPath: /etc/varnish/varnish-enterprise.lic
      subPath: varnish-enterprise.lic
      readOnly: true

  vclConfig: |
    vcl 4.1;

    backend default {
      .host = "www.example.com";
      .port = "80";
    }

    sub vcl_backend_fetch {
      set bereq.http.Host = "www.example.com";
    }

Available Helm chart versions can be found at: https://hub.docker.com/r/varnish/varnish-enterprise/tags

Installing the Helm chart

Install the Helm chart using the OCI registry:

helm install varnish-enterprise oci://registry-1.docker.io/varnish/varnish-enterprise --version 1.7.4 -f values.yaml

Verifying the installation

Check that the pods are running and inspect the logs:

kubectl get pods
kubectl logs -l app.kubernetes.io/name=varnish-enterprise -f

Upgrading

To upgrade an existing installation:

helm upgrade varnish-enterprise oci://registry-1.docker.io/varnish/varnish-enterprise --version 1.7.4 -f values.yaml

Uninstalling

To remove the installation:

helm uninstall varnish-enterprise
kubectl delete secret varnish-enterprise-license

Resources


®Varnish Software, Wallingatan 12, 111 60 Stockholm, Organization nr. 556805-6203