Helm Installation
1. Prerequisites
- Kubernetes 1.19+
- Helm 3.8+ (Supports OCI)
- PV/PVC Support (For data persistence)
2. Install Chart
# Export configuration for customization
CHART_VERSION="<CHART_VERSION>"
helm show values oci://registry-1.docker.io/shiyuecamus/ng-gateway-chart \
--version "${CHART_VERSION}" \
> values.yaml
# Install Release
helm install ng-gateway oci://registry-1.docker.io/shiyuecamus/ng-gateway-chart \
--version "${CHART_VERSION}" \
-f values.yaml \
--create-namespace \
--namespace ng3. Verify Installation
Check Pod status:
kubectl get pods -n ngCheck Service (Get access address):
kubectl get svc -n ng3.1 Local Access
When the Service type is ClusterIP and you don't want to configure Ingress/NodePort temporarily, it is recommended to use kubectl port-forward to open an access channel locally (suitable for development/troubleshooting).
- Find Gateway Service Name:
kubectl get svc -n ngWhen the default release name is ng-gateway, the Service is usually:
ng-gateway-service
- Port Forwarding (Map in-cluster port to local
8978/8979, aligning with Docker/macOS default ports):
# HTTP (Local 8978 -> Cluster service 8978)
kubectl -n ng port-forward svc/ng-gateway-service 8978:8978
# HTTPS (Optional; only if you enabled web.ssl.enabled)
kubectl -n ng port-forward svc/ng-gateway-service 8979:8979- Health Check & Access:
curl -fsS "http://127.0.0.1:8978/health" && echo- UI:
http://127.0.0.1:8978/ - API:
http://127.0.0.1:8978/api - Default Account/Password:
system_admin / system_admin
Precautions
port-forwarddefaults to listening only on127.0.0.1; if you really need access from other machines in the LAN, you can add--address 0.0.0.0(please evaluate security risks).- If you modified
gateway.config.web.port/gateway.config.web.ssl.portin the Chart, please synchronize the target port on the right side of the command above (e.g.,8978:<web.port>).
3.2 View Logs
# Recommended to use label selector (avoid dependency on specific resource names)
kubectl logs -n ng -l "app.kubernetes.io/component=gateway" -f --tail=2004. Configuration Description
Key configuration items description. For detailed configuration, please refer to values.yaml.
Image Configuration
gateway:
image:
registry: '' # Configure if using private registry
repository: shiyuecamus/ng-gateway
tag: 'latest'Persistence
Please ensure persistence is enabled and correct storageClass is configured for production environments.
persistence:
gatewayData:
enabled: true
size: 10Gi
storageClass: '' # Leave empty to use default storage class
gatewayDrivers:
enabled: true
size: 2Gi
gatewayPlugins:
enabled: true
size: 2GiService Exposure (Service & Ingress)
Defaults to ClusterIP. If external access is needed, NodePort or Ingress can be used.
NodePort Example:
gateway:
service:
type: NodePort
nodePort:
http: 30080Ingress Example:
ingress:
enabled: true
hosts:
- host: gateway.example.com5. Uninstall
helm uninstall ng-gateway -n ngNote
PVCs are not deleted by default to prevent data loss. If you need to clear completely, please delete PVCs manually.
