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

Specify cluster default network with a new CRD object. #157

Closed
pliurh opened this issue Sep 27, 2018 · 1 comment
Closed

Specify cluster default network with a new CRD object. #157

pliurh opened this issue Sep 27, 2018 · 1 comment

Comments

@pliurh
Copy link
Contributor

pliurh commented Sep 27, 2018

In additional to #131 and #153 , I think it would be better to specify the cluster default network with a CRD object instead of config files. My idea is to create a new CRD object. It may looks like:

apiVersion: "k8s.cni.cncf.io/v1"
kind: MultusDefaultNetwork
metadata:
  name: default
spec: 
  networkAttachememntDefinition: default/calico

Multus can get the name of default network from this CRD object, then retrieve the CNI config from that networkAttachememntDefinition object.

There are some advantages I can think of:

  1. When administrator want to switch the default network from one to another, he doesn't need to update the file on each node.
  2. It ensures consistency of the default network config across the cluster.
  3. It can be accessed though kube API.
@pliurh
Copy link
Contributor Author

pliurh commented Mar 1, 2019

@s1061123 @dougbtv I wonder if this issue can be re-open as a Feature Request. As this would be helpful for some scenarios like cluster network migration, where user can switch the cluster default CNI through the customer resource instead of updating multus.conf file on each host.

@dougbtv dougbtv reopened this Mar 1, 2019
@dougbtv dougbtv closed this as completed Mar 1, 2019
pliurh pushed a commit to pliurh/multus-cni that referenced this issue Sep 22, 2023
…nsistency-openshift-4.14-multus-cni

Updating multus-cni images to be consistent with ART
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

No branches or pull requests

2 participants