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
Consider exposing petset index via downward api #30427
Comments
I'm going to work on this. |
@kubernetes/api-review-team @pmorie who to tag for downward api requests? |
I agree that this is useful, although we need to be careful about how to On Wed, Aug 17, 2016 at 4:11 PM, Prashanth B notifications@github.com
|
I'd suggest to keep a petset index in pod annotation (i.e. |
It would need to be available via environment as well.
|
Of course. What I'm proposing is:
|
Due to discussion in PR, I decided to make an another issue about exposing annotations via downward API - #31218 In my PR, which is referring to this issue, I will only put an annotation with petset index on dependent pods. Then the general downward API for all annotations will make this petset index accessible. I decided to use annotations, because I (and probably @smarterclayton ) think that we shoud'nt add any fields to Pod in case of alpha/beta features like petsets. |
is there a workaround for this currently ? If we don't want to change the entry point that is. |
You can expose pod name via the downward API. On Mon, Oct 31, 2016 at 1:08 PM, Alex Ouzounis notifications@github.com
|
#30427 (comment), you can even replace POD_NAME with $(hostname) if you're using statefulset (aka petset) |
yeah - we are using PetSet and what we want is just the ordinal exposed in an environment variable i.e. |
Sorry for leaving this issue without any action. PTAL on the issue #31218. It will surely not be touched in 1.5 release, but I've submitted a proposal to be considered for a future release. |
+1 on this feature, regardless of how it's implemented. Currently I'm parsing the pod name, which is awkward and fragile. |
Indeed - we ended doing the same as a postStart lifecycle hook to avoid modifying the docker image |
@pmorie as we discussed we need to fully specify the downward API for On Tue, Nov 15, 2016 at 12:58 PM, Alex Ouzounis notifications@github.com
|
I tried the way name
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
This issue has an active PR. /remove-lifecycle rotten |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle rotten |
/remove-lifecycle rotten This issue has an active PR |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle rotten This issue has an active PR |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/remove-lifecycle rotten This issue has an active PR |
While it's easy enough to get through something like:
IFS='-' read -ra LIST <<< "$POD_NAME"; INDEX=${LIST[1]}
It requires a custom entrypoint. If the ordinal index is a common part of 12 fa apps we should just expose it more naturally through the downward api.
ref #30256
@tobegit3hub
The text was updated successfully, but these errors were encountered: