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

renewing token when there is vault DR change #12

@rajarajanpsj

Description

@rajarajanpsj

If we configure this authenticator as an initContainer instead of sidecar, then whenever there is DR switch on the vault side, the token needs to be renewed. What is actually happening is, container exits with non zero code because vault token is invalid (because of the Vault DR activity that shifted to a new datacenter and hence new vault instance). Now kubernetes keeps restarting THIS container again and again which re-uses the old token from the initContainer. There isnt a way to recreate the pod automatically so that initContainer runs again and gets the new token from the newly shifted datacenter. Is sidecar a better approach in this case instead of initContainer or is there a way to make initContiner run again to fetch the new token?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions