Add the instructions on how to configure the operator CRs#2273
Add the instructions on how to configure the operator CRs#2273knative-prow-robot merged 19 commits intoknative:masterfrom houshengbo:operator-cr-configuration
Conversation
|
cc @abrennan89 |
abrennan89
left a comment
There was a problem hiding this comment.
Some initial comments - I won't have time to review all of this today because it is a very large PR.
Please visit the developer style guide docs for tips on tone and style of writing - there is a lot of frivolous / unnecessary language in this PR which is taking a very long time for me to review. https://developers.google.com/style/tone
| You are only able to configure Knative Eventing with the following option: | ||
|
|
||
| * Private repository and private secret |
There was a problem hiding this comment.
Change to something like
"Knative Eventing can only be configured using a private repository and private secret."
|
|
||
| * Private repository and private secret | ||
|
|
||
| We configure Eventing operator CR the same way as Serving operator CR, with the same fields. Refer to the section of |
There was a problem hiding this comment.
Change to
"The Knative Eventing operator CR is configured similarly to the Knative Serving operator CR. For more information, see the documentation on Private repository and private secret."
|
|
||
| We configure Eventing operator CR the same way as Serving operator CR, with the same fields. Refer to the section of | ||
| “[Private repository and private secret](configuring-serving-cr.md#private-repository-and-private-secrets)” in Serving operator for detailed instruction. The difference is that Knative | ||
| Eventing Operator only allows us to customize the images for all deployments: `eventing-controller`, `eventing-webhook`, |
There was a problem hiding this comment.
If it's 'all deployments' do we need to list them like this? What do we mean by 'deployments' here?
There was a problem hiding this comment.
It means all deployment resources.
| `imc-controller`, `imc-dispatcher`, and `broker-controller`. You need to either use these names as your names of the images | ||
| in the repository, or to map your image links on a one-on-one basis. | ||
|
|
||
| ## Example 1 — download images in a predefined format without secrets: |
There was a problem hiding this comment.
Remove example part:
"Downloading images in a predefined format without secrets"
| Suppose you use the custom tag v0.13.0 for all your images, and all the image links you have are able to accessible | ||
| without secrets, and defined in the expected format: `docker.io/knative-images/${NAME}:v0.13.0`, you need to define your | ||
| operator CR with following content: |
There was a problem hiding this comment.
Remove language like "Suppose...", again please refer to the https://developers.google.com/style/tone style guide.
Maybe something like:
"In the example below:
- the custom tag
v0.13.0is used for all images - all image links are accessible without using secrets
- images are defined in the accepted format
docker.io/knative-images/${NAME}:{CUSTOM-TAG}"
| No matter you use the key `default` or `override` to define where to download your images, when you need to access your | ||
| images with private secrets, you need to append a section called `imagePullSecrets` under `spec.registry`. | ||
|
|
||
| The secret we are about to use is called `regcred`. It is your responsibility to create the private secrets, used to |
There was a problem hiding this comment.
Instead:
"This example uses a secret named regcred. You must create your own private secrets if these are required."
| - name: regcred | ||
| ``` | ||
|
|
||
| If you need to add another secret called `regcred-2`, add it as below: |
There was a problem hiding this comment.
Remove this, it doesn't add anything IMHO
There was a problem hiding this comment.
I tend to keep this part, because it tells the users this field imagePullSecrets can accept a list of secrets.
| - /docs/operator/configuring-serving-cr/ | ||
| --- | ||
|
|
||
| # Configuring Serving Operator Custom Resource |
There was a problem hiding this comment.
Configuring the Serving operator....
Also, use capitalization consistently. Either use Operator or operator - I think generally docs use lowercase.
|
|
||
| # Configuring Serving Operator Custom Resource | ||
|
|
||
| You are able to configure Knative Serving with the following options: |
There was a problem hiding this comment.
Instead:
"The Knative Serving operator can be configured with these options:"
| * [Knative ingress gateway](#configuration-of-knative-ingress-gateway) | ||
| * [Cluster local gateway](#configuration-of-cluster-local-gateway) | ||
|
|
||
| Currently, Knative operators are __NOT__ able to configure the following options for Knative: |
There was a problem hiding this comment.
Make this a note instead of adding NOT formatting.
e.g.
NOTE: High availability and Kubernetes level policies cannot be configured using the Knative operators."
|
Right now, you're creating a new top-level section "operator" on the website with no front matter; I'd suggest putting your two new docs under |
aliok
left a comment
There was a problem hiding this comment.
The content of the new 2 pages are technically all good.
evankanderson
left a comment
There was a problem hiding this comment.
Thanks for writing this up!
Since I think the goal is to get some documentation in quickly, I took the liberty of rewriting some portions of the text to flow more quickly and actively. Unfortunately, I don't have any great references to recommend for learning to write technical documentation in English more effectively; this is the combination of a number of years of grammar school (Middle School) along with an attempted minor in English).
| `deployment/container` as the unique key. | ||
|
|
||
| Some images are defined via environment variable in Knative Eventing. They can be replaced by taking advantage of the | ||
| `override` field. |
There was a problem hiding this comment.
Not for this PR, but it seems like there should be an issue to track a consistent resolution to this (the queue-proxy seems to be a somewhat similar problem in serving).
There was a problem hiding this comment.
For this PR: can you link an issue that describes the problem (no solution needed)?
There was a problem hiding this comment.
Added this link to the issue.
Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-eventing-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-eventing-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-eventing-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-eventing-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-eventing-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-eventing-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Matt Moore <mattmoor@vmware.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com> Update docs/install/operator/configuring-serving-cr.md Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com>
|
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
evankanderson
left a comment
There was a problem hiding this comment.
A few small points, but looking much better. Thanks!
|
|
||
| The Knative Serving operator can be configured with these options: | ||
|
|
||
| - [All the ConfigMaps](#all-the-configmaps) |
There was a problem hiding this comment.
I just read this, and it reads strangely:
"The Knative Serving operator can be configured with the option 'all the ConfigMaps'."
Maybe "Service Configuration by ConfigMap"?
You probably also want to change the last one to 'System Resource Settings', rather than saying "The Knative Serving operator can be configured with the option 'managing resources for containers'".
|
|
||
| For example, the following KnativeServing resource configures the `activator` to request 0.3 CPU and 100MB of RAM, and sets hard limits of 1 CPU, 250MB RAM, and 4GB of local storage: | ||
|
|
||
| \``` |
There was a problem hiding this comment.
You need to remove the "" here and on line 359. I can't use suggestion blocks for that, because they use the ``` shortcode.
| - [Private repository and private secret](#private-repository-and-private-secrets) | ||
| - [Configuring default broker class](#configuring-default-broker-class) | ||
|
|
||
| __NOTE:__ Kubernetes spec level policies cannot be configured using the Knative operators. |
There was a problem hiding this comment.
I'm not sure what this comment is supposed to mean. Are you trying to say that parts of the Eventing system components which aren't exposed by the operator can't be updated by end-users?
There was a problem hiding this comment.
I think I should remove it for confusion. It did not mean anything informative.
Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com>
Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com>
Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com>
Co-Authored-By: Evan Anderson <evan.k.anderson@gmail.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: evankanderson, houshengbo The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@googlebot I consent |
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
Fixes #2277
The page of configuring serving CR: https://github.com/houshengbo/docs/blob/operator-cr-configuration/docs/install/operator/configuring-serving-cr.md
The page of configuring eventing CR: https://github.com/houshengbo/docs/blob/operator-cr-configuration/docs/install/operator/configuring-eventing-cr.md
Proposed Changes