-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
When using cilium CNI, install Cilium CLI #9436
When using cilium CNI, install Cilium CLI #9436
Conversation
Hi @dcwbq. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI is failing with 'cilium_cli_version' is undefined
.
roles/download/defaults/main.yml
Outdated
@@ -117,6 +117,7 @@ weave_version: 2.8.1 | |||
pod_infra_version: "3.7" | |||
|
|||
cilium_version: "v1.12.1" | |||
calico_cli_version: "v0.12.4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it should be cilium_cli_version
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
THX
224c10e
to
3fbd891
Compare
calicoctl is effectively used by Kubespray when calico is the network plugin:
As cilium CLI is not, perhaps it should be made optional. |
you can also do some status checks and connectivity tests via the cilium-cli (connectivity option is useful). For the original purpose, I wanted to try to enable clustermesh in kubesprayt, so I had to use ciliumcli |
3fbd891
to
6e268e8
Compare
roles/download/defaults/main.yml
Outdated
dest: "{{ local_release_dir }}/cilium" | ||
sha256: "{{ ciliumcli_binary_checksum }}" | ||
url: "{{ ciliumcli_download_url }}" | ||
mirrors: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The cilium cli may not needs mirror.
Only one mirror URL is not reasonable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The cilium cli may not needs mirror. Only one mirror URL is not reasonable.
THX
roles/download/defaults/main.yml
Outdated
url: "{{ ciliumcli_download_url }}" | ||
mirrors: | ||
- "{{ ciliumcli_download_url }}" | ||
unarchive: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The unarchive may be true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The unarchive may be true
THX
src: "{{ local_release_dir }}/cilium" | ||
dest: "{{ bin_dir }}/cilium" | ||
mode: 0755 | ||
remote_src: yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there needs a new line
6e268e8
to
37ccd7e
Compare
roles/download/defaults/main.yml
Outdated
@@ -117,6 +117,7 @@ weave_version: 2.8.1 | |||
pod_infra_version: "3.7" | |||
|
|||
cilium_version: "v1.12.1" | |||
cilium_cli_version: "v0.12.4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update to latest cilium-cli version (v0.12.5).
37ccd7e
to
7f51a63
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Download fails with:
TASK [download : download_file | Validate mirrors] *******************************************************************************************************************************************
failed: [node1] (item=”https://github.com/cilium/cilium-cli/releases/download/v0.12.5/cilium-linux-amd64.tar.gz“) => {"ansible_loop_var": "mirror", "attempts": 4, "changed": false,
"elapsed": 0, "mirror": "”https://github.com/cilium/cilium-cli/releases/download/v0.12.5/cilium-linux-amd64.tar.gz“", "msg": "Status code was -1 and not [200]: Request failed: <urlopen error
unknown url type: ”https>", "redirected": false, "status": -1, "url": "”https://github.com/cilium/cilium-cli/releases/download/v0.12.5/cilium-linux-amd64.tar.gz“"}
Quotes are invalid, which cause Ansible to think that the URL is "”https://github.com/cilium/cilium-cli/releases/download/v0.12.5/cilium-linux-amd64.tar.gz“"
.
roles/download/defaults/main.yml
Outdated
@@ -158,6 +159,7 @@ cni_download_url: "https://github.com/containernetworking/plugins/releases/downl | |||
calicoctl_download_url: "https://github.com/projectcalico/calico/releases/download/{{ calico_ctl_version }}/calicoctl-linux-{{ image_arch }}" | |||
calicoctl_alternate_download_url: "https://github.com/projectcalico/calicoctl/releases/download/{{ calico_ctl_version }}/calicoctl-linux-{{ image_arch }}" | |||
calico_crds_download_url: "https://github.com/projectcalico/calico/archive/{{ calico_version }}.tar.gz" | |||
ciliumcli_download_url: ”https://github.com/cilium/cilium-cli/releases/download/{{ cilium_cli_version }}/cilium-linux-{{ image_arch }}.tar.gz“ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The quotes are wrong: you use ” “
where YAML quotes should be " "
.
Signed-off-by: dcwbq <biqiang.wu@daocloud.io>
7f51a63
to
00e9a07
Compare
/ok-to-test |
Thanks @dcwbq! |
Thanks @dcwbq! |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dcwbq, oomichi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
THX |
Signed-off-by: dcwbq <biqiang.wu@daocloud.io> Signed-off-by: dcwbq <biqiang.wu@daocloud.io>
Signed-off-by: dcwbq <biqiang.wu@daocloud.io> Signed-off-by: dcwbq <biqiang.wu@daocloud.io>
Signed-off-by: dcwbq <biqiang.wu@daocloud.io> Signed-off-by: dcwbq <biqiang.wu@daocloud.io>
Signed-off-by: dcwbq <biqiang.wu@daocloud.io> Signed-off-by: dcwbq <biqiang.wu@daocloud.io>
Signed-off-by: dcwbq biqiang.wu@daocloud.io
What type of PR is this?
/kind feature
What this PR does / why we need it:
ciliumcli provides rich functions. You must use this tool when you start clustermesh. When using cilium CNI, it is necessary to install it by default
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Just like calicoctl, it is installed by default
Does this PR introduce a user-facing change?:
None