aws / aws/eks-anywhere

Able to configure logging format (JSON) in kubelet arg through EKS-A cluster spec

Open
#5,103 1 comment 0 reactions 0 assignees View on GitHub
team/ce
Dominant language
Go
Stars
2.1k
Forks
328
Avg merge
1d 4h
Merged PRs (30d)
9

Description

**What would you like to be added**:

We would like to change the logging format (e.g. JSON) in kubelet arg through EKS-A cluster spec.

https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/

> `--logging-format`: Sets the log format. Permitted formats: text, json (gated by LoggingBetaOptions). (DEPRECATED: This parameter should be set via the config file specified by the Kubelet's --config flag. See kubelet-config-file for more information.)

As the arg `--logging-format` being deprecated, instead we will need to pass the config in `KubeletConfiguration` object.

**Why is this needed**:

Some logging management system like Greylog only expects JSON format.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the EKS-A cluster spec is converted into kubelet arguments or configuration, then compare that path with Kubernetes' KubeletConfiguration documentation linked in the issue. Done means a cluster spec can request JSON kubelet logging and the setting reaches the kubelet without relying on the deprecated --logging-format argument.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.