Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

featureGate in Configmap instead of Deployment. And add helm value #40

Closed
wants to merge 1 commit into from

Conversation

panpan0000
Copy link

@panpan0000 panpan0000 commented Mar 1, 2023

To fix : original doc tells the featureGate and conf in deployment, but actually, it's inside configmap antrea-config.

To enhance: provides helm --set values when people install antrea by helm.

@netlify
Copy link

netlify bot commented Mar 1, 2023

Deploy Preview for gracious-lamport-f690a0 ready!

Name Link
🔨 Latest commit 43f4bb0
🔍 Latest deploy log https://app.netlify.com/sites/gracious-lamport-f690a0/deploys/63fede94fae8d0000814a639
😎 Deploy Preview https://deploy-preview-40--gracious-lamport-f690a0.netlify.app/docs/main/docs/antrea-ipam
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

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

@panpan0000 thank you for the PR. However, the content in the website repo is mirrored from the antrea repo: https://github.com/antrea-io/antrea/blob/main/docs/antrea-ipam.md. Changes made to website directly would be overwriten, could you open a PR to https://github.com/antrea-io/antrea instead?

And

Alternatively, you can use the following helm installation command to configure the above options:
```bash
helm install antrea antrea/antrea --namespace kube-system --set featureGates.L7NetworkPolicy=true,disableTXChecksumOffload=true
```
may be refered to describe how to provide an instruction example for helm installation.

Comment on lines 91 to 92
configuration parameter of `antrea-agent` to `true`. when antrea was installed
by helm, just simplily modify the helm chart `values.yaml` to set:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
configuration parameter of `antrea-agent` to `true`. when antrea was installed
by helm, just simplily modify the helm chart `values.yaml` to set:
configuration parameter of `antrea-agent` to `true`. When Antrea is installed
by helm, just simply modify the helm chart `values.yaml` to set:

configuration parameter of `antrea-agent` to `true`. when antrea was installed
by helm, just simplily modify the helm chart `values.yaml` to set:
- `enableBridgingMode: true`
- `featureGates: {AntreaIPAM}`
Copy link
Member

Choose a reason for hiding this comment

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

I think the values need to be a map: {AntreaIPAM: true}

- `featureGates: {AntreaIPAM}`
- `trafficEncapMode: "noEncap"`
- `noSNAT: true`
Failed to validate: failed to validate AntreaIPAM config: Bridging mode requires noSNAT
Copy link
Member

Choose a reason for hiding this comment

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

mispasted?

@@ -88,8 +88,14 @@ IPPool annotation, or when the `AntreaIPAM` feature is disabled.

To enable flexible IPAM, you need to enable the `AntreaIPAM` feature gate for
both `antrea-controller` and `antrea-agent`, and set the `enableBridgingMode`
configuration parameter of `antrea-agent` to `true`. The needed changes in the
Antrea deployment YAML are:
Copy link
Member

Choose a reason for hiding this comment

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

"the Antrea deployment YAML" here means the manifest YAML used to deploy Antrea, not the antrea-controller deployment resource. But it's good to make it more specific.

- `trafficEncapMode: "noEncap"`
- `noSNAT: true`
Failed to validate: failed to validate AntreaIPAM config: Bridging mode requires noSNAT
Otherwise, the needed changes in the Antrea configmap `antrea-config` YAML are:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Otherwise, the needed changes in the Antrea configmap `antrea-config` YAML are:
Otherwise, the needed changes in the Antrea ConfigMap `antrea-config` are:

Comment on lines 115 to 116


Copy link
Member

Choose a reason for hiding this comment

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

unneeded change

@panpan0000 panpan0000 force-pushed the main branch 2 times, most recently from 2756d2a to fe97541 Compare March 1, 2023 05:10
Signed-off-by: Peter Pan <Peter.Pan@daocloud.io>
@panpan0000
Copy link
Author

@panpan0000 thank you for the PR. However, the content in the website repo is mirrored from the antrea repo: https://github.com/antrea-io/antrea/blob/main/docs/antrea-ipam.md. Changes made to website directly would be overwriten, could you open a PR to https://github.com/antrea-io/antrea instead?

And

Alternatively, you can use the following helm installation command to configure the above options:
```bash
helm install antrea antrea/antrea --namespace kube-system --set featureGates.L7NetworkPolicy=true,disableTXChecksumOffload=true
```

may be refered to describe how to provide an instruction example for helm installation.

Thank you @tnqn , move PR to antrea-io/antrea#4665

@panpan0000 panpan0000 closed this Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants