Skip to content

Commit

Permalink
chore(helm): allow to set log level for {in|e}gress (#8077)
Browse files Browse the repository at this point in the history
Signed-off-by: Bart Smykla <[email protected]>
  • Loading branch information
bartsmykla authored Oct 20, 2023
1 parent 6f86847 commit f676dad
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
2 changes: 2 additions & 0 deletions deployments/charts/kuma/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ A Helm chart for the Kuma Control Plane
| ingress.extraLabels | object | `{}` | Labels to add to resources, in addition to default labels |
| ingress.drainTime | string | `"30s"` | Time for which old listener will still be active as draining |
| ingress.replicas | int | `1` | Number of replicas of the Ingress. Ignored when autoscaling is enabled. |
| ingress.logLevel | string | `"info"` | Log level for ingress (available values: off|info|debug) |
| ingress.resources | object | `{"limits":{"cpu":"1000m","memory":"512Mi"},"requests":{"cpu":"50m","memory":"64Mi"}}` | Define the resources to allocate to mesh ingress |
| ingress.lifecycle | object | `{}` | Pod lifecycle settings (useful for adding a preStop hook, when using AWS ALB or NLB) |
| ingress.terminationGracePeriodSeconds | int | `40` | Number of seconds to wait before force killing the pod. Make sure to update this if you add a preStop hook. |
Expand Down Expand Up @@ -155,6 +156,7 @@ A Helm chart for the Kuma Control Plane
| egress.extraLabels | object | `{}` | Labels to add to resources, in addition to the default labels. |
| egress.drainTime | string | `"30s"` | Time for which old listener will still be active as draining |
| egress.replicas | int | `1` | Number of replicas of the Egress. Ignored when autoscaling is enabled. |
| egress.logLevel | string | `"info"` | Log level for egress (available values: off|info|debug) |
| egress.autoscaling.enabled | bool | `false` | Whether to enable Horizontal Pod Autoscaling, which requires the [Metrics Server](https://github.com/kubernetes-sigs/metrics-server) in the cluster |
| egress.autoscaling.minReplicas | int | `2` | The minimum CP pods to allow |
| egress.autoscaling.maxReplicas | int | `5` | The max CP pods to scale to |
Expand Down
2 changes: 1 addition & 1 deletion deployments/charts/kuma/templates/egress-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
value: "egress"
args:
- run
- --log-level=info
- --log-level={{ .Values.egress.logLevel | default "info" }}
ports:
- containerPort: 10002
livenessProbe:
Expand Down
2 changes: 1 addition & 1 deletion deployments/charts/kuma/templates/ingress-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ spec:
value: "ingress"
args:
- run
- --log-level=info
- --log-level={{ .Values.ingress.logLevel | default "info" }}
ports:
- containerPort: 10001
livenessProbe:
Expand Down
6 changes: 6 additions & 0 deletions deployments/charts/kuma/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,9 @@ ingress:
# -- Number of replicas of the Ingress. Ignored when autoscaling is enabled.
replicas: 1

# -- Log level for ingress (available values: off|info|debug)
logLevel: info

# -- Define the resources to allocate to mesh ingress
resources:
requests:
Expand Down Expand Up @@ -526,6 +529,9 @@ egress:
# -- Number of replicas of the Egress. Ignored when autoscaling is enabled.
replicas: 1

# -- Log level for egress (available values: off|info|debug)
logLevel: info

# Horizontal Pod Autoscaling configuration
autoscaling:
# -- Whether to enable Horizontal Pod Autoscaling, which requires the [Metrics Server](https://github.com/kubernetes-sigs/metrics-server) in the cluster
Expand Down
6 changes: 6 additions & 0 deletions docs/generated/raw/helm-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,9 @@ ingress:
# -- Number of replicas of the Ingress. Ignored when autoscaling is enabled.
replicas: 1

# -- Log level for ingress (available values: off|info|debug)
logLevel: info

# -- Define the resources to allocate to mesh ingress
resources:
requests:
Expand Down Expand Up @@ -526,6 +529,9 @@ egress:
# -- Number of replicas of the Egress. Ignored when autoscaling is enabled.
replicas: 1

# -- Log level for egress (available values: off|info|debug)
logLevel: info

# Horizontal Pod Autoscaling configuration
autoscaling:
# -- Whether to enable Horizontal Pod Autoscaling, which requires the [Metrics Server](https://github.com/kubernetes-sigs/metrics-server) in the cluster
Expand Down

0 comments on commit f676dad

Please sign in to comment.