Skip to content

Helm

Helm, which is de facto standard package manager for Kubernetes, allows installing applications from parameterized YAML manifests called Helm charts.

To address shortcomings of static YAML manifests we provide the Helm chart to deploy the Starboard Operator. The Helm chart supports all Install Modes.

As an example, let's install the operator in the starboard-system namespace and configure it to select all namespaces, except kube-system and starboard-system:

  1. Clone the chart directory:
    git clone --depth 1 --branch v0.15.20 https://github.com/khulnasoft/starboard.git
    cd starboard
    
    Or add Khulnasoft chart repository:
    helm repo add khulnasoft https://khulnasoft.github.io/helm-charts/
    helm repo update
    
  2. Install the chart from a local directory:
    helm install starboard-operator ./deploy/helm \
      --namespace starboard-system \
      --create-namespace \
      --set="trivy.ignoreUnfixed=true"
    
    Or install the chart from the Khulnasoft chart repository:
    helm install starboard-operator khulnasoft/starboard-operator \
      --namespace starboard-system \
      --create-namespace \
      --set="trivy.ignoreUnfixed=true" \
      --version 0.10.19
    
    There are many values in the chart that can be set to configure Starboard.
  3. Check that the starboard-operator Helm release is created in the starboard-system namespace, and it has status deployed:
    $ helm list -n starboard-system
    NAME                 NAMESPACE           REVISION    UPDATED                                 STATUS      CHART                       APP VERSION
    starboard-operator   starboard-system    1           2021-01-27 20:09:53.158961 +0100 CET    deployed    starboard-operator-0.10.19  0.15.20
    
    To confirm that the operator is running, check that the starboard-operator Deployment in the starboard-system namespace is available and all its containers are ready:
    $ kubectl get deployment -n starboard-system
    NAME                 READY   UP-TO-DATE   AVAILABLE   AGE
    starboard-operator   1/1     1            1           11m
    
    If for some reason it's not ready yet, check the logs of the Deployment for errors:
    kubectl logs deployment/starboard-operator -n starboard-system
    

Uninstall

You can uninstall the operator with the following command:

helm uninstall starboard-operator -n starboard-system

You have to manually delete custom resource definitions created by the helm install command:

Danger

Deleting custom resource definitions will also delete all security reports generated by the operator.

kubectl delete crd vulnerabilityreports.khulnasoft.github.io
kubectl delete crd clustervulnerabilityreports.khulnasoft.github.io
kubectl delete crd configauditreports.khulnasoft.github.io
kubectl delete crd ciskubebenchreports.khulnasoft.github.io
kubectl delete crd kubehunterreports.khulnasoft.github.io
kubectl delete crd clusterconfigauditreports.khulnasoft.github.io
kubectl delete crd clustercompliancereports.khulnasoft.github.io
kubectl delete crd clustercompliancedetailreports.khulnasoft.github.io