-
Notifications
You must be signed in to change notification settings - Fork 949
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
docs: add doc about cri-annotation-support #2216
docs: add doc about cri-annotation-support #2216
Conversation
fbb1847
to
ffefd19
Compare
Please check the CI failure:
For more details, you should check https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md @starnop |
e5acad4
to
07c63db
Compare
07c63db
to
1c15a1d
Compare
1c15a1d
to
c98f7f7
Compare
ffb3a2d
to
51872a7
Compare
Codecov Report
@@ Coverage Diff @@
## master #2216 +/- ##
==========================================
+ Coverage 66.56% 66.62% +0.05%
==========================================
Files 208 208
Lines 16756 16756
==========================================
+ Hits 11153 11163 +10
+ Misses 4276 4274 -2
+ Partials 1327 1319 -8
|
113a2d2
to
d342014
Compare
labels: | ||
pouch: pouch | ||
annotations: | ||
io.kubernetes.lxcfs.enabled: "true" |
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.
In this part, you said to support runtime choosing. Thus, this line is incorrect. This is about lxcfs.
- top | ||
resources: | ||
requests: | ||
memory: "256Mi" |
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 this is about runtime choosing, I suggest to delete other unrelated parts in yml file. Only covered what we wish, and that is enough.
3. After setting up your kubernetes cluster, you can create a deployment like this : | ||
|
||
``` | ||
# cat pouch.yaml |
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 can specify the yml file's name to pouch-runtime.yml
to make it more clear.
Or use pouch-lxcfs.yml
to classify.
# kubectl create -f pouch.yaml | ||
``` | ||
|
||
4. Use command `pouch ps` to observe the runtime of the container. |
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.
Please add more validation details to help user know whether it is successful. More specific, please. Thanks a lot.
3. After setting up your kubernetes cluster, you can create a deployment like this : | ||
|
||
``` | ||
# cat pouch.yaml |
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.
pouch-lxcfs.yml?
# kubectl create -f pouch.yaml | ||
``` | ||
|
||
4. View the results. |
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.
More details to be specific if you see what, it means success.
d342014
to
1e1b1c3
Compare
3b794c3
to
2fc4d57
Compare
CI fails with |
4db1238
to
de92e30
Compare
899b80a
to
f553b9b
Compare
Signed-off-by: Starnop <[email protected]>
f553b9b
to
411a89f
Compare
LGTM |
Signed-off-by: Starnop [email protected]
Ⅰ. Describe what this PR did
Currently, PouchContainer has lots of advantages over other container runtimes. Kubernetes has a hiden way to support this: make user-defined parameters in annotations field in pod's definition.
When CRI manager deals the annotation details, it could pass these parameters to container manager, and container manager definitely implement these features very well.
Now we have supported some fields, such as :
So a detailed documentation is needed to cover the annotations supported.
Ⅱ. Does this pull request fix one issue?
None.
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
None.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews