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
Note: this will build and push the operator at `repo_url/mongodb-kubernetes-operator`, where `repo_url` is extracted from the [dev config file](./contributing.md#developing-locally)
42
43
43
-
5. Change the [operator yaml file](../deploy/operator.yaml)`image` field to have the image you just built
44
+
5. Change the [manager yaml file](../config/manager/manager.yaml)`image` field to have the image you just built
44
45
45
46
6. You can now deploy your resources following the [docs](../docs/README.md)
Copy file name to clipboardexpand all lines: docs/deploy-configure.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Deploy and Configure a MongoDB Resource #
2
2
3
-
The [`/deploy/crds`](../deploy/crds) directory contains example MongoDB resources that you can modify and deploy.
3
+
The [`/config/samples`](../config/samples) directory contains example MongoDB resources that you can modify and deploy.
4
4
5
5
## Table of Contents
6
6
@@ -15,10 +15,10 @@ The [`/deploy/crds`](../deploy/crds) directory contains example MongoDB resource
15
15
16
16
To deploy your first replica set:
17
17
18
-
1. Replace `<your-password-here>` in deploy/crds/mongodb.com_v1_mongodbcommunity_cr.yaml to the password you wish to use.
18
+
1. Replace `<your-password-here>` in [config/samples/mongodb.com_v1_mongodbcommunity_cr.yaml](../config/samples/mongodb.com_v1_mongodbcommunity_cr.yaml) to the password you wish to use.
@@ -130,7 +130,7 @@ To upgrade this resource from `4.0.6` to `4.2.7`:
130
130
131
131
To deploy the operator on OpenShift you will have to provide the environment variable `MANAGED_SECURITY_CONTEXT` set to `true` for both the `mongodb` and `mongodb-agent` containers, as well as the operator deployment.
132
132
133
-
See [here](../deploy/crds/mongodb.com_v1_mongodbcommunity_openshift_cr.yaml) for
133
+
See [here](/config/samples/mongodb.com_v1_mongodbcommunity_openshift_cr.yaml) for
134
134
an example of how to provide the required configuration for a MongoDB
Copy file name to clipboardexpand all lines: docs/install-upgrade.md
+28-10
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ You scope the Operator to a namespace. The Operator watches MongoDB resources in
42
42
43
43
To configure the Operator to watch resources in other namespaces:
44
44
45
-
1. In the Operator [resource definition](../deploy/operator/operator.yaml), set the `WATCH_NAMESPACE` environment variable to one of the following values:
45
+
1. In the Operator [resource definition](../config/manager/manager.yaml), set the `WATCH_NAMESPACE` environment variable to one of the following values:
46
46
47
47
- the namespace that you want the Operator to watch, or
48
48
-`*` to configure the Operator to watch all namespaces in the cluster.
@@ -77,24 +77,40 @@ To configure the Operator to watch resources in other namespaces:
77
77
78
78
The MongoDB Community Kubernetes Operator is a [Custom Resource Definition](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/) and a controller.
79
79
80
+
The Operator can be installed using the [Makefile](../Makefile) provided by `operator-sdk`
81
+
80
82
To install the MongoDB Community Kubernetes Operator:
81
83
82
84
1. Change to the directory in which you cloned the repository.
83
85
2. Install the [Custom Resource Definitions](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/).
b. Verify that the Operator installed successsfully:
100
116
```
@@ -103,10 +119,12 @@ To install the MongoDB Community Kubernetes Operator:
103
119
104
120
## Upgrade the Operator
105
121
106
-
To upgrade the MongoDB Community Kubernetes Operator:
122
+
To upgrade the MongoDB Community Kubernetes Operator to a specific version:
107
123
108
-
1. Change to the directory in which you cloned the repository.
109
-
2. Invoke the following `kubectl` command to upgrade the [Custom Resource Definitions](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/).
124
+
1. Change the version in the [operator yaml file](../config/manager/manager.yaml)
125
+
2. Change to the directory in which you cloned the repository.
126
+
3. Checkout the specific tag matching the operator version (e.g. `v0.5.1`)
127
+
4. Invoke the following `kubectl` command to upgrade the [Custom Resource Definitions](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/).
0 commit comments