All Projects → deep-security → smartcheck-helm

deep-security / smartcheck-helm

Licence: other
Helm chart to deploy Trend Micro Deep Security Smart Check.

Programming Languages

Mustache
554 projects
shell
77523 projects

Projects that are alternatives of or similar to smartcheck-helm

helm-github-pages
Publish your Kubernetes Helm Charts on GitHub Pages. DEPRECATED: please use https://github.com/helm/chart-releaser
Stars: ✭ 22 (-46.34%)
Mutual labels:  helm-charts
charts
Public helm charts
Stars: ✭ 15 (-63.41%)
Mutual labels:  helm-charts
anchore-charts
Helm charts for Anchore tools and services
Stars: ✭ 38 (-7.32%)
Mutual labels:  helm-charts
sitewhere-k8s
SiteWhere / Kubernetes integration including Helm Charts
Stars: ✭ 17 (-58.54%)
Mutual labels:  helm-charts
helm-charts
Official Centrifugo Helm chart for Kubernetes
Stars: ✭ 16 (-60.98%)
Mutual labels:  helm-charts
stackstorm-ha
K8s Helm Chart (βeta!) that codifies StackStorm (aka "IFTTT for Ops" https://stackstorm.com/) Highly Availability fleet as a simple to use reproducible infrastructure-as-code app
Stars: ✭ 74 (+80.49%)
Mutual labels:  helm-charts
multitenant-microservices-demo
Full Isolation in Multi-Tenant SaaS with Kubernetes + Istio
Stars: ✭ 57 (+39.02%)
Mutual labels:  helm-charts
helm-charts
Helm Charts
Stars: ✭ 26 (-36.59%)
Mutual labels:  helm-charts
helm-charts
Helm Charts
Stars: ✭ 24 (-41.46%)
Mutual labels:  helm-charts
helm-charts
Dex Helm chart repository
Stars: ✭ 16 (-60.98%)
Mutual labels:  helm-charts
charts
☸️ Helm Charts for YOURLS
Stars: ✭ 12 (-70.73%)
Mutual labels:  helm-charts
helm-charts
Official Helm Chart Repository for InfluxData Applications
Stars: ✭ 133 (+224.39%)
Mutual labels:  helm-charts
khelm
A Helm chart templating CLI, kpt function and kustomize plugin
Stars: ✭ 46 (+12.2%)
Mutual labels:  helm-charts
radondb-clickhouse-kubernetes
Open Source,High Availability Cluster,based on ClickHouse
Stars: ✭ 54 (+31.71%)
Mutual labels:  helm-charts
helm-charts
docs.renovatebot.com/helm-charts
Stars: ✭ 51 (+24.39%)
Mutual labels:  helm-charts
redis-developer.github.io
The Home of Redis Developers
Stars: ✭ 28 (-31.71%)
Mutual labels:  helm-charts
data-center-helm-charts
Helm charts for Atlassian's Data Center products
Stars: ✭ 77 (+87.8%)
Mutual labels:  helm-charts
k8s-ovpn-chart
[DEPRECATED] Helm chart for a private OpenVPN server
Stars: ✭ 19 (-53.66%)
Mutual labels:  helm-charts
charts
My helm charts
Stars: ✭ 15 (-63.41%)
Mutual labels:  helm-charts
gradle-helm-plugin
A Gradle plugin for building, publishing and managing Helm charts.
Stars: ✭ 42 (+2.44%)
Mutual labels:  helm-charts

Deep Security Smart Check

Getting started

Getting an activation code

If you enrolled your Deep Security Smart Check installation with a valid Trend Micro Cloud One - Container Security Scanner API key, you do not need an activation code. You can use Deep Security Smart Check without limitation.

Otherwise, we recommend that you register for a 30-day trial license code. Deep Security Smart Check will operate without an activation code; however, malware pattern updates will not be available and you will see a warning message in the administration console.

Contact us for full product licensing and pricing details.

Installing Helm

Deep Security Smart Check uses the helm package manager for Kubernetes.

Helm 3

We recommend using Helm 3 (version 3.0.1 or later) to install Deep Security Smart Check if this is possible for you.

There is a handy guide that will help you get started. In most cases installing Helm 3 involves running a single command.

If you have already installed Deep Security Smart Check using Helm 2, you will need to migrate your install. The Helm folks have a helpful blog post that details this process.

Helm 2

If you have to use Helm 2, you will need helm version v2.14.1 or later. Expand this section for details.

There's a handy quickstart that will help you get started, or if you like living dangerously:

curl -L https://git.io/get_helm.sh | bash

Helm has a cluster-side component called tiller that needs to be installed as well.

Make sure that your kubectl context is set correctly to point to your cluster:

kubectl config current-context

If your kubectl context is not pointing to your cluster, use kubectl config get-contexts and kubectl config use-context to set it, or if you are using Google Cloud Platform follow the instructions in the Connect to the cluster dialog available by clicking the Connect button beside your cluster information in the console.

Configure a service account for tiller and install:

kubectl create serviceaccount \
  --namespace kube-system \
  tiller

kubectl create clusterrolebinding tiller-cluster-role \
  --clusterrole=cluster-admin \
  --serviceaccount=kube-system:tiller

helm init --service-account tiller

Use helm version to confirm that you have at least version v2.14.1 of the client and server installed.

Note: the commands above will give tiller full cluster administrator privileges. Review Securing your Helm Installation for help on what to consider when setting up Helm in your cluster.

Installing Deep Security Smart Check

The Helm chart for Deep Security Smart Check is hosted in a public repository on Github.

To install the latest version of Deep Security Smart Check into the default Kubernetes namespace:

  1. Create a file called overrides.yaml that will contain your site-specific settings.

    ## activationCode is the product activation code.
    ##
    ## Default value: (none)
    # activationCode: YOUR-CODE-HERE
    
    # While it's still possible to use activationCode to activate Deep Security Smart Check,
    # we strongly encourage you to enroll your Deep Security Smart Check installation with a valid Container Security Scanner API key.
    # You can find more detail on how to get a Scanner API key in https://cloudone.trendmicro.com/docs/container-security/?topicid=sc-integrate
    cloudOne:
     apiKey: YOUR-CONTAINER-SECURITY-SCANNER-API-KEY
    
    auth:
      ## secretSeed is used as part of the password generation process for
      ## all auto-generated internal passwords, ensuring that each installation of
      ## Deep Security Smart Check has different passwords.
      ##
      ## Default value: {must be provided by the installer}
      secretSeed: YOUR-SECRET-HERE
  2. Use helm to install Deep Security Smart Check with your site-specific settings:

    helm install \
      --values overrides.yaml \
      deepsecurity-smartcheck \
      https://github.com/deep-security/smartcheck-helm/archive/master.tar.gz

Experienced helm users will note that we are using deepsecurity-smartcheck as the helm release name in these examples. There is no requirement to use this release name.

Note: This installs Deep Security Smart Check with an in-cluster database, which requires a persistent volume. Your cluster must support creating persistent volumes to work with the in-cluster database. See Use an external database to learn how to use an external database with Deep Security Smart Check.

Connecting to Deep Security Smart Check

The install process will display instructions for obtaining the initial username and password and for connecting to Deep Security Smart Check.

Upgrading Deep Security Smart Check

To upgrade an existing installation of Deep Security Smart Check in the default Kubernetes namespace to the latest version:

helm upgrade \
  --values overrides.yaml \
  deepsecurity-smartcheck \
  https://github.com/deep-security/smartcheck-helm/archive/master.tar.gz

Uninstalling Deep Security Smart Check

You can delete all of the resources created for Deep Security Smart Check by running helm delete:

helm delete deepsecurity-smartcheck

Use the helm list command to list installed releases.

helm delete is a destructive command and will delete all of the Deep Security Smart Check resources. If you are not using an external database, you will also lose all database contents without further confirmation.

Documentation

Advanced topics

Installing a specific version of Deep Security Smart Check

If you want to install a specific version of Deep Security Smart Check, you can use the archive link for the tagged release. For example, to install Deep Security Smart Check 1.2.76, you can run:

helm install \
  --values overrides.yaml \
  deepsecurity-smartcheck \
  https://github.com/deep-security/smartcheck-helm/archive/1.2.76.tar.gz

Using an alternate Kubernetes namespace

To install Deep Security Smart Check into an existing Kubernetes namespace that's different from the current namespace, use the --namespace parameter in the helm install command:

helm install \
  --namespace {namespace} \
  --values overrides.yaml \
  deepsecurity-smartcheck \
  https://github.com/deep-security/smartcheck-helm/archive/master.tar.gz

Overriding configuration defaults

Helm uses a file called values.yaml to set configuration defaults. You can find detailed documentation for each of the configuration options in this file.

As described above, you can override the defaults in this file by creating an overrides.yaml file and providing the location of this file on the command line:

helm install \
  --values overrides.yaml \
  deepsecurity-smartcheck \
  https://github.com/deep-security/smartcheck-helm/archive/master.tar.gz

If you create a file to override the values, make sure to copy the structure from the chart's values.yaml file. You only need to provide the values that you are overriding.

Troubleshooting

What role does my Google Cloud Platform service account need in order for Deep Security Smart Check to work with Google Container Registry?

The service account must have at least the StorageObjectViewer role.

Internal network failures

If you are see errors from the auth service like:

request canceled while waiting for connection

the issue may be caused by a common Kubernetes installation issue where pods cannot talk to themselves using a Kubernetes service.

If you are using Google Kubernetes Engine, first ensure that network policy is enabled on your cluster.

If you are not using Google Kubernetes Engine, try the following command on all worker nodes in your cluster. If you are using minikube, use minikube ssh to access the worker node.

Depending on your installation, the network interface in the next step may be cni0 or docker0; if trying cni0 results in an error message, try docker0.

sudo ip link set cni0 promisc on

Pod has unbound PersistentVolumeClaims on Amazon EKS

If you are using Amazon EKS and see errors like:

pod has unbound PersistentVolumeClaims

You likely have not defined a storage class. Since Amazon EKS does not create a default storage class you will have to create one as described here , then specify the storage class name when installing Deep Security Smart Check:

helm install \
  --set persistence.storageClassName={storage class name} \
  --values overrides.yaml \
  deepsecurity-smartcheck \
  https://github.com/deep-security/smartcheck-helm/archive/master.tar.gz

Timeouts attempting to connect to registry

If you are attempting to add a registry that's running on a port other than the standard HTTPS port 443, you will likely run into timeouts.

The networkPolicy.additionalRegistryPorts configuration item in the Helm chart allows you to open outbound network access from Deep Security Smart Check to the registry.

For example, if your registry is running on port 8443, you would update your overrides.yaml file to include the following and do a helm upgrade to apply the changed configuration:

networkPolicy:
  additionalRegistryPorts:
    - 8443

If you continue to encounter timeouts, the network connectivity issue may be caused by a firewall or some other network issue.

Built-in database pod failing to start on Bottlerocket

If you are installing Deep Security Smart Check with the built-in database on an Amazon Elastic Kubernetes Service (Amazon EKS) cluster running Bottlerocket, you may see errors with the db pod if the EKS EBS CSI driver is not installed:

Warning  FailedMount             6m51s (x12 over 31m)  kubelet, ip-192-168-82-134.us-west-2.compute.internal  Unable to mount volumes for pod "db-74995d7886-rfl4g_default(6c9a66fd-5d7b-11ea-9306-0e4eadbaa154)": timeout expired waiting for volumes to attach or mount for pod "default"/"db-74995d7886-rfl4g". list of unmounted volumes=[data]. list of unattached volumes=[varrun tmp data]

Warning  FailedMount             2m38s (x23 over 33m)  kubelet, ip-192-168-82-134.us-west-2.compute.internal  MountVolume.MountDevice failed for volume "pvc-6c53aaaa-5d7b-11ea-ae3f-02de703f8790" : executable file not found in $PATH

For production, you should use an external database instead of the internal database.

If you are doing a trial install and want to use the built-in database, you can install the required driver. See EKS EBS CSI Driver for more information and installation instructions.

Smart Check scan pods have status 'Evicted'

The status of Smart Check scan pod is 'Evicted' when it requests more resources than its limit. For example, you may see following error for malware-scan pod:

Usage of EmptyDir volume "tmp" exceeds the limit "300Mi"

This error is regarding the malware scan pod's usage exceeding its work volume of 300Mi. You can configure the work volume of the affected pod(s) by updating the following on your overrides.yaml:

malwareScan:
  workVolume:
    sizeLimit: 400Mi

Other pods can also be configured similarly. View 'workVolume' in the values.yaml to view other pod configurations.

You can also use this command to prune the Evicted pods if they persist:

kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].