Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adding Docs for Ephemeral container use#8716

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
rosanch wants to merge4 commits intodotnet:main
base:main
Choose a base branch
Loading
fromrosanch:ephemeral

Conversation

@rosanch
Copy link

Summary

I wanted to add some clarity into how to leverage kubectl in order to make a quick injection of a dotnet monitor container to debug running .Net containers with minimal steps.

Release Notes Entry

@rosanch
Copy link
Author

@dotnet-policy-bot agree company="Microsoft"
@dotnet-policy-service agree company="Microsoft"

2. Target pod created with required env vars, volume, and volume mounts. See example [template](./_dotnetmonitor.tpl).

## Inject dotnet monitor into a Pod
Prepare a [config file](config.yaml) whose values match the target's deployment as it does our [example template](./_dotnetmonitor.tpl). This step is performed once per pod lifetime; the ephemeral container persists until the pod restarts.
Copy link
Member

Choose a reason for hiding this comment

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

Let's remove the tpl file references here. You can point to our other docs regarding the app's environment/mounting configuration.

rosanch reacted with thumbs up emoji
MonitorPort=52323

kubectl debug -n "$Namespace" "pod/$Pod" \
--image "mcr.microsoft.com/dotnet/monitor:8.0" \
Copy link
Member

Choose a reason for hiding this comment

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

Consider pointing to 10 since it just released.

rosanch reacted with thumbs up emoji
kubectl debug -n "$Namespace" "pod/$Pod" \
--image "mcr.microsoft.com/dotnet/monitor:8.0" \
--container "debugger" \
--target "$AppContainer" \
Copy link
Member

Choose a reason for hiding this comment

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

Note that target is not strictly necessary since you are connecting over volume mounts anyway.

rosanch reacted with eyes emoji
Copy link
Member

@wiktorkwiktork left a comment

Choose a reason for hiding this comment

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

Thanks for contributing this! I added some minor feedback.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@wiktorkwiktorkwiktork left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@rosanch@wiktork

[8]ページ先頭

©2009-2025 Movatter.jp