Tutorial
Kubernetes with Helm
Packaging is the xorappsec-deploy repo. The image is built from xorappsec.
-
Build and load the image into the cluster (kind / minikube / your registry):
cd xorappsec docker build -t xorappsec:1.0.0 . # kind load docker-image xorappsec:1.0.0
-
export XORAPPSEC_MGMT_TOKEN="$(openssl rand -hex 32)" cd ../xorappsec-deploy helm install xorappsec ./helm/xorappsec \ --set image.tag=1.0.0 \ --set upstream=http://my-app:80 \ --set mgmtToken="$XORAPPSEC_MGMT_TOKEN" \ --set failOpen=false \ --set persistence.enabled=true
- Expose the data Service (port 80 → 8080) via your Ingress or Gateway. Do not Ingress :9090.
- Port-forward management to tune:
kubectl port-forward svc/xorappsec 9090:9090then open with the Bearer token. - Confirm
/readyon the data port and scrape/metricsfrom the management port on the cluster network.
Raw YAML instead of Helm: k8s/deployment.yaml. Change the Secret before going live.