Skip to content

added liveness and readiness probes to debug container partials template#11308

Merged
alpeb merged 6 commits intolinkerd:mainfrom
deusxanima:alen/adding_debug_container_probes
Nov 3, 2023
Merged

added liveness and readiness probes to debug container partials template#11308
alpeb merged 6 commits intolinkerd:mainfrom
deusxanima:alen/adding_debug_container_probes

Conversation

@deusxanima
Copy link
Contributor

Subject

added liveness and readiness probes to debug container partials template

Problem

Some environments have security restrictions which require liveness and readiness probes in order to deploy any container in the cluster. Currently our debug container does not contain these, and there is no easy way for users to add the values into the container due to the way it's injected into the pod but not propagated to the deployment.

Solution

Added static liveness and readiness probes to debug container partials template which will always pass and evaluate to true.

Fixes #[11307]

Alen Haric (deusxanima) [email protected]

@deusxanima deusxanima requested a review from a team as a code owner August 28, 2023 22:55
Copy link
Member

@alpeb alpeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've replaced the commands with just true, fixed the golden files and the pod-with-debug.patch.json file 🙏

@mateiidavid mateiidavid requested a review from olix0r October 31, 2023 12:16
@alpeb alpeb merged commit 33dffe6 into linkerd:main Nov 3, 2023
alpeb added a commit that referenced this pull request Nov 9, 2023
## edge-23.11.2

This edge release contains observability improvements and bug fixes to the
Destination controller, and a refinement to the multicluster gateway resolution
logic.

* Fixed an issue where the Destination controller could stop processing service
  profile updates, if a proxy subscribed to those updates stops reading them;
  this is a followup to the issue [#11491] fixed in edge-23.10.3 ([#11546])
* In the Destination controller, added informer lag histogram metrics to track
  whenever the objects tracked are falling behind the state in the
  kube-apiserver ([#11534])
* In the multicluster service mirror, extended the target gateway resolution
  logic to take into account all the possible IPs a hostname might resolve to,
  not just the first one (thanks @MrFreezeex!) ([#11499])
* Added probes to the debug container to appease environments requiring probes
  for all containers ([#11308])
alpeb added a commit that referenced this pull request Nov 9, 2023
## edge-23.11.2

This edge release contains observability improvements and bug fixes to the
Destination controller, and a refinement to the multicluster gateway resolution
logic.

* Fixed an issue where the Destination controller could stop processing service
  profile updates, if a proxy subscribed to those updates stops reading them;
  this is a followup to the issue [#11491] fixed in [edge-23.10.3] ([#11546])
* In the Destination controller, added informer lag histogram metrics to track
  whenever the Kubernetes objects watched by the controller are falling behind
  the state in the kube-apiserver ([#11534])
* In the multicluster service mirror, extended the target gateway resolution
  logic to take into account all the possible IPs a hostname might resolve to,
  rather than just the first one (thanks @MrFreezeex!) ([#11499])
* Added probes to the debug container to appease environments requiring probes
  for all containers ([#11308])

[edge-23.10.3]: https://github.com/linkerd/linkerd2/releases/tag/edge-23.10.3
[#11546]: #11546
[#11534]: #11534
[#11499]: #11499
[#11308]: #11308
@deusxanima deusxanima deleted the alen/adding_debug_container_probes branch December 8, 2023 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants