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

Conversation

@melissamahoney-mongodb
Copy link
Contributor

@melissamahoney-mongodb melissamahoney-mongodb commented Apr 28, 2020

JIRA

Adds installation and basic deploy instructions to the readme.

@melissamahoney-mongodb melissamahoney-mongodb marked this pull request as draft April 28, 2020 05:53
@melissamahoney-mongodb melissamahoney-mongodb marked this pull request as ready for review April 28, 2020 05:53
Copy link
Contributor

@chatton chatton left a comment

Choose a reason for hiding this comment

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

Looks great!

My only concerns are around specifying namespace in the command examples, and also classifying kind as a pre-requisite

README.md Outdated

## Licensing
1. Install [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/)
2. Install [kind](https://kind.sigs.k8s.io/)
Copy link
Contributor

Choose a reason for hiding this comment

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

technically kind isn't a prerequisite, just having any running Kubernetes cluster is. Kind is just an easy way get one up and running on your own machine. What do you think about changing this to be more generic along the lines of have access to a kubernetes cluster and including a recommendation for kind with the relevant link?

Copy link
Contributor

Choose a reason for hiding this comment

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

We discussed this with @chatton.

We should say that "Kubernetes" is a requirement, any flavor; but we use Kind for testing, and that's our recommended testing Kubernetes flavor.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

README.md Outdated
### Installing the MongoDB Community Kubernetes Operator

The MongoDB Agent binary in the agent/ directory may be used under the "Free for Commercial Use" license found in agent/LICENSE.
The MongoDB Community Kubernetes Operator is a collection of [Custom Resource Definitions](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/) and a controller.
Copy link
Contributor

Choose a reason for hiding this comment

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

as of right now it is just a single CRD.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

README.md Outdated
kubectl get crd/mongodb.mongodb.com
```
3. Install the Operator.
a. Invoke the following `kubectl` command to install the Operator in the `default` namespace:
Copy link
Contributor

Choose a reason for hiding this comment

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

this command isn't always guaranteed to create the operator in the default namespace. This will be the case if no namespace is specified in the operator.yaml or one wasn't provided with the kubectl command. And the current context does not have a default namespace specified.

I think we should indicate that you can specify a namespace
kubectl create -f deploy --namespace <some-namespace>

Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of specifying the --namespace <..> we could say that if you want to use a namespace different than default you should specify it on each of the kubectl invokations.

Copy link
Contributor Author

@melissamahoney-mongodb melissamahoney-mongodb Apr 28, 2020

Choose a reason for hiding this comment

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

I see what Cian is saying, because they could have another namespace set in the context, so if they use this it wouldn't necessarily be default. I think its safest just to specify the namespace in every command.

The other option is to include a step on how to set the default namespace in the context, but that might be too much?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think specifying --namespace is a good idea. I'm not inclined to set the default namespace in the context, beause it means chaning the user's configuration globally, making this not easy to integrate with other tools.

README.md Outdated
To install the Operator in a different namespace, append the `--namespace <my-namespace>` option.
b. Verify that the Operator installed successsfully:
```
kubectl get pods
Copy link
Contributor

Choose a reason for hiding this comment

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

same comment about the --namespace/-n

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

README.md Outdated
1. Invoke the following `kubectl` command:
```
kubectl apply -f deploy/crds/mongodb.com_v1_mongodb_cr.yaml
Copy link
Contributor

Choose a reason for hiding this comment

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

some again --namespace

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

README.md Outdated
```
2. Verify that the MongoDB resource deployed:
```
kubectl get mongodb
Copy link
Contributor

Choose a reason for hiding this comment

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

and one last time! --namespace

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@melissamahoney-mongodb melissamahoney-mongodb force-pushed the DOCSP-9305 branch 2 times, most recently from 670b08d to 022b983 Compare April 28, 2020 21:24
@melissamahoney-mongodb
Copy link
Contributor Author

@chatton @rodrigovalin I've updated the PR from your comments. Please take another look when you can. Thanks!

Copy link
Contributor

@chatton chatton left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

LGTM!

@melissamahoney-mongodb
Copy link
Contributor Author

@rodrigovalin @chatton Turns out I don't have write access to the mongodb/mongodb-kubernetes-operator repo. Could one of you merge this PR? Or might be easier for the future to give the "Docs Writers" Github group write access in the repo settings.

@melissamahoney-mongodb melissamahoney-mongodb merged commit cc37d9d into mongodb:master Apr 30, 2020
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.

3 participants