cert-manager-approver-policy

by cert-manager

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

approver-policy is a CertificateRequest approver for cert-manager

About this chart

approver-policy

Helm Values

nameOverride ~ string

nameOverride replaces the name of the chart in the Chart.yaml file, when this is used to construct Kubernetes object names.

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-approver-policy custom resources
(CertificateRequestPolicy) will be removed too by the garbage collector.

replicaCount ~ number,string,null

Default value:

1

Number of replicas of approver-policy 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}

imageRegistry ~ string

Default value:

quay.io

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

imageNamespace ~ string

Default value:

jetstack

The repository namespace used for approver-policy images by default.
Examples:

  • jetstack
  • cert-manager

image.registry ~ string

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.name ~ string

Default value:

cert-manager-approver-policy

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

image.repository ~ string

Default value:

""

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

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.

imagePullSecrets ~ array

Default value:

[]

Optional secrets used for pulling the approver-policy container image.

app.logFormat ~ string

Default value:

text

The format of approver-policy logging. Accepted values are text or json.

app.logLevel ~ number

Default value:

1

Verbosity of approver-policy logging. This is a value from 1 to 5.

app.extraArgs ~ array

Default value:

[]

Extra CLI arguments that will be passed to the approver-policy process.

app.approveSignerNames ~ array

Default value:

[]

List of signer names that approver-policy will be given permission to approve and deny. CertificateRequests referencing these signer names can be processed by approver-policy. Defaults to an empty array, allowing approval for all signers.
ref: https://cert-manager.io/docs/concepts/certificaterequest/#approval

app.metrics.port ~ number

Default value:

9402

Port for exposing Prometheus metrics on 0.0.0.0 on path '/metrics'.

app.metrics.service.enabled ~ bool

Default value:

true

Create a Service resource to expose metrics endpoint.

app.metrics.service.type ~ string

Default value:

ClusterIP

The service type to expose metrics.

app.metrics.service.servicemonitor.enabled ~ bool

Default value:

false

Create Prometheus ServiceMonitor resource for approver-policy.

app.metrics.service.servicemonitor.prometheusInstance ~ string

Default value:

default

The value for the "prometheus" label on the ServiceMonitor. This allows for multiple Prometheus instances selecting different ServiceMonitors using label selectors.

app.metrics.service.servicemonitor.interval ~ string

Default value:

10s

The interval that the Prometheus will scrape for metrics.

app.metrics.service.servicemonitor.scrapeTimeout ~ string

Default value:

5s

The timeout on each metric probe request.

app.metrics.service.servicemonitor.labels ~ object

Default value:

{}

Additional labels to give the ServiceMonitor resource.

app.readinessProbe.port ~ number

Default value:

6060

The container port to expose approver-policy HTTP readiness probe on default network interface.

app.webhook.host ~ string

Default value:

0.0.0.0

The host that the webhook listens on.

app.webhook.port ~ number

Default value:

10250

The port that the webhook listens on.

app.webhook.timeoutSeconds ~ number

Default value:

5

The timeout of webhook HTTP request.

app.webhook.hostNetwork ~ bool

Deprecated. Use .hostNetwork instead.

app.webhook.dnsPolicy ~ string

Deprecated. Use .dnsPolicy instead.

app.webhook.affinity ~ object

Deprecated. Use .affinity instead.

app.webhook.nodeSelector ~ object

Deprecated. Use .nodeSelector instead.

app.webhook.tolerations ~ array

Deprecated. Use .tolerations instead.

app.webhook.service.type ~ string

Default value:

ClusterIP

The type of Kubernetes Service used by the webhook.

app.webhook.service.nodePort ~ number

The nodePort set on the Service used by the webhook.

hostNetwork ~ bool

Default value:

false

Boolean value, expose pod on hostNetwork.
Required when running a custom CNI in managed providers such as AWS EKS.

For more information, see AWS EKS.

dnsPolicy ~ string

Default value:

ClusterFirst

This value may need to be changed if hostNetwork: true

priorityClassName ~ string

Default value:

""

Configure the priority class of the Pod.

For more information, see:

For example:

priorityClassName: system-cluster-critical

affinity ~ object

Default value:

{}

A Kubernetes Affinity, if required. For more information, see Affinity v1 core.

For example:

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

nodeSelector ~ object

Default value:

kubernetes.io/os: linux

The nodeSelector on Pods tells Kubernetes to schedule Pods on the nodes with matching labels. For more information, see Assigning Pods to Nodes.

tolerations ~ array

Default value:

[]

A 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:
Pod Topology Spread Constraints.

For example:

topologySpreadConstraints:
- maxSkew: 2
  topologyKey: topology.kubernetes.io/zone
  whenUnsatisfiable: ScheduleAnyway
  labelSelector:
    matchLabels:
      app.kubernetes.io/name: cert-manager-approver-policy
      app.kubernetes.io/instance: cert-manager-approver-policy

podDisruptionBudget.enabled ~ bool

Default value:

false

Enable or disable the PodDisruptionBudget resource.

This prevents downtime during voluntary disruptions such as during a Node upgrade. For example, the PodDisruptionBudget blocks kubectl drain if it is used on the Node where the only remaining approver-policy
Pod is currently running.

podDisruptionBudget.minAvailable ~ number

Configures the minimum available pods for disruptions.
Cannot be used if maxUnavailable is set.

podDisruptionBudget.maxUnavailable ~ number

Configures the maximum unavailable pods for disruptions.
Cannot be used if minAvailable is set.

volumeMounts ~ array

Default value:

[]

Optional extra volume mounts. Useful for mounting custom root CAs.

For example:

volumeMounts:
- name: my-volume-mount
  mountPath: /etc/approver-policy/secrets

volumes ~ array

Default value:

[]

Optional extra volumes.

For example:

volumes:
- name: my-volume
  secret:
    secretName: my-secret

resources ~ object

Default value:

{}

Kubernetes pod resources.
For more information, see Resource Management for Pods and Containers.

For example:

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

commonLabels ~ object

Default value:

{}

Allow custom labels to be placed on resources - optional. On a key collision these win over the chart's own labels, except where something has to keep matching the value: the "app" label on the approver-policy Pods and on the metrics Service, both read by selectors, and the "prometheus" label on the ServiceMonitor, read by the Prometheus instance that selects it. Those keep the chart's value on the resource in question, and are still applied from commonLabels to every other resource.

podAnnotations ~ object

Default value:

{}

Allow custom annotations to be placed on cert-manager-approver pod - optional.

strategy ~ object

Default value:

{}

Deployment update strategy for the approver-policy Deployment.

This could be needed when deploying approver-policy on each control-plane node and setting anti-affinities to forbid two pods on the same node. In this situation, default values of maxSurge (25% round up to next integer = 1) and maxUnavailable (25% round down to next integer = 0) block the rolling update as the new surge pod can't be scheduled on a control-plane node due to anti-affinities. Setting maxSurge to 0 and maxUnavailable to 1 would solve the problem.

For example:

strategy:
  type: RollingUpdate
  rollingUpdate:
    maxSurge: 0
    maxUnavailable: 1

For more information, see the Kubernetes documentation.

http_proxy ~ string

Configures the HTTP_PROXY environment variable where a HTTP proxy is required.

https_proxy ~ string

Configures the HTTPS_PROXY environment variable where a HTTP proxy is required.

no_proxy ~ string

Configures the NO_PROXY environment variable where a HTTP proxy is required, but certain domains should be excluded.

securityContext ~ object

Default value:

runAsNonRoot: true
seccompProfile:
  type: RuntimeDefault

Pod Security Context.
For more information, see Configure a Security Context for a Pod or Container.

containerSecurityContext ~ object

Default value:

allowPrivilegeEscalation: false
capabilities:
  drop:
    - ALL
readOnlyRootFilesystem: true

Container Security Context to be set on the controller component container. For more information, see Configure a Security Context for a Pod or Container.

Deploy cert-manager-approver-policy with OpenTenant

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