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

Fix: When creating a list of files and images with ./generate_list.sh, included ingress-nginx/kube-webhook-certgen image in the list. #11787

Closed
8 changes: 8 additions & 0 deletions roles/kubespray-defaults/defaults/main/download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,14 @@ downloads:
groups:
- kube_node

ingress_nginx_kube_webhook_certgen:
repo: "{{ ingress_nginx_kube_webhook_certgen_image_repo }}"
tag: "{{ ingress_nginx_kube_webhook_certgen_image_tag }}"
sha256: "{{ ingress_nginx_kube_webhook_certgen_digest_checksum | default(None) }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd drop the d(None). We should have valid checksums for our images.

Copy link
Author

@DearJey DearJey Dec 18, 2024

Choose a reason for hiding this comment

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

I deleted default(None) from this task.

sha256: "{{ ingress_nginx_kube_webhook_certgen_digest_checksum }}"

groups:
- kube_node
Copy link
Contributor

Choose a reason for hiding this comment

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

This would download the webhook image on all nodes, this will slow down kubespray on large clusters.
This should be scoped to smaller subset of nodes 🤔

Copy link
Author

@DearJey DearJey Dec 18, 2024

Choose a reason for hiding this comment

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

I've updated it as described below.

    groups:
      - kube_control_plane
      - infra

Could you confirm if this task is correct?
commit: af5dd45

when: ingress_nginx_webhook_enabled
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be enabled: "{{ ingress_nginx_webhook_enabled }}" like the other in this file.

Copy link
Author

Choose a reason for hiding this comment

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

Thank you for comments!
I fixed it as descibed below.

enabled: "{{ ingress_nginx_webhook_enabled }}"

Dose this address your cocmments?
commit: d47e051


cert_manager_controller:
enabled: "{{ cert_manager_enabled }}"
container: true
Expand Down