Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
serviceAccountName: mongodb-kubernetes-operator
containers:
- name: mongodb-kubernetes-operator
image: quay.io/mongodb/mongodb-kubernetes-operator:0.5.2
image: quay.io/mongodb/mongodb-kubernetes-operator:0.6.0
command:
- /usr/local/bin/entrypoint
imagePullPolicy: Always
Expand All @@ -36,7 +36,7 @@ spec:
- name: VERSION_UPGRADE_HOOK_IMAGE
value: quay.io/mongodb/mongodb-kubernetes-operator-version-upgrade-post-start-hook:1.0.2
- name: READINESS_PROBE_IMAGE
value: quay.io/mongodb/mongodb-kubernetes-readinessprobe:1.0.1
value: quay.io/mongodb/mongodb-kubernetes-readinessprobe:1.0.3
- name: MONGODB_IMAGE
value: "library/mongo"
- name: MONGODB_REPO_URL
Expand Down
8 changes: 6 additions & 2 deletions deploy/openshift/operator_openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
serviceAccountName: mongodb-kubernetes-operator
containers:
- name: mongodb-kubernetes-operator
image: quay.io/mongodb/mongodb-kubernetes-operator:0.5.2
image: quay.io/mongodb/mongodb-kubernetes-operator:0.6.0
command:
- mongodb-kubernetes-operator
imagePullPolicy: Always
Expand All @@ -35,6 +35,10 @@ spec:
- name: AGENT_IMAGE # The MongoDB Agent the operator will deploy to manage MongoDB deployments
value: quay.io/mongodb/mongodb-agent:10.29.0.6830-1
- name: READINESS_PROBE_IMAGE
value: quay.io/mongodb/mongodb-kubernetes-readinessprobe:1.0.1
value: quay.io/mongodb/mongodb-kubernetes-readinessprobe:1.0.3
- name: VERSION_UPGRADE_HOOK_IMAGE
value: quay.io/mongodb/mongodb-kubernetes-operator-version-upgrade-post-start-hook:1.0.2
- name: MONGODB_IMAGE
value: "library/mongo"
- name: MONGODB_REPO_URL
value: "registry.hub.docker.com"
3 changes: 2 additions & 1 deletion dev_notes/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
Remove the current operator deployment
- `kubectl delete deployment <operator-deployment>`
Delete the existing StatefulSet for the MongoDBCommunity resource
Note: to ensure existing data is not lost, ensure that the retain policy of your Persistent Volumes is configured correctly.
Note: to ensure existing data is not lost, ensure that the retain policy of your Persistent Volumes is configured correctly. Please reference the [official docs](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#reclaiming) for these configuration options.
- `kubectl delete statefulset <mdb-resource-name>`
Install the new operator
- follow the regular [installation instruction](https://github.com/mongodb/mongodb-kubernetes-operator/blob/master/docs/install-upgrade.md)
Expand All @@ -25,3 +25,4 @@
## Updated Image Tags
* mongodb-kubernetes-operator:0.6.0
* mongodb-agent:0.29.0.6830-1
* mongodb-kubernetes-readinessprobe:1.0.3
28 changes: 28 additions & 0 deletions dev_notes/past_release_notes/v0.6.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# MongoDB Kubernetes Operator 0.6.0
## Kubernetes Operator

* Breaking Changes
* A new VolumeClaimTemplate has been added `logs-volume`. When you deploy the operator, if there is an existing StatefulSet the operator will attempt to perform an invalid update. The existing StatefulSet must be deleted before upgrading the operator.

* The user of the mongod and mongodb-agent containers has changed. This means that there will be permissions
issues when upgrading from an earlier version of the operator. In order to update the permissions in the volume, you can use an init container.

* Upgrade instructions

Remove the current operator deployment
- `kubectl delete deployment <operator-deployment>`
Delete the existing StatefulSet for the MongoDBCommunity resource
Note: to ensure existing data is not lost, ensure that the retain policy of your Persistent Volumes is configured correctly.
Copy link
Contributor

@irajdeep irajdeep Apr 23, 2021

Choose a reason for hiding this comment

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

nit: I think we should mention here how to verify this since it's a crucial step.

- `kubectl delete statefulset <mdb-resource-name>`
Install the new operator
- follow the regular [installation instruction](https://github.com/mongodb/mongodb-kubernetes-operator/blob/master/docs/install-upgrade.md)
Patch the StatefulSet once it has been created. This will add an init container that will update the permissions of the existing volume.
- `kubectl patch statefulset <sts-name> --type='json' --patch '[ {"op":"add","path":"/spec/template/spec/initContainers/-", "value": { "name": "change-data-dir-permissions", "image": "busybox", "command": [ "chown", "-R", "2000", "/data" ], "securityContext": { "runAsNonRoot": false, "runAsUser": 0, "runAsGroup":0 }, "volumeMounts": [ { "mountPath": "/data", "name" : "data-volume" } ] } } ]'`

* Bug fixes
* Fixes an issue that prevented the agents from reaching goal state when upgrading minor version of MongoDB.

## Updated Image Tags
* mongodb-kubernetes-operator:0.6.0
* mongodb-agent:0.29.0.6830-1
* mongodb-kubernetes-readinessprobe:1.0.3
2 changes: 1 addition & 1 deletion release.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"mongodb-kubernetes-operator": "0.5.2",
"mongodb-kubernetes-operator": "0.6.0",
"version-upgrade-hook": "1.0.2",
"readiness-probe": "1.0.3",
"agent": {
Expand Down