core
by NeuVector
Helm chart for NeuVector's core services
About this chart
NeuVector Helm Chart
Helm chart for NeuVector container security's core services.
CRD
Because the CRD (Custom Resource Definition) policies can be deployed before NeuVector's core product, a new 'crd' helm chart is created. The crd template in the 'core' chart is kept for the backward compatibility. Please set crdwebhook.enabled to false, if you use the new 'crd' chart.
Choosing container runtime
Prior to 5.3 release, the user has to specify the correct container runtime type and its socket path. In 5.3.0 release, the enforcer is able to automatically detect the container runtime at its default socket location. The settings of docker/containerd/crio/k8s/bottlerocket become deprecated. If the container runtime socket is not at the default location, please specify it using 'runtimePath' field. In the meantime, the controller does not require the runtime socket to be mounted any more.
Choosing an ingress controller
Set ingressController to nginx or traefik to have the chart automatically add the correct backend-protocol annotations across every ingress-enabled component (manager, controller REST API, federation master/managed, registry adapter). This is independent of each component's ingressClassName, which continues to select the actual Kubernetes IngressClass object.
ingressController: nginx— addsnginx.ingress.kubernetes.io/backend-protocol: "HTTPS"to each enabled Ingress, unless you've already set it yourself.ingressController: traefik— creates a sharedServersTransportobject and addstraefik.ingress.kubernetes.io/service.serversscheme/service.serverstransportto each enabled component's backend Service.ingressController: ""(default) — no automatic annotations; set them yourself via each component'singress.annotations/svc.annotations.
Advanced: traefik.serversTransport.insecureSkipVerify, .serverName, and .rootCAsSecrets remain available to tune backend trust behavior.
Scan caching
Scan caching can be enabled by editing values.yaml or creating below override file and pass them with "-f" option on HELM commands.
cve:
scanner:
volumes:
- name: scan-cache
hostPath:
path: /tmp/
type: ""
volumeMounts:
- mountPath: /tmp/images/caches
name: scan-cache
Configuration
The following table lists the configurable parameters of the NeuVector chart and their default values.
| Parameter | Description | Default | Notes |
|---|---|---|---|
openshift | If deploying in OpenShift, set this to true | false | |
ingressController | Set to nginx or traefik to auto-configure backend-protocol annotations across all ingress-enabled components | "" | |
registry | NeuVector container registry | docker.io | |
tag | image tag for controller enforcer manager | latest | |
oem | OEM release name | nil | |
imagePullSecrets | image pull secret | nil | |
rbac | NeuVector RBAC Manifests are installed when RBAC is enabled | true | Required for Rancher Authentication. |
psp | NeuVector Pod Security Policy when psp policy is enabled | false | |
serviceAccount | Service account name for NeuVector components | default | |
leastPrivilege | Use least privileged service account | false | |
bootstrapPassword | Set password for admin user account if present | false | Random password generated if aws billing is enabled |
autoGenerateCert | Automatically generate certificate or not | true | |
internal.certmanager.enabled | cert-manager is installed for the internal certificates | false | |
internal.certmanager.secretname | Name of the secret to be used for the internal certificates | neuvector-internal | |
internal.autoGenerateCert | Automatically generate internal certificate or not | true | |
internal.autoRotateCert | Automatically rotate internal certificate or not | false | |
defaultValidityPeriod | The default validity period used for certs automatically generated (days) | 365 | |
global.cattle.url | Set the Rancher Server URL | Required for Rancher Authentication. https://<Rancher_URL>/ | |
global.aws.enabled | If true, install AWS billing csp adapter | false | Note: default admin user is disabled when aws market place billing enabled, use secret to create admin-role user to manage NeuVector deployment. |
global.aws.accountNumber | AWS Account Number | nil | Follow AWS subscription instruction |
global.aws.roleName | AWS Role name for billing | nil | Follow AWS subscription instruction |
global.aws.serviceAccount | Service account name for csp adapter | csp | Follow AWS subscription instruction |
global.aws.imagePullSecrets | Pull secret for csp adapter image | nil | Follow AWS subscription instruction |
global.aws.image.repository | csp adapter image repository | neuvector/neuvector-csp-adapter | Follow AWS subscription instruction |
global.aws.image.tag | csp adapter image tag | latest | Follow AWS subscription instruction |
global.aws.image.digest | csp adapter image digest | nil | Follow AWS subscription instruction |
global.aws.image.imagePullPolicy | csp adapter image pull policy | IfNotPresent | Follow AWS subscription instruction |
global.azure.enabled | If true, install Azure billing csp adapter | false | Note: default admin user is disabled when azure market place billing enabled, use secret to create admin-role user to manage NeuVector deployment. |
global.azure.serviceAccount | Service account name for csp adapter | csp | Follow Azure subscription instruction |
global.azure.imagePullSecrets | Pull secret for csp adapter image | nil | Follow Azure subscription instruction |
global.azure.images.neuvector_csp_pod.registry | csp adapter image registry | susellcforazuremarketplace.azurecr.io | Follow Azure subscription instruction |
global.azure.images.neuvector_csp_pod.image | csp adapter image repository | neuvector-billing-azure-by-suse-llc | Follow Azure subscription instruction |
global.azure.images.neuvector_csp_pod.digest | csp adapter image digest | nil | Follow Azure subscription instruction |
global.azure.images.neuvector_csp_pod.imagePullPolicy | csp adapter image pull policy | IfNotPresent | Follow Azure subscription instruction |
controller.enabled | If true, create controller | true | |
controller.prime.enabled | NeuVector prime deployment | false | |
controller.image.repository | controller image repository | neuvector/controller | |
controller.image.imagePullPolicy | controller image pull policy | IfNotPresent | |
controller.image.hash | controller image hash in the format of sha256:xxxx. If present it overwrites the image tag value. | ||
controller.replicas | controller replicas | 3 | |
controller.schedulerName | kubernetes scheduler name | nil | |
controller.affinity | controller affinity rules | ... | spread controllers to different nodes |
controller.topologySpreadConstraints | List of constraints to control Pods spread across the cluster | nil | |
controller.tolerations | List of node taints to tolerate | nil | |
controller.resources | Add resources requests and limits to controller deployment | {} | see examples in values.yaml |
controller.nodeSelector | Enable and specify nodeSelector labels | {} | |
controller.disruptionbudget | controller PodDisruptionBudget. 0 to disable. Recommended value: 2. | 0 | |
controller.priorityClassName | controller priorityClassName. Must exist prior to helm deployment. Leave empty to disable. | nil | |
controller.podLabels | Specify the pod labels. | {} | |
controller.podAnnotations | Specify the pod annotations. | {} | |
controller.env | User-defined environment variables for controller. | [] | |
controller.ranchersso.enabled | If true, enable single sign on for Rancher | false | Required for Rancher Authentication. |
controller.pvc.enabled | If true, enable persistence for controller using PVC | false | Require persistent volume type RWX, and storage 1Gi |
controller.pvc.accessModes | Access modes for the created PVC. | ["ReadWriteMany"] | |
controller.pvc.existingClaim | If false, a new PVC will be created. If a string is provided, an existing PVC with this name will be used. | false | |
controller.pvc.storageClass | Storage Class to be used | default | |
controller.pvc.capacity | Storage capacity | 1Gi | |
controller.searchRegistries | Custom search registries for Admission control | nil | |
controller.azureFileShare.enabled | If true, enable the usage of an existing or statically provisioned Azure File Share | false | |
controller.azureFileShare.secretName | The name of the secret containing the Azure file share storage account name and key | nil | |
controller.azureFileShare.shareName | The name of the Azure file share to use | nil | |
controller.apisvc.ctrlServerPort | Controller REST API service port | 10443 | |
controller.apisvc.type | Controller REST API service type | nil | |
controller.apisvc.nodePort | Controller REST API service NodePort number | nil | |
controller.apisvc.annotations | Add annotations to controller REST API service | {} | |
controller.apisvc.route.enabled | If true, create a OpenShift route to expose the Controller REST API service | false | |
controller.apisvc.route.termination | Specify TLS termination for OpenShift route for Controller REST API service. Possible passthrough, edge, reencrypt | passthrough | |
controller.apisvc.route.host | Set controller REST API service hostname | nil | |
controller.apisvc.route.tls.key | Set controller REST API service PEM format key file | nil | |
controller.apisvc.route.tls.certificate | Set controller REST API service PEM format certificate file | nil | |
controller.apisvc.route.tls.caCertificate | Set controller REST API service CA certificate may be required to establish a certificate chain for validation | nil | |
controller.apisvc.route.tls.destinationCACertificate | Set controller REST API service CA certificate to validate the endpoint certificate | nil | |
controller.certificate.secret | Replace controller REST API certificate using secret if secret name is specified | nil | |
controller.certificate.keyFile | Replace controller REST API certificate key file | tls.key | |
controller.certificate.pemFile | Replace controller REST API certificate pem file | tls.pem | |
controller.federation.mastersvc.type | Multi-cluster primary cluster service type. If specified, the deployment will be used to manage other clusters. Possible values include NodePort, LoadBalancer and ClusterIP. | nil | |
controller.federation.mastersvc.loadBalancerIP | Multi-cluster primary cluster service load balancer IP. If specified, the deployment must also specify controller.federation.mastersvc.type of LoadBalancer. | nil | |
controller.federation.mastersvc.clusterIP | Set clusterIP to be used for mastersvc | nil | |
controller.federation.mastersvc.nodePort | Define a nodePort for mastersvc | nil | Must be a valid NodePort (30000-32767) |
controller.federation.mastersvc.externalTrafficPolicy | Set externalTrafficPolicy to be used for mastersvc | nil | |
controller.federation.mastersvc.internalTrafficPolicy | Set internalTrafficPolicy to be used for mastersvc | nil | |
controller.federation.mastersvc.annotations | Add annotations to Multi-cluster primary cluster REST API service | {} | |
controller.federation.mastersvc.route.enabled | If true, create a OpenShift route to expose the Multi-cluster primary cluster service | false | |
controller.federation.mastersvc.route.host | Set OpenShift route host for primary cluster service | nil | |
controller.federation.mastersvc.route.termination | Specify TLS termination for OpenShift route for Multi-cluster primary cluster service. Possible passthrough, edge, reencrypt | passthrough | |
controller.federation.mastersvc.route.tls.key | Set PEM format key file for OpenShift route for Multi-cluster primary cluster service | nil | |
controller.federation.mastersvc.route.tls.certificate | Set PEM format key certificate file for OpenShift route for Multi-cluster primary cluster service | nil | |
controller.federation.mastersvc.route.tls.caCertificate | Set CA certificate may be required to establish a certificate chain for validation for OpenShift route for Multi-cluster primary cluster service | nil | |
controller.federation.mastersvc.route.tls.destinationCACertificate | Set CA certificate to validate the endpoint certificate for OpenShift route for Multi-cluster primary cluster service | nil | |
controller.federation.mastersvc.ingress.enabled | If true, create ingress for federation master service, must also set ingress host value | false | enable this if ingress controller is installed |
controller.federation.mastersvc.ingress.tls | If true, TLS is enabled for controller federation master ingress service | false | If set, the tls-host used is the one set with controller.federation.mastersvc.ingress.host. |
controller.federation.mastersvc.ingress.host | Must set this host value if ingress is enabled | nil | |
controller.federation.mastersvc.ingress.ingressClassName | To be used instead of the ingress.class annotation if an IngressClass is provisioned | "" | |
controller.federation.mastersvc.ingress.secretName | Name of the secret to be used for TLS-encryption | nil | Secret must be created separately (Let's encrypt, manually) |
controller.federation.mastersvc.ingress.path | Set ingress path | / | If set, it might be necessary to set a rewrite rule in annotations. |
controller.federation.mastersvc.ingress.annotations | Add annotations to ingress to influence behavior | {} | If ingressClassName is nginx, nginx.ingress.kubernetes.io/backend-protocol: "HTTPS" is auto-added unless already set |
controller.federation.managedsvc.type | Multi-cluster managed cluster service type. If specified, the deployment will be managed by the manage |
Deploy core with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has core on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcore is pinned at v2.12.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply