-
Notifications
You must be signed in to change notification settings - Fork 1.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
Wrong etcd listen-metrics-urls customization for second and further controlPlane nodes #4024
Comments
The same way wrong customization for liveness/startup probes on the second node. livenessProbe:
failureThreshold: 8
httpGet:
host: 10.10.10.2
path: /health
port: 2381
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 15
...
startupProbe:
failureThreshold: 24
httpGet:
host: 10.10.10.2
path: /health
port: 2381
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 15 |
@maximsnezhkov, question for my better understanding, "http://{{ ds.meta_data.local_ipv4 }}:2381" seems using a templating solution. What is the component responsible for resolving such template variables in your pipeline? |
/area control-plane |
@fabriziopandini $ clusterctl config cluster maxim-test --config ./clusterctl.yaml --infrastructure vsphere | grep ds.meta_data
name: '{{ ds.meta_data.hostname }}'
name: '{{ ds.meta_data.hostname }}'
- hostname "{{ ds.meta_data.hostname }}"
- echo "127.0.0.1 {{ ds.meta_data.hostname }}" >>/etc/hosts
- echo "{{ ds.meta_data.hostname }}" >/etc/hostname
name: '{{ ds.meta_data.hostname }}'
- hostname "{{ ds.meta_data.hostname }}"
- echo "127.0.0.1 {{ ds.meta_data.hostname }}" >>/etc/hosts
- echo "{{ ds.meta_data.hostname }}" >/etc/hostname |
Ahh, you are right! The underlying problem is that kubeadm currently doesn't support node-specific configurations for control plane components (and etcd) via its own configuration API. Also, currently in CABPK/KCP, there is no way to use kubeadm patches, so this problem is tricky to be addressed So, as for now, the only workaround I can think of is to use a postkubeadm command to alter generated manifests, but long term hopefully this should be properly addressed in kubeadm... |
Thanks for quick explanation! |
/close feel free to re-open if you need more help |
@fabriziopandini: Closing this issue. In response to this:
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. |
Added kubernetes/kubeadm#2367 to kick off the discussion on the kubeadm side |
What steps did you take and what happened:
I use local managment cluster based on minukube. Trying to customize
listen-metrics-urls
for etcd with following kcp configThe problem is that
ds.meta_data.local_ipv4
is expanded the same for second and further nodes. And has the ip address of the first node.first node:
second node:
What did you expect to happen:
I expect that
ds.meta_data.local_ipv4
will be expanded in a different ip address on second and further nodes.Anything else you would like to add:
As a workaround now I set
Environment:
Management cluster:
kubectl version
): v1.19.4/etc/os-release
): official CAPV OVA image - ubuntu-1804-kube-v1.19.1/kind bug
The text was updated successfully, but these errors were encountered: