You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: architecture.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ You create and update MongoDB resources by defining a MongoDB resource definitio
16
16
1. Writes the Automation configuration as a [ConfigMap](https://kubernetes.io/docs/concepts/configuration/configmap/) and mounts it to each pod.
17
17
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:
18
18
19
-
- An init container which copies the `cmd/prestop` binary to the main `mongod` container. [This pre-stop hook](https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/) is used during[version upgrades](#example-mongodb-version-upgrade).
19
+
- An init container which copies the `cmd/versionhook` binary to the main `mongod` container. This is run before `mongod` starts to handle[version upgrades](#example-mongodb-version-upgrade).
20
20
21
21
- A container for the [`mongod`](https://docs.mongodb.com/manual/reference/program/mongod/index.html) process binary. `mongod` is the primary daemon process for the MongoDB system. It handles data requests, manages data access, and performs background management operations.
22
22
@@ -61,7 +61,7 @@ When you update the MongoDB version in your resource definition and reapply it t
61
61
62
62
1. The MongoDB Agent chooses the first pod to upgrade and stops the `mongod` process using a local connection and [`db.shutdownServer`](https://docs.mongodb.com/manual/reference/method/db.shutdownServer/#db.shutdownServer).
63
63
64
-
1.A pre-stop hook on the database container checks the state of the MongoDB Agent. If the MongoDB Agent expects the `mongod` process to start with a new version, the hook uses a Kubernetes API call to delete the pod.
64
+
1.Kubernetes will restart the `mongod` container causing the version change hook to run and check the state of the MongoDB Agent. If the MongoDB Agent expects the `mongod` process to start with a new version, the hook uses a Kubernetes API call to delete the pod.
65
65
66
66
1. The Kubernetes Controller downloads the target version of MongoDB from its default docker registry and restarts the pod with the target version of `mongod` in the database container.
namespace=flag.String("namespace", "default", "the namespace the operator and tests should be deployed in")
45
45
deployDir=flag.String("deployDir", "deploy/", "the path to the directory which contains the yaml deployment files")
46
46
operatorImage=flag.String("operatorImage", "quay.io/mongodb/community-operator-dev:latest", "the image which should be used for the operator deployment")
47
-
preHookImage=flag.String("preHookImage", "quay.io/mongodb/community-operator-prehook:latest", "the prestophook image")
47
+
versionUpgradeHookImage=flag.String("versionUpgradeHookImage", "quay.io/mongodb/community-operator-pre-stop-hook:latest", "the version upgrade post-start hook image")
48
48
testImage=flag.String("testImage", "quay.io/mongodb/community-operator-e2e:latest", "the image which should be used for the operator e2e tests")
49
49
test=flag.String("test", "", "test e2e test that should be run. (name of folder containing the test)")
50
50
performCleanup=flag.String("performCleanup", "1", "specifies whether to performing a cleanup the context or not")
0 commit comments