-
Notifications
You must be signed in to change notification settings - Fork 521
CLOUDP-65697: Add init container and volumes to architecture doc #64
Conversation
rodrigovalin
left a comment
There was a problem hiding this 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> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 👍
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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.
All Submissions:
closes #XXXXin 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.