Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

[stable/*] Sidecar template pattern #4283

Closed

Description

@scottrigby

In last week's charts office hours we agreed the sidecar containers template pattern being worked on in #3983 is a good, reproducible pattern for all relevant chart templates. Adding this issue to discuss which chart templates are relevant, and track rolling out this feature across them.

Activity

  1. changed the title [-][stable/*] Add sidecar pattern to relevant templates [/-] [+][stable/*] Sidecar template pattern[/+] on Mar 19, 2018
  2. unguiculus commented on Mar 19, 2018

    @unguiculus
    Member

    Couldn't make it to the call. Do we want to proactively update charts? In any case, I think this could be a good addition to our best practices. We may have to extend this pattern with e. g. sidecarVolumes or sidecarSecrets, though. Was this discussed?

  3. scottrigby commented on Mar 19, 2018

    @scottrigby
    MemberAuthor

    @unguiculus It wasn't discussed, but I was thinking something similar. Perhaps we could also rename this to extraContainers, extraVolumes, extraSecrets (similar to how we add extraVars to existing containers on some charts). This way, we're not accidentally recommending any one of the 3 main sidecar patterns, just making charts more flexible - without adding loads of verbose detail logic - for those who want to use it for outlying use cases?

  4. unguiculus commented on Mar 19, 2018

    @unguiculus
    Member

    Another example: #3983

  5. scottrigby commented on Mar 19, 2018

    @scottrigby
    MemberAuthor

    @unguiculus Ah, thanks, this is the example I was looking for initially 😄 I'll update the description.

  6. unguiculus commented on Mar 19, 2018

    @unguiculus
    Member

    Just came across this one: #4059

  7. sathieu commented on Mar 19, 2018

    @sathieu
    Contributor

    With extraSecrets comes extraConfigMaps. And their actual names should be prefixed by the release name to ensure unicity (but this makes them somewhat hidden).

  8. scottrigby commented on Mar 27, 2018

    @scottrigby
    MemberAuthor

    On Today's call, @prydonius suggested we look at https://kubernetes.io/docs/tasks/inject-data-application/podpreset/. It's in alpha right now, so we can't use it yet in stable charts, but it's something we may want to plan on using because it's more robust, and it will keep charts cleaner.

  9. scottrigby commented on Mar 27, 2018

    @scottrigby
    MemberAuthor

    @depohmel suggested recommending an umbrella chart with this would be a good pattern.

    Note this will need to be tested out

  10. depohmel commented on Mar 27, 2018

    @depohmel

    @scottrigby @prydonius
    I got this one when trying to use containers: in PodPreset :(

    error: error validating "pod-preset.yaml": error validating data: found invalid field containers for v1alpha1.PodPresetSpec; 
    

    also here is the api proto https://github.com/kubernetes/api/blob/master/settings/v1alpha1/generated.proto

  11. scottrigby commented on Mar 29, 2018

    @scottrigby
    MemberAuthor

    @depohmel Bummer, PodPreset still sounds like an elegant solution for this use case.

    So far I see two options for supporting sidecars in charts now:

    1. Work on "Admission Controller: Enhance PodPreset to inject containers and init containers" Admission Controller: Enhance PodPreset to inject containers and init containers kubernetes/kubernetes#43874
    2. Adopt the patters [stable/nginx-ingress] Add support for extraContainers, extraVolumeMounts and extraVolumes #3983 + [stable/prometheus] extraSecretMounts support #4059 on an as-needed basis (we can still do this to unblock people while working on option 1)

    Though still open to other ideas.

  12. prydonius commented on Mar 29, 2018

    @prydonius
    Member

    Thanks @scottrigby, agreed and both options sound good to me. Might be a good idea to bring up kubernetes/kubernetes#43874 to see if people are interested in it, and if so try to push it through.

  13. fejta-bot commented on Jun 27, 2018

    @fejta-bot

    Issues go stale after 90d of inactivity.
    Mark the issue as fresh with /remove-lifecycle stale.
    Stale issues rot after an additional 30d of inactivity and eventually close.

    If this issue is safe to close now please do so with /close.

    Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
    /lifecycle stale

  14. added
    lifecycle/stale
    on Jun 27, 2018
  15. stale commented on Aug 8, 2018

    @stale

    This issue is being automatically closed due to inactivity.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/stale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions