shield
by Sysdig
A chart with various Sysdig components for Kubernetes
About this chart
Shield
Sysdig Shield. This chart deploys the Sysdig Host & Cluster Shield in your Kubernetes cluster.
- Prerequisites
- Installing the Chart
- Configuration
Introduction
This chart deploys the Sysdig Shield as a Deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Helm 3.6
- Sysdig AccessKey
- Sysdig Secure API Token (required for Kubernetes Audit with on-premise installations)
- Sysdig Secure API URL
- Sysdig Secure Collector
Installing the Chart
To install the chart create a values.yaml file. Set your values and decide which features you would like to enable.
cluster_config:
name: <your-cluster-name>
sysdig_endpoint:
access_key: <your-access-key>
api_url: <your-api-url>
collector:
host: <your-collector-hostname>
port: <your-collector-port>
Then, to install it with the release name sysdig, run:
$ helm upgrade --install --atomic --create-namespace \
-n sysdig-agent \
-f values.yaml \
sysdig \
sysdig/shield
The command deploys the Sysdig Shield on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the sysdig:
$ helm uninstall sysdig -n sysdig-agent
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following table lists the configurable parameters of the shield chart and their default values.
| Parameter | Description | Default |
|---|---|---|
| cluster_config.name | The name of the cluster | |
| cluster_config.cluster_domain | The domain of the cluster | cluster.local |
| cluster_config.cluster_type | The type of the cluster (Accepted Values: gke-autopilot, generic) | generic |
| cluster_config.root_namespace | The root namespace of the cluster | kube-system |
| cluster_config.tags | Tags you want to apply to the metadata sent to the Sysdig Backend. | {} |
| sysdig_endpoint.region | The region where the Sysdig Secure instance is located | custom |
| sysdig_endpoint.api_url | The URL of the Sysdig Secure API (required only when region is custom) | |
| sysdig_endpoint.collector.host | The hostname of the Sysdig Secure collector (required only when region is custom) | |
| sysdig_endpoint.collector.port | The port of the Sysdig Secure collector (required only when region is custom) | |
| sysdig_endpoint.access_key | The access key for the Sysdig Secure instance. WARNING: Supplying credentials inline here persists them in Helm release metadata (sh.helm.release.v1..v Secret) as base64 plaintext, and exposes them through helm get values / GitOps snapshots. For sensitive environments, prefer pre-creating a Secret out-of-band and using access_key_existing_secret below. | |
| sysdig_endpoint.access_key_existing_secret | Name of a pre-existing Secret with the access-key key. When set, the chart skips generating its own Secret and the inline access_key value above is ignored. RECOMMENDED for production deployments. |
Deploy shield with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has shield 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 chartshield is pinned at v1.58.1 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