Skip to content

Add the instructions on how to configure the operator CRs#2273

Merged
knative-prow-robot merged 19 commits intoknative:masterfrom
houshengbo:operator-cr-configuration
Apr 17, 2020
Merged

Add the instructions on how to configure the operator CRs#2273
knative-prow-robot merged 19 commits intoknative:masterfrom
houshengbo:operator-cr-configuration

Conversation

@houshengbo
Copy link
Copy Markdown

@houshengbo houshengbo commented Mar 4, 2020

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

  • This PR adds the the documentation on how to configure Knative by configuring the operator CRs.

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Mar 4, 2020
@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 4, 2020
@aliok
Copy link
Copy Markdown
Member

aliok commented Mar 5, 2020

cc @abrennan89

Copy link
Copy Markdown
Contributor

@abrennan89 abrennan89 left a comment

Choose a reason for hiding this comment

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

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

Comment on lines +11 to +13
You are only able to configure Knative Eventing with the following option:

* Private repository and private secret
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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`,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If it's 'all deployments' do we need to list them like this? What do we mean by 'deployments' here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

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:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove example part:
"Downloading images in a predefined format without secrets"

Comment on lines +23 to +25
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:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.0 is 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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove this, it doesn't add anything IMHO

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I tend to keep this part, because it tells the users this field imagePullSecrets can accept a list of secrets.

Comment thread docs/operator/configuring-serving-cr.md Outdated
- /docs/operator/configuring-serving-cr/
---

# Configuring Serving Operator Custom Resource
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Configuring the Serving operator....

Also, use capitalization consistently. Either use Operator or operator - I think generally docs use lowercase.

Comment thread docs/operator/configuring-serving-cr.md Outdated

# Configuring Serving Operator Custom Resource

You are able to configure Knative Serving with the following options:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Instead:

"The Knative Serving operator can be configured with these options:"

Comment thread docs/operator/configuring-serving-cr.md Outdated
* [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:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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."

@knative-prow-robot knative-prow-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 17, 2020
@evankanderson
Copy link
Copy Markdown
Member

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 docs/install/operator.

@abrennan89 abrennan89 added this to the 0.14.x milestone Mar 27, 2020
Copy link
Copy Markdown
Member

@aliok aliok left a comment

Choose a reason for hiding this comment

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

The content of the new 2 pages are technically all good.

Copy link
Copy Markdown
Member

@evankanderson evankanderson left a comment

Choose a reason for hiding this comment

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

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).

Comment thread docs/install/operator/configuring-eventing-cr.md Outdated
Comment thread docs/install/operator/configuring-eventing-cr.md Outdated
`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.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For this PR: can you link an issue that describes the problem (no solution needed)?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Added this link to the issue.

Comment thread docs/install/operator/configuring-eventing-cr.md Outdated
Comment thread docs/install/operator/configuring-eventing-cr.md Outdated
Comment thread docs/install/operator/configuring-serving-cr.md Outdated
Comment thread docs/install/operator/configuring-serving-cr.md Outdated
Comment thread docs/install/operator/configuring-serving-cr.md Outdated
Comment thread docs/install/operator/configuring-serving-cr.md Outdated
Comment thread docs/install/operator/configuring-serving-cr.md Outdated
Vincent and others added 2 commits April 17, 2020 15:58
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>
@googlebot
Copy link
Copy Markdown

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 @googlebot I consent. in this pull request.

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 cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: no Indicates the PR's author has not signed the CLA. and removed cla: yes Indicates the PR's author has signed the CLA. labels Apr 17, 2020
Copy link
Copy Markdown
Member

@evankanderson evankanderson left a comment

Choose a reason for hiding this comment

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

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)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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'".

Comment thread docs/install/operator/configuring-serving-cr.md Outdated
Comment thread docs/install/operator/configuring-serving-cr.md Outdated
Comment thread docs/install/operator/configuring-serving-cr.md Outdated

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:

\```
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You need to remove the "" here and on line 359. I can't use suggestion blocks for that, because they use the ``` shortcode.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

done

Comment thread docs/install/operator/configuring-serving-cr.md Outdated
- [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.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I think I should remove it for confusion. It did not mean anything informative.

Vincent and others added 5 commits April 17, 2020 17:52
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>
Copy link
Copy Markdown
Member

@evankanderson evankanderson left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 17, 2020
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@evankanderson
Copy link
Copy Markdown
Member

@googlebot I consent

@googlebot
Copy link
Copy Markdown

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@googlebot googlebot added cla: yes Indicates the PR's author has signed the CLA. and removed cla: no Indicates the PR's author has not signed the CLA. labels Apr 17, 2020
@knative-prow-robot knative-prow-robot merged commit c79c75a into knative:master Apr 17, 2020
@abrennan89 abrennan89 mentioned this pull request Jun 11, 2020
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add the docs on how to configure Knative with Operator CRs

7 participants