core

by NeuVector

Helm chartv2.12.0App 5.7.0Verified publisher

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 — adds nginx.ingress.kubernetes.io/backend-protocol: "HTTPS" to each enabled Ingress, unless you've already set it yourself.
  • ingressController: traefik — creates a shared ServersTransport object and adds traefik.ingress.kubernetes.io/service.serversscheme / service.serverstransport to each enabled component's backend Service.
  • ingressController: "" (default) — no automatic annotations; set them yourself via each component's ingress.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.

ParameterDescriptionDefaultNotes
openshiftIf deploying in OpenShift, set this to truefalse
ingressControllerSet to nginx or traefik to auto-configure backend-protocol annotations across all ingress-enabled components""
registryNeuVector container registrydocker.io
tagimage tag for controller enforcer managerlatest
oemOEM release namenil
imagePullSecretsimage pull secretnil
rbacNeuVector RBAC Manifests are installed when RBAC is enabledtrueRequired for Rancher Authentication.
pspNeuVector Pod Security Policy when psp policy is enabledfalse
serviceAccountService account name for NeuVector componentsdefault
leastPrivilegeUse least privileged service accountfalse
bootstrapPasswordSet password for admin user account if presentfalseRandom password generated if aws billing is enabled
autoGenerateCertAutomatically generate certificate or nottrue
internal.certmanager.enabledcert-manager is installed for the internal certificatesfalse
internal.certmanager.secretnameName of the secret to be used for the internal certificatesneuvector-internal
internal.autoGenerateCertAutomatically generate internal certificate or nottrue
internal.autoRotateCertAutomatically rotate internal certificate or notfalse
defaultValidityPeriodThe default validity period used for certs automatically generated (days)365
global.cattle.urlSet the Rancher Server URLRequired for Rancher Authentication. https://<Rancher_URL>/
global.aws.enabledIf true, install AWS billing csp adapterfalseNote: default admin user is disabled when aws market place billing enabled, use secret to create admin-role user to manage NeuVector deployment.
global.aws.accountNumberAWS Account NumbernilFollow AWS subscription instruction
global.aws.roleNameAWS Role name for billingnilFollow AWS subscription instruction
global.aws.serviceAccountService account name for csp adaptercspFollow AWS subscription instruction
global.aws.imagePullSecretsPull secret for csp adapter imagenilFollow AWS subscription instruction
global.aws.image.repositorycsp adapter image repositoryneuvector/neuvector-csp-adapterFollow AWS subscription instruction
global.aws.image.tagcsp adapter image taglatestFollow AWS subscription instruction
global.aws.image.digestcsp adapter image digestnilFollow AWS subscription instruction
global.aws.image.imagePullPolicycsp adapter image pull policyIfNotPresentFollow AWS subscription instruction
global.azure.enabledIf true, install Azure billing csp adapterfalseNote: default admin user is disabled when azure market place billing enabled, use secret to create admin-role user to manage NeuVector deployment.
global.azure.serviceAccountService account name for csp adaptercspFollow Azure subscription instruction
global.azure.imagePullSecretsPull secret for csp adapter imagenilFollow Azure subscription instruction
global.azure.images.neuvector_csp_pod.registrycsp adapter image registrysusellcforazuremarketplace.azurecr.ioFollow Azure subscription instruction
global.azure.images.neuvector_csp_pod.imagecsp adapter image repositoryneuvector-billing-azure-by-suse-llcFollow Azure subscription instruction
global.azure.images.neuvector_csp_pod.digestcsp adapter image digestnilFollow Azure subscription instruction
global.azure.images.neuvector_csp_pod.imagePullPolicycsp adapter image pull policyIfNotPresentFollow Azure subscription instruction
controller.enabledIf true, create controllertrue
controller.prime.enabledNeuVector prime deploymentfalse
controller.image.repositorycontroller image repositoryneuvector/controller
controller.image.imagePullPolicycontroller image pull policyIfNotPresent
controller.image.hashcontroller image hash in the format of sha256:xxxx. If present it overwrites the image tag value.
controller.replicascontroller replicas3
controller.schedulerNamekubernetes scheduler namenil
controller.affinitycontroller affinity rules...spread controllers to different nodes
controller.topologySpreadConstraintsList of constraints to control Pods spread across the clusternil
controller.tolerationsList of node taints to toleratenil
controller.resourcesAdd resources requests and limits to controller deployment{}see examples in values.yaml
controller.nodeSelectorEnable and specify nodeSelector labels{}
controller.disruptionbudgetcontroller PodDisruptionBudget. 0 to disable. Recommended value: 2.0
controller.priorityClassNamecontroller priorityClassName. Must exist prior to helm deployment. Leave empty to disable.nil
controller.podLabelsSpecify the pod labels.{}
controller.podAnnotationsSpecify the pod annotations.{}
controller.envUser-defined environment variables for controller.[]
controller.ranchersso.enabledIf true, enable single sign on for RancherfalseRequired for Rancher Authentication.
controller.pvc.enabledIf true, enable persistence for controller using PVCfalseRequire persistent volume type RWX, and storage 1Gi
controller.pvc.accessModesAccess modes for the created PVC.["ReadWriteMany"]
controller.pvc.existingClaimIf false, a new PVC will be created. If a string is provided, an existing PVC with this name will be used.false
controller.pvc.storageClassStorage Class to be useddefault
controller.pvc.capacityStorage capacity1Gi
controller.searchRegistriesCustom search registries for Admission controlnil
controller.azureFileShare.enabledIf true, enable the usage of an existing or statically provisioned Azure File Sharefalse
controller.azureFileShare.secretNameThe name of the secret containing the Azure file share storage account name and keynil
controller.azureFileShare.shareNameThe name of the Azure file share to usenil
controller.apisvc.ctrlServerPortController REST API service port10443
controller.apisvc.typeController REST API service typenil
controller.apisvc.nodePortController REST API service NodePort numbernil
controller.apisvc.annotationsAdd annotations to controller REST API service{}
controller.apisvc.route.enabledIf true, create a OpenShift route to expose the Controller REST API servicefalse
controller.apisvc.route.terminationSpecify TLS termination for OpenShift route for Controller REST API service. Possible passthrough, edge, reencryptpassthrough
controller.apisvc.route.hostSet controller REST API service hostnamenil
controller.apisvc.route.tls.keySet controller REST API service PEM format key filenil
controller.apisvc.route.tls.certificateSet controller REST API service PEM format certificate filenil
controller.apisvc.route.tls.caCertificateSet controller REST API service CA certificate may be required to establish a certificate chain for validationnil
controller.apisvc.route.tls.destinationCACertificateSet controller REST API service CA certificate to validate the endpoint certificatenil
controller.certificate.secretReplace controller REST API certificate using secret if secret name is specifiednil
controller.certificate.keyFileReplace controller REST API certificate key filetls.key
controller.certificate.pemFileReplace controller REST API certificate pem filetls.pem
controller.federation.mastersvc.typeMulti-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.loadBalancerIPMulti-cluster primary cluster service load balancer IP. If specified, the deployment must also specify controller.federation.mastersvc.type of LoadBalancer.nil
controller.federation.mastersvc.clusterIPSet clusterIP to be used for mastersvcnil
controller.federation.mastersvc.nodePortDefine a nodePort for mastersvcnilMust be a valid NodePort (30000-32767)
controller.federation.mastersvc.externalTrafficPolicySet externalTrafficPolicy to be used for mastersvcnil
controller.federation.mastersvc.internalTrafficPolicySet internalTrafficPolicy to be used for mastersvcnil
controller.federation.mastersvc.annotationsAdd annotations to Multi-cluster primary cluster REST API service{}
controller.federation.mastersvc.route.enabledIf true, create a OpenShift route to expose the Multi-cluster primary cluster servicefalse
controller.federation.mastersvc.route.hostSet OpenShift route host for primary cluster servicenil
controller.federation.mastersvc.route.terminationSpecify TLS termination for OpenShift route for Multi-cluster primary cluster service. Possible passthrough, edge, reencryptpassthrough
controller.federation.mastersvc.route.tls.keySet PEM format key file for OpenShift route for Multi-cluster primary cluster servicenil
controller.federation.mastersvc.route.tls.certificateSet PEM format key certificate file for OpenShift route for Multi-cluster primary cluster servicenil
controller.federation.mastersvc.route.tls.caCertificateSet CA certificate may be required to establish a certificate chain for validation for OpenShift route for Multi-cluster primary cluster servicenil
controller.federation.mastersvc.route.tls.destinationCACertificateSet CA certificate to validate the endpoint certificate for OpenShift route for Multi-cluster primary cluster servicenil
controller.federation.mastersvc.ingress.enabledIf true, create ingress for federation master service, must also set ingress host valuefalseenable this if ingress controller is installed
controller.federation.mastersvc.ingress.tlsIf true, TLS is enabled for controller federation master ingress servicefalseIf set, the tls-host used is the one set with controller.federation.mastersvc.ingress.host.
controller.federation.mastersvc.ingress.hostMust set this host value if ingress is enablednil
controller.federation.mastersvc.ingress.ingressClassNameTo be used instead of the ingress.class annotation if an IngressClass is provisioned""
controller.federation.mastersvc.ingress.secretNameName of the secret to be used for TLS-encryptionnilSecret must be created separately (Let's encrypt, manually)
controller.federation.mastersvc.ingress.pathSet ingress path/If set, it might be necessary to set a rewrite rule in annotations.
controller.federation.mastersvc.ingress.annotationsAdd 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.typeMulti-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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcore is pinned at v2.12.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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