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

[QUESTION] - How to add a custom plugin via operator installation method #2515

Closed
prnvkv opened this issue Mar 2, 2023 · 2 comments
Closed

Comments

@prnvkv
Copy link

prnvkv commented Mar 2, 2023

Context

Currently in the manifest method of deployment, if we want to add our plugin, we would update the configmap something like this:

cni_network_config: |-
    {
      "name": "k8s-pod-network",
      "cniVersion": "0.3.1",
      "plugins": [
        {
          "type": "calico",
          "log_level": "info",
          "log_file_path": "/var/log/calico/cni/cni.log",
          "datastore_type": "kubernetes",
          "nodename": "__KUBERNETES_NODE_NAME__",
          "mtu": __CNI_MTU__,
          "ipam": {
              "type": "calico-ipam"
          },
          "policy": {
              "type": "k8s"
          },
          "kubernetes": {
              "kubeconfig": "__KUBECONFIG_FILEPATH__"
          }
        },
        {
          "type": "portmap",
          "snat": true,
          "capabilities": {"portMappings": true}
        },
        {
          "type": "bandwidth",
          "capabilities": {"bandwidth": true}
        },
        {
          "type": "my_cni_plugin",
          "DebugOutput": "/tmp/cni_debug.txt"
        }
      ]

How can we do it with Operator installation ?
I was referring to installation API but could not find a way to do it.

@tmjd
Copy link
Member

tmjd commented Mar 6, 2023

The operator does not have a way to add a custom CNI plugin.

@prnvkv
Copy link
Author

prnvkv commented Mar 8, 2023

thanks for the response @tmjd .
In that case the only option is to use Manifest deployments. I guess.

@prnvkv prnvkv closed this as not planned Won't fix, can't repro, duplicate, stale Mar 31, 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

No branches or pull requests

2 participants