dnoland1 / neuvector-helm

HELM chart to install NeuVector container cluster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NeuVector Helm charts

A collection of Helm charts for deploying NeuVector product in Kubernetes and Openshift clusters.

Installing charts

Helm Charts

This repository contains three Helm charts

Chart Description
core to deploy NeuVector container security core services.
crd to deploy CRD services before installing NeuVector container security platform
monitor to deploy monitoring services, such as Prometheus exporter

IMPORTANT - Each chart has a set of configuration values, especially for the 'core' chart. Review the Helm chart configuration values here and make any required changes to the values.yaml file for your deployment.

Adding chart repo

$ helm repo add neuvector https://neuvector.github.io/neuvector-helm/
$ helm search repo neuvector/core

Kubernetes

  • Create the NeuVector namespace.
$ kubectl create namespace neuvector
  • Create a new service account if you don't want to use the 'default'. Specify the service account name in charts' values.yaml file.
$ kubectl create serviceaccount neuvector -n neuvector
  • Configure Kubernetes to pull from the NeuVector container registry.
$ kubectl create secret docker-registry regsecret -n neuvector --docker-server=https://index.docker.io/v1/ --docker-username=your-name --docker-password=your-password --docker-email=your-email

Where ’your-name’ is your registry username, ’your-password’ is your registry password, ’your-email’ is your email.

To install the chart with the release name my-release and image pull secret:

$ helm install my-release --namespace neuvector neuvector/core  --set imagePullSecrets=regsecret

RedHat OpenShift

  • Create a new project.
$ oc new-project neuvector
  • Create a new service account if you don't want to use the 'default'. Specify the service account name in charts' values.yaml file.
$ oc create serviceaccount neuvector -n neuvector
  • Grant Service Account Access to the Privileged SCC. Please replace the service account name that you plan to use.
$ oc -n neuvector adm policy add-scc-to-user privileged -z default
  • Configure Openshift to pull from the NeuVector container registry.
$ oc create secret docker-registry regsecret -n neuvector --docker-server=https://index.docker.io/v1/ --docker-username=your-name --docker-password=your-password --docker-email=your-email

To install the chart with the release name my-release:

$ helm install my-release --namespace neuvector neuvector/core --set openshift=true,imagePullSecrets=regsecret,crio.enabled=true

To install the chart with the release name my-release and your private registry:

$ helm install my-release --namespace neuvector neuvector/core --set openshift=true,imagePullSecrets=regsecret,crio.enabled=true,registry=your-private-registry

If you are using a private registry, and want to enable the updater cronjob, please create a script, run it as a cronjob before midnight or the updater daily schedule.

Rolling upgrade

$ helm upgrade my-release --set imagePullSecrets=regsecret,tag=4.4.0 neuvector/core

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Using private registry

If you are using a private registry, you need pull NeuVector images of the specified version to your own registry and add registry name when installing the chart.

$ helm install my-release --namespace neuvector neuvector/core --set registry=your-private-registry

To keep the vulnerability database up-to-date, you want to create a script, run it as a cronjob to pull the updater and scanner images periodically to your own registry.

$ docker login docker.io
$ docker pull docker.io/neuvector/updater
$ docker logout docker.io

$ oc login -u <user_name>
# this user_name is the one when you install neuvector

$ docker login -u <user_name> -p `oc whoami -t` docker-registry.default.svc:5000
$ docker tag docker.io/neuvector/updater docker-registry.default.svc:5000/neuvector/updater
$ docker push docker-registry.default.svc:5000/neuvector/updater
$ docker logout docker-registry.default.svc:5000

Migration

If you are using the previous way to install charts from the source directly, after adding the Helm repo, you can upgrade the current installation by given the same chart name.

helm upgrade my-release neuvector/core --namespace neuvector --set tag=4.1.0

About

HELM chart to install NeuVector container cluster

License:Apache License 2.0


Languages

Language:Go 89.6%Language:Mustache 10.4%