Skip to content

Commit

Permalink
docs: Add FAQ section to answer logging questions (#4380)
Browse files Browse the repository at this point in the history
Co-authored-by: Jesse Feinman <[email protected]>
Co-authored-by: Jonathan Innis <[email protected]>
  • Loading branch information
3 people authored Aug 7, 2023
1 parent a0e0864 commit 852eaba
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 0 deletions.
8 changes: 8 additions & 0 deletions website/content/en/docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,11 @@ Details on provisioning the SQS queue and EventBridge rules can be found in the
### Why do I sometimes see an extra node get launched when updating a deployment that remains empty and is later removed?
Consolidation packs pods tightly onto nodes which can leave little free allocatable CPU/memory on your nodes. If a deployment uses a deployment strategy with a non-zero `maxSurge`, such as the default 25%, those surge pods may not have anywhere to run. In this case, Karpenter will launch a new node so that the surge pods can run and then remove it soon after if it's not needed.
## Logging
### How do I customize or configure the log output?
Karpenter uses [uber-go/zap](https://github.com/uber-go/zap) for logging. You can customize or configure the log messages by editing the [configmap-logging.yaml](https://github.com/aws/karpenter/blob/main/charts/karpenter/templates/configmap-logging.yaml)
`ConfigMap`'s [data.zap-logger-config](https://github.com/aws/karpenter/blob/main/charts/karpenter/templates/configmap-logging.yaml#L26) field.
The available configuration options are specified in the [zap.Config godocs](https://pkg.go.dev/go.uber.org/zap#Config).
8 changes: 8 additions & 0 deletions website/content/en/preview/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,11 @@ Details on provisioning the SQS queue and EventBridge rules can be found in the
### Why do I sometimes see an extra node get launched when updating a deployment that remains empty and is later removed?
Consolidation packs pods tightly onto nodes which can leave little free allocatable CPU/memory on your nodes. If a deployment uses a deployment strategy with a non-zero `maxSurge`, such as the default 25%, those surge pods may not have anywhere to run. In this case, Karpenter will launch a new node so that the surge pods can run and then remove it soon after if it's not needed.
## Logging
### How do I customize or configure the log output?
Karpenter uses [uber-go/zap](https://github.com/uber-go/zap) for logging. You can customize or configure the log messages by editing the [configmap-logging.yaml](https://github.com/aws/karpenter/blob/main/charts/karpenter/templates/configmap-logging.yaml)
`ConfigMap`'s [data.zap-logger-config](https://github.com/aws/karpenter/blob/main/charts/karpenter/templates/configmap-logging.yaml#L26) field.
The available configuration options are specified in the [zap.Config godocs](https://pkg.go.dev/go.uber.org/zap#Config).
8 changes: 8 additions & 0 deletions website/content/en/v0.26/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,11 @@ Details on provisioning the SQS queue and EventBridge rules can be found in the
### Why do I sometimes see an extra node get launched when updating a deployment that remains empty and is later removed?
Consolidation packs pods tightly onto nodes which can leave little free allocatable CPU/memory on your nodes. If a deployment uses a deployment strategy with a non-zero `maxSurge`, such as the default 25%, those surge pods may not have anywhere to run. In this case, Karpenter will launch a new node so that the surge pods can run and then remove it soon after if it's not needed.
## Logging
### How do I customize or configure the log output?
Karpenter uses [uber-go/zap](https://github.com/uber-go/zap) for logging. You can customize or configure the log messages by editing the [configmap-logging.yaml](https://github.com/aws/karpenter/blob/main/charts/karpenter/templates/configmap-logging.yaml)
`ConfigMap`'s [data.zap-logger-config](https://github.com/aws/karpenter/blob/main/charts/karpenter/templates/configmap-logging.yaml#L26) field.
The available configuration options are specified in the [zap.Config godocs](https://pkg.go.dev/go.uber.org/zap#Config).
8 changes: 8 additions & 0 deletions website/content/en/v0.27/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,11 @@ Details on provisioning the SQS queue and EventBridge rules can be found in the
### Why do I sometimes see an extra node get launched when updating a deployment that remains empty and is later removed?
Consolidation packs pods tightly onto nodes which can leave little free allocatable CPU/memory on your nodes. If a deployment uses a deployment strategy with a non-zero `maxSurge`, such as the default 25%, those surge pods may not have anywhere to run. In this case, Karpenter will launch a new node so that the surge pods can run and then remove it soon after if it's not needed.
## Logging
### How do I customize or configure the log output?
Karpenter uses [uber-go/zap](https://github.com/uber-go/zap) for logging. You can customize or configure the log messages by editing the [configmap-logging.yaml](https://github.com/aws/karpenter/blob/main/charts/karpenter/templates/configmap-logging.yaml)
`ConfigMap`'s [data.zap-logger-config](https://github.com/aws/karpenter/blob/main/charts/karpenter/templates/configmap-logging.yaml#L26) field.
The available configuration options are specified in the [zap.Config godocs](https://pkg.go.dev/go.uber.org/zap#Config).
8 changes: 8 additions & 0 deletions website/content/en/v0.28/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,11 @@ Details on provisioning the SQS queue and EventBridge rules can be found in the
### Why do I sometimes see an extra node get launched when updating a deployment that remains empty and is later removed?
Consolidation packs pods tightly onto nodes which can leave little free allocatable CPU/memory on your nodes. If a deployment uses a deployment strategy with a non-zero `maxSurge`, such as the default 25%, those surge pods may not have anywhere to run. In this case, Karpenter will launch a new node so that the surge pods can run and then remove it soon after if it's not needed.
## Logging
### How do I customize or configure the log output?
Karpenter uses [uber-go/zap](https://github.com/uber-go/zap) for logging. You can customize or configure the log messages by editing the [configmap-logging.yaml](https://github.com/aws/karpenter/blob/main/charts/karpenter/templates/configmap-logging.yaml)
`ConfigMap`'s [data.zap-logger-config](https://github.com/aws/karpenter/blob/main/charts/karpenter/templates/configmap-logging.yaml#L26) field.
The available configuration options are specified in the [zap.Config godocs](https://pkg.go.dev/go.uber.org/zap#Config).
8 changes: 8 additions & 0 deletions website/content/en/v0.29/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,11 @@ Details on provisioning the SQS queue and EventBridge rules can be found in the
### Why do I sometimes see an extra node get launched when updating a deployment that remains empty and is later removed?
Consolidation packs pods tightly onto nodes which can leave little free allocatable CPU/memory on your nodes. If a deployment uses a deployment strategy with a non-zero `maxSurge`, such as the default 25%, those surge pods may not have anywhere to run. In this case, Karpenter will launch a new node so that the surge pods can run and then remove it soon after if it's not needed.
## Logging
### How do I customize or configure the log output?
Karpenter uses [uber-go/zap](https://github.com/uber-go/zap) for logging. You can customize or configure the log messages by editing the [configmap-logging.yaml](https://github.com/aws/karpenter/blob/main/charts/karpenter/templates/configmap-logging.yaml)
`ConfigMap`'s [data.zap-logger-config](https://github.com/aws/karpenter/blob/main/charts/karpenter/templates/configmap-logging.yaml#L26) field.
The available configuration options are specified in the [zap.Config godocs](https://pkg.go.dev/go.uber.org/zap#Config).

0 comments on commit 852eaba

Please sign in to comment.