kubectl and helm are installed and configured/etc/hostshelm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
kubectl create namespace ingress-nginx --dry-run=client -o yaml | kubectl apply -f -
helm upgrade --install ingress-nginx ingress-nginx/ingress-nginx \
--namespace ingress-nginx \
--set controller.service.type=NodePort
kubectl get pods -n ingress-nginx
kubectl get service -n ingress-nginx ingress-nginx-controller
80:31502/TCP).Edit your values.yaml for scanner service only:
scanner:
ingress:
enabled: true
className: "nginx"
annotations:
nginx.ingress.kubernetes.io/backend-protocol: "GRPC"
hosts:
- host: scanner.local.k8s
paths:
- path: /
pathType: ImplementationSpecific
tls: [] # Leave empty for local PoC
Edit your values.yaml to enable both scanner and management services on the same local host:
scanner:
ingress:
enabled: true
className: "nginx"
annotations:
nginx.ingress.kubernetes.io/backend-protocol: "GRPC"
hosts:
- host: scanner.local.k8s
paths:
- path: /
pathType: ImplementationSpecific
tls: [] # Leave empty for local PoC
managementService:
ingress:
enabled: true
className: "nginx"
annotations:
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
hosts:
- host: scanner.local.k8s # Same host as scanner
paths:
- path: /ontap
pathType: Prefix
tls: [] # Leave empty for local PoC
With the shared host configuration:
http://scanner.local.k8s/http://scanner.local.k8s/ontap/ontap taking priority over /enabled: true and className: "nginx" are set.nginx.ingress.kubernetes.io/backend-protocol: "GRPC" is required for gRPC on the scanner service.nginx.ingress.kubernetes.io/backend-protocol: "HTTP" is required for WebSocket on the management service.scanner.local.k8s with your desired local hostname if needed.helm upgrade --install my-release visionone-filesecurity/visionone-filesecurity -f values.yaml
my-release and path as appropriate.kubectl get ingress -n visionone-filesecurity
scanner.local.k8s under HOSTS.127.0.0.1minikube ip and use the returned IP/etc/hosts (requires sudo):sudo nano /etc/hosts
127.0.0.1 scanner.local.k8s
scanner.local.k8s:<NodePort>../tmfs scan file:example.txt --tls=false --endpoint scanner.local.k8s:31502
tls section in values.yaml and set up certificates as needed.