hostPort
can be used to expose Varnish Enterprise directly on the node it is running
to reduce overhead introduced by Kubernetes’ service mesh.
To access Varnish Enterprise via hostPort, set server.http.hostPort
, and server.tls.hostPort
:
---
server:
# ...previous configurations
http:
port: 80
hostPort: 80
tls:
port: 443
hostPort: 443
Note: port
must also be configured to match hostPort
.
While hostPort can be used with other deployment types, it is recommended to be used with DaemonSet, which guarantees the service is available on all nodes.