-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Allow Tags on Containers #16
Comments
Is there an existing discussion about this? This is about applying labels to the containers instead of to the pods? So I would need to have a pod object by name then query all of the labels on the containers in the pod? |
Reading between the lines, this is to allow tags to be pushed down to individual (Docker) containers to enhance the tools that know about Docker but not about Kubernetes. @MikeSpreitzer -- can you help motivate this with some examples of the systems that you'd like to integrate with? |
I think I brought this up in a SIG Node meeting, but the discussion did not get very far there. |
Another example we have considered is, again in a system with both Kubernetes and other platforms, tooling (such as monitoring) that applies to all containers and wants to get identifying information in a uniform way. |
cc @kubernetes/sig-node |
Some more background from this thread: https://groups.google.com/forum/#!searchin/kubernetes-sig-node/label$20mike/kubernetes-sig-node/gijxbYC7HT8/leGwj_uuAgAJ |
Reading that thread @duglin it seems that achieving what you want from this feature isn't actionable until Docker makes this stuff mutable: https://groups.google.com/d/msg/kubernetes-sig-node/gijxbYC7HT8/uOXwZ-J6AwAJ I certainly don't think we should pursue a path where we push metadata down in a stale manner. |
@philips: This was always about immutable metadata being applied to containers when they are created. |
In the discussion in the SIG Node meeting of July 12, 2016 it was agreed that a better approach involves hooks in the revised container runtime (which is being pursued under #28789). So I am closing this feature proposal and will work on the other approach. |
Yeah. Implementing a custom docker runtime based on the new container On Fri, Jul 15, 2016 at 8:45 AM, Mike Spreitzer notifications@github.com
|
Does an operator have to implement a whole new runtime in order to apply Docker labels to the containers? That seems a bit much. |
Docker labels will be applies automatically once docker supports label On Fri, Jul 15, 2016 at 10:59 AM, Mike Spreitzer notifications@github.com
|
@MikeSpreitzer if all you want is to present users/admins kubernetes labels associated with the container. You can easily get the pods and their status via the apiserver, and map the labels to the container IDs before presenting this information. For example, write a script called We also discussed an alternative in the sig-node meeting, you can add your own daemon listening to request, adding labels (which you can get by watch the apiserver) and proxy that to the docker daemon. This doesn't require any change to the kubernetes code. |
My present use case is a cluster operator who uses Kubernetes with the Docker runtime and wants to prescribe an additional Docker container label for every docker container created by Kubernetes, with the label's value derived by a certain computation on certain attributes of the pod that the container is part of. It is important that the extra label actually be one of the Docker container labels, not just integrated in a custom UI. |
That's correct, and I think this is the preferred approach until we can update docker labels. |
@MikeSpreitzer any progress on this feature? |
I don't think this belongs in the 1.5 milestone. As far as I'm aware, there are no concrete plans in sig-node to work on this feature until an upstream docker issue (moby/moby#21721) is resolved. Even once that's resolved, I don't think this has gone through prioritization or reached broad consensus. |
@euank thank you for clarifying. |
Closing this, because --- as noted in the July 20 and 21 comments --- a different approach to supporting the use case is favored. |
cluster logging log forwarding proposal
* change CSI driver Pod icon to DS * drop backRef list from Bucket, add ns list to Class
Move promotion process from issues to a file structure
add notes about storage version and how the storage version is selected
Description
This feature adds a way for users to control metadata tags on their containers. Each of the various container runtimes has a way to put some sort of user tag on containers. Giving users control over this is useful for scenarios in which the user wants to integrate Kubernetes with other platforms and facilities.
Progress Tracker
/pkg/apis/...
)FEATURE_STATUS is used for feature tracking and to be updated by @kubernetes/feature-reviewers.
FEATURE_STATUS: IN_DEVELOPMENT
More advice:
Design
Coding
and sometimes http://github.com/kubernetes/contrib, or other repos.
check that the code matches the proposed feature and design, and that everything is done, and that there is adequate
testing. They won't do detailed code review: that already happened when your PRs were reviewed.
When that is done, you can check this box and the reviewer will apply the "code-complete" label.
Docs
The text was updated successfully, but these errors were encountered: