trust-manager

by cert-manager

Helm chartv0.26.0App v0.26.0Apache-2.0Verified publisher

trust-manager is the easiest way to manage TLS trust bundles in Kubernetes and OpenShift clusters

About this chart

trust-manager

Helm Values

Global

global.rbac.create ~ bool

Default value:

true

Create required ClusterRoles, Roles, ClusterRoleBindings and RoleBindings for trust-manager.

global.rbac.aggregateClusterRoles ~ bool

Default value:

true

Aggregate read access to Bundles into the "cluster-reader" ClusterRole, mirroring how cert-manager aggregates its cluster-scoped ClusterIssuers. Bundle is a cluster-scoped resource, so this only takes effect for subjects bound via a ClusterRoleBinding. For more information, see User-facing roles.

CRDs

crds.enabled ~ bool

Default value:

true

This option decides if the CRDs should be installed as part of the Helm installation.

crds.keep ~ bool

Default value:

true

This option makes it so that the "helm.sh/resource-policy": keep annotation is added to the CRD. This will prevent Helm from uninstalling the CRD when the Helm release is uninstalled. WARNING: when the CRDs are removed, all cert-manager custom resources
(Certificates, Issuers, ...) will be removed too by the garbage collector.

Trust Manager

replicaCount ~ number,string,null

Default value:

1

The number of replicas of trust-manager to run.

For example:
Use integer to set a fixed number of replicas

replicaCount: 2

Use null, if you want to omit the replicas field and use the Kubernetes default value.

replicaCount: null

Use a string if you want to insert a variable for post-processing of the rendered template.

replicaCount: ${REPLICAS_OVERRIDE:=3}

revisionHistoryLimit ~ number,null

Default value:

10

The number of old ReplicaSets to retain to allow rollback. This is used to control the number of old ReplicaSets that are retained to allow rollback.
If set to 0, no old ReplicaSets are retained.

nameOverride ~ string

Default value:

""

namespace ~ string

Default value:

""

The namespace to install trust-manager into.
If not set, the namespace of the release is used.
This is helpful when installing trust-manager as a chart dependency (sub chart).

imagePullSecrets ~ array

Default value:

[]

For Private docker registries, authentication is needed. Registry secrets are applied to the service account.

imageRegistry ~ string

Default value:

quay.io

The container registry used for trust-manager images by default. This can include path prefixes (e.g. "artifactory.example.com/docker").

imageNamespace ~ string

Default value:

jetstack

The repository namespace used for trust-manager images by default.
Examples:

  • jetstack
  • cert-manager

image.registry ~ string

Target image registry. This value is prepended to the target image repository, if set.
For example:

registry: legacy.example.io

Deprecated: per-component registry prefix.

If set, this value is prepended to the image repository that the chart would otherwise render. This applies both when image.repository is set and when the repository is computed from
imageRegistry + imageNamespace + image.name.

This can produce "double registry" style references such as
legacy.example.io/quay.io/jetstack/.... Prefer using the global
imageRegistry/imageNamespace values.

image.repository ~ string

Default value:

""

Full repository override (takes precedence over imageRegistry, imageNamespace, and image.name).
Example: quay.io/jetstack/trust-manager

image.name ~ string

Default value:

trust-manager

The image name for trust-manager.
This is used (together with imageRegistry and imageNamespace) to construct the full image reference.

image.tag ~ string

Override the image tag to deploy by setting this variable. If no value is set, the chart's appVersion is used.

image.digest ~ string

Target image digest. Override any tag, if set.
For example:

digest: sha256:0e072dddd1f7f8fc8909a2ca6f65e76c5f0d2fcfb8be47935ae3457e8bbceb20

image.pullPolicy ~ string

Default value:

IfNotPresent

Kubernetes imagePullPolicy on Deployment.

defaultPackage.enabled ~ bool

Default value:

true

Whether to load the default trust package during pod initialization, and include it in main container args. This container enables the 'useDefaultCAs' source on Bundles.

defaultPackage.resources ~ object

Default value:

{}

Kubernetes pod resource limits for default package init container.

For example:

resources:
  limits:
    cpu: 100m
    memory: 128Mi
  requests:
    cpu: 100m
    memory: 128Mi

defaultPackage.securityContext ~ object

Default value:

allowPrivilegeEscalation: false
capabilities:
  drop:
    - ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
  type: RuntimeDefault

Security Context to be set on the trust-manager default package init container. For more information, see Configure a Security Context for a Pod or Container.

defaultPackageImage.registry ~ string

Target image registry. This value is prepended to the target image repository, if set.
For example:

registry: quay.io
repository: jetstack/cert-manager-package-debian

Deprecated: per-component registry prefix.

If set, this value is prepended to the image repository that the chart would otherwise render. This applies both when image.repository is set and when the repository is computed from
imageRegistry + imageNamespace + image.name.

This can produce "double registry" style references such as
legacy.example.io/quay.io/jetstack/.... Prefer using the global
imageRegistry/imageNamespace values.

defaultPackageImage.repository ~ string

Default value:

""

Full repository override (takes precedence over imageRegistry, imageNamespace, and image.name).
Example: quay.io/jetstack/trust-manager

defaultPackageImage.name ~ string

Default value:

trust-pkg-debian-trixie

The image name for trust-manager.
This is used (together with imageRegistry and imageNamespace) to construct the full image reference.

defaultPackageImage.tag ~ string

Override the image tag of the default package image. Is set at chart build time to the version specified in ./make/00_debian_trixie_version.mk.

defaultPackageImage.digest ~ string

Target image digest. Override any tag, if set.
For example:

digest: sha256:0e072dddd1f7f8fc8909a2ca6f65e76c5f0d2fcfb8be47935ae3457e8bbceb20

defaultPackageImage.pullPolicy ~ string

Default value:

IfNotPresent

imagePullPolicy for the default package image.

automountServiceAccountToken ~ bool

Default value:

true

Automounting API credentials for the trust-manager pod.

serviceAccount.create ~ bool

Default value:

true

Specifies whether a service account should be created.

serviceAccount.name ~ string

The name of the service account to use.
If not set and create is true, a name is generated using the fullname template.

serviceAccount.automountServiceAccountToken ~ bool

Default value:

true

Automount API credentials for a Service Account.

volumes ~ array

Default value:

[]

Additional volumes to add to the trust-manager pod.

volumeMounts ~ array

Default value:

[]

Additional volume mounts to add to the trust-manager container.

secretTargets.enabled ~ bool

Default value:

false

If set to true, enable writing trust bundles to Kubernetes Secrets as a target. Enabling this alone changes no RBAC: the Secret rules are emitted only once authorizedSecrets or authorizedSecretsAll is configured. Once one of them is, trust-manager is granted read access to all Secrets in scope: cluster-wide by default, or — when app.targetNamespaces is set — only in those namespaces plus the trust namespace.

secretTargets.authorizedSecretsAll ~ bool

Default value:

false

If set to true, grant read/write permission to all secrets across the cluster. Use with caution!
If set, ignores the authorizedSecrets list.

secretTargets.authorizedSecrets ~ array

Default value:

[]

A list of secret names which trust-manager will be permitted to write (patch and delete) within the configured scope (cluster-wide by default, or — when app.targetNamespaces is set — the target namespaces plus the trust namespace). Read access is NOT limited to these names: configuring this list (or authorizedSecretsAll) grants trust-manager read (get/list/watch) on all Secrets in scope (cluster-wide, or — when app.targetNamespaces is set — those namespaces plus the trust namespace). Only patching and deleting are restricted to these names. Kubernetes RBAC ignores resourceNames for the create verb, because the API server does not know the object's name at authorization time. If the list is empty (and authorizedSecretsAll is false), trust-manager can't write to secrets and can only read secrets in the trust namespace for use as sources.

resources ~ object

Default value:

{}

Kubernetes pod resource limits for trust.

For example:

resources:
  limits:
    cpu: 100m
    memory: 128Mi
  requests:
    cpu: 100m
    memory: 128Mi

podSecurityContext ~ object

Default value:

{}

Security Context to be set on the trust-manager Pod. For more information, see Configure a Security Context for a Pod or Container.

priorityClassName ~ string

Default value:

""

Configure the priority class of the pod. For more information, see PriorityClass.

nodeSelector ~ object

Default value:

kubernetes.io/os: linux

Configure the nodeSelector; defaults to any Linux node (trust-manager doesn't support Windows nodes)

affinity ~ object

Default value:

{}

Kubernetes Affinity. For more information, see Affinity v1 core.
For example:

affinity:
  nodeAffinity:
   requiredDuringSchedulingIgnoredDuringExecution:
     nodeSelectorTerms:
     - matchExpressions:
       - key: foo.bar.com/role
         operator: In
         values:
         - master

tolerations ~ array

Default value:

[]

List of Kubernetes Tolerations, if required. For more information, see Toleration v1 core.
For example:

tolerations:
- key: foo.bar.com/role
  operator: Equal
  value: master
  effect: NoSchedule

topologySpreadConstraints ~ array

Default value:

[]

List of Kubernetes TopologySpreadConstraints. For more information, see TopologySpreadConstraint v1 core.
For example:

topologySpreadConstraints:
- maxSkew: 2
  topologyKey: topology.kubernetes.io/zone
  whenUnsatisfiable: ScheduleAnyway
  labelSelector:
    matchLabels:
      app.kubernetes.io/name: trust-manager

filterExpiredCertificates.enabled ~ bool

Default value:

false

Whether to filter expired certificates from the trust bundle.

filterNonCACerts.enabled ~ bool

Default value:

false

Filter non-CA certificates, only CAs are used in the resulting Bundle.

app.minTLSVersion ~ string

Default value:

""

Minimum TLS version supported. If omitted, the default Go minimum version will be used.

app.cipherSuites ~ string

Default value:

""

Comma-separated list of cipher suites for the webhook server. If omitted, the default Go cipher suites will be used. Only affects TLS 1.2; TLS 1.3 cipher suites are not configurable in Go. Acceptable names match Kubernetes component-base (same as kube-apiserver --tls-cipher-suites); see TLSCipherPossibleValues. Some listed values are considered insecure — prefer PreferredTLSCipherNames.

app.curvePreferences ~ string

Default value:

""

Comma-separated list of numeric Go crypto/tls CurveID values for the webhook server (for example 23,29 for P-256 and X25519). Applies to TLS 1.2 and TLS 1.3 key exchange. Unlike cipherSuites, this still takes effect when the webhook is TLS 1.3-only. The order of the list is ignored. If omitted, the default Go curves will be used. See https://pkg.go.dev/crypto/tls#CurveID.

app.logFormat ~ string

Default value:

text

The format of trust-manager logging. Accepted values are text or json.

app.logLevel ~ number

Default value:

Deploy trust-manager with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has trust-manager 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 charttrust-manager is pinned at v0.26.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