-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DRAFT: Reset log levels per pod #1864
Conversation
c5d48da
to
759f50e
Compare
f3ba599
to
587f91c
Compare
759f50e
to
87f9a38
Compare
CHANGELOG.md
Outdated
@@ -26,6 +26,8 @@ IMPROVEMENTS: | |||
* Control-Plane | |||
* Add support for the annotation `consul.hashicorp.com/use-proxy-health-check`. When this annotation is used by a service, it configures a readiness endpoint on Consul Dataplane and queries it instead of the proxy's inbound port which forwards requests to the application. [[GH-1824](https://github.com/hashicorp/consul-k8s/pull/1824)], [[GH-1841](https://github.com/hashicorp/consul-k8s/pull/1841)] | |||
* Add health check for synced services based on the status of the Kubernetes readiness probe on synced pod. [[GH-1821](https://github.com/hashicorp/consul-k8s/pull/1821)] | |||
* CLI: | |||
* Add `consul-k8s proxy log podname` command for displaying and mofidying Envoy log levels for a given Pod. [GH-1844](https://github.com/hashicorp/consul-k8s/pull/1844), [GH-1849](https://github.com/hashicorp/consul-k8s/pull/1849), [GH-1864](https://github.com/hashicorp/consul-k8s/pull/1864) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If these all merge into a single feature branch, I would just include the one feature branch that targets main
instead of all 3. Just for tidiness.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so each of these PR's is targeting main
, right now this PR is targeting the set-envoy...
branch because it's dependent on some of the work in there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have a spelling mistake 'mofidying' 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch! lemme fix that
33a884f
to
de88a41
Compare
1c6d116
to
cfb3d58
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
a4c81fc
to
5b14be4
Compare
Move format parsing into envoy package Move enovy to common package, move param parsing to calling package Added changelog for proxy log command Cleaning up usage message and error message from pr review clean up issue with exported constant used in test, fmt'd/linted export loggers undo autoformatting last fix to changelog to clean up from auto format set level on reset for envoy log level to info Fix spelling mistake in changelog
5b14be4
to
3dc73a6
Compare
Changes proposed in this PR:
How I've tested this PR:
kind create cluster
consul-values.yml
file in the above gist:consul-k8s install -config-file=consul-values.yaml -set global.image=hashicorp/consul:1.14.3
server.yaml
to your clusterkubectl apply server.yaml
kubectl get pods
kubectl port-forward <POD_NAME> 19000:19000
(where19000
is the default admin port for the envoy proxy)consul-k8s proxy log <POD_NAME> -l warning
and thenconsul-k8s proxy log <POD_NAME> -level grpc:error,kafka:critical,testing:off,admin:debug
to set all loggers to warning, and then modify a few others to different levelsconsul-k8s proxy log <POD_NAME> -r
to reset the levels and observe that all are set toinfo
How I expect reviewers to test this PR:
Checklist: