Search
Varnish Helm Chart

NodePort

NodePort extends over ClusterIP by automatically opening a port on the node, itself, and configuring forwarding to the appropriate ClusterIP. Unlike ClusterIP, NodePort can be accessed from any other server within the same network. By default, NodePort is randomized within the range of 30000–32767.

Basic configuration

To access Varnish Enterprise using NodePort, set service.type to NodePort:

---
server:
  # ...previous configurations

  service:
    enabled: true
    type: "NodePort"

Configuring a static node port

The port chosen by NodePort can be configured by specifying server.service.http.nodePort and server.service.https.nodePort for HTTP and HTTPS, respectively. These ports must still be within the range allowed by Kubernetes.

---
server:
  # ...previous configurations
  service:
    enabled: true
    type: "NodePort"

    http:
      nodePort: "30080"

    https:
      nodePort: "30443"