Skip to content

enable log-level setting via install and inject commands #230

@siggy

Description

@siggy

conduit install and conduit inject both output kubernetes config files. we should provide flags to these commands to set log levels in the kubernetes configs.

install

conduit install generates a Kubernetes config with controller components initialized at a default log level of info.

For debugging users' control-plane deployments, we can set a log-level, for example:

conduit install --controller-log-level=debug

... which would set a command-line parameter on each controller component, for example:

- args:
  - telemetry
  - -log-level=debug

inject

conduit inject modifies Kubernetes configs by injecting a conduit-proxy sidecar into each pod.

For debugging users' data-plane deployments, we can set a log-level, for example:

conduit inject --proxy-log-level=trace,conduit_proxy=trace,hyper=trace

... which would set an environment variable on each sidecar proxy, for example:

- env:
  - name: CONDUIT_PROXY_LOG
    value: trace,conduit_proxy=trace,hyper=trace

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions