Skip to content

Allow teleport-cluster-agent chart to use an existing volume for the data directory#7096

Merged
webvictim merged 11 commits intogravitational:masterfrom
stefansedich:teleport-cluster-agent-volume
Aug 19, 2021
Merged

Allow teleport-cluster-agent chart to use an existing volume for the data directory#7096
webvictim merged 11 commits intogravitational:masterfrom
stefansedich:teleport-cluster-agent-volume

Conversation

@stefansedich
Copy link
Copy Markdown
Contributor

@stefansedich stefansedich commented May 28, 2021

We need to be able to mount an existing persisted volume for our data directory. This PR allows the user to use another volume via extraVolumes and then change the volume used for the data directory mount.

It keeps the existing behavior of creating the emptyDir volume by default but once existingDataVolume is set it will not create the volume anymore and assume the user has added the volume via extraVolumes.

@stefansedich stefansedich force-pushed the teleport-cluster-agent-volume branch from c57fb4f to ef336d7 Compare May 28, 2021 19:20
@benarent benarent requested a review from webvictim May 28, 2021 19:25
@benarent
Copy link
Copy Markdown
Contributor

Hi @stefansedich Thanks for your first PR. I've assigned @webvictim to review this PR

@stefansedich
Copy link
Copy Markdown
Contributor Author

@webvictim wondering if you had a chance to look over this PR, let me know if there is anything I need to change to get it merged.

@russjones russjones added the helm label Jun 3, 2021
@russjones
Copy link
Copy Markdown
Contributor

@webvictim Can you review?

Copy link
Copy Markdown
Contributor

@webvictim webvictim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this change itself is OK - there's another PR in #7123 which also modifies this behaviour, but I consider this
approach to be much simpler and easier to understand.

Please add this value to the Helm chart reference at https://github.com/gravitational/teleport/blob/master/docs/pages/kubernetes-access/helm/reference.mdx so it's kept up to date.

@stefansedich
Copy link
Copy Markdown
Contributor Author

I think that this change itself is OK - there's another PR in #7123 which also modifies this behaviour, but I consider this
approach to be much simpler and easier to understand.

Please add this value to the Helm chart reference at https://github.com/gravitational/teleport/blob/master/docs/pages/kubernetes-access/helm/reference.mdx so it's kept up to date.

Docs added @webvictim this should be good to go!

Copy link
Copy Markdown
Contributor

@webvictim webvictim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stefansedich Thanks - this will be merged once it has another approving review.

Comment thread docs/pages/kubernetes-access/helm/reference.mdx
Comment thread examples/chart/teleport-kube-agent/templates/deployment.yaml
@stefansedich
Copy link
Copy Markdown
Contributor Author

@inertial-frame what was needed now to get this PR in? I would love to move off our fork.

@webvictim
Copy link
Copy Markdown
Contributor

webvictim commented Aug 18, 2021

@stefansedich He’s no longer with Teleport, this one just needs a rubber stamp.

@webvictim webvictim enabled auto-merge (squash) August 18, 2021 22:32
Copy link
Copy Markdown
Contributor

@russjones russjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bot.

@russjones
Copy link
Copy Markdown
Contributor

@webvictim Please backport this to branch/v7 as well, that's where we will be releasing Helm charts from soon.

@webvictim webvictim merged commit 8c833ec into gravitational:master Aug 19, 2021
webvictim added a commit that referenced this pull request Aug 20, 2021
…data directory (#7096)

* Allow teleport-cluster-agent chart to use an existing volume for the data

Co-authored-by: Gus Luxton <gus@goteleport.com>
webvictim added a commit that referenced this pull request Aug 26, 2021
* Add abilty to configure postStart handler for teleport-cluster chart (#7168)

* Add support for PDB with the teleport-cluster helm chart (#7138)

* Allow teleport-cluster-agent chart to use an existing volume for the data directory (#7096)

* Mount teleport-tls to the init container for the teleport-cluster helm chart (#7166)

* add support for running agent helm chart on persistent volume (#7123)

* helm: Make auth type configurable (#7508)

* Add imagePullSecrets in kube-agent chart (#6941)

Co-authored-by: Gus Luxton <gus@goteleport.com>
Co-authored-by: Stefan Sedich <stefan.sedich@gmail.com>
Co-authored-by: Kevin Nisbet <kevin@gravitational.com>
Co-authored-by: Antonio Gurgel <66754096+antonio-te@users.noreply.github.com>
Co-authored-by: Aymen Memni <7290430+amemni@users.noreply.github.com>
zmb3 pushed a commit that referenced this pull request Sep 23, 2021
…data directory (#7096)

* Allow teleport-cluster-agent chart to use an existing volume for the data

Co-authored-by: Gus Luxton <gus@goteleport.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants