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

Conversation

@fabianlindfors
Copy link
Contributor

All Submissions:

  • Have you opened an Issue before filing this PR?
  • Have you signed our CLA?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).

This PR adds a description of the pre-stop hook init container and the volumes to architecture.md. There was a TODO comment for this.

Copy link
Contributor

@rodrigovalin rodrigovalin left a comment

Choose a reason for hiding this comment

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

A few clarifications about the nature of the volumes mounted.

architecture.md Outdated
1. Writes the Automation configuration as a [ConfigMap](https://kubernetes.io/docs/concepts/configuration/configmap/) and mounts it to each pod.
1. Creates one [init container](https://kubernetes.io/docs/concepts/workloads/pods/init-containers/) and two [containers](https://kubernetes.io/docs/concepts/containers/overview/) in each pod:

- An init container which copies the `cmd/prestop` binary to the main `mongod` container. </br>
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the </br> doing here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's a break for every item in the containers list since before. Should we remove that?

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you check if it is necessary? if not needed, please remove 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's fine without them, removed.

architecture.md Outdated
1. Creates several volumes:

- `data-volume` which is [persistent](https://kubernetes.io/docs/concepts/storage/persistent-volumes/) and mounts to `/data` on both the server and agent containers. Stores server data as well as `automation-mongod.conf` written by the agent and some locks the agent needs.
- `automation-config` which holds the mounted Automation config used by both the server and agent.
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe indicate that this is ephemeral storage (mounted from a configmap)?

architecture.md Outdated

- `data-volume` which is [persistent](https://kubernetes.io/docs/concepts/storage/persistent-volumes/) and mounts to `/data` on both the server and agent containers. Stores server data as well as `automation-mongod.conf` written by the agent and some locks the agent needs.
- `automation-config` which holds the mounted Automation config used by both the server and agent.
- `healthstatus` which contains the agent's current status. This is shared with the `mongod` container where it's used by the pre-stop hook.
Copy link
Contributor

Choose a reason for hiding this comment

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

this is also ephemeral and lasts for as long as the Pod where it resides.

@fabianlindfors fabianlindfors merged commit 75bd503 into master Jun 19, 2020
@fabianlindfors fabianlindfors deleted the CLOUDP-65697_document_volumes branch June 19, 2020 11:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants