Tadas Sutkaitis | 4770f55 | 2023-02-20 17:41:37 +0200 | [diff] [blame] | 1 | # Copyright (c) 2023 VEXXHOST, Inc. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 | # not use this file except in compliance with the License. You may obtain |
| 5 | # a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations |
| 13 | # under the License. |
| 14 | |
Tadas Sutkaitis | c4f0ded | 2023-03-29 18:51:19 +0300 | [diff] [blame] | 15 | - name: Add labels to node |
| 16 | delegate_to: "{{ groups[kubernetes_node_labels_control_plane_group][0] }}" |
| 17 | kubernetes.core.k8s: |
| 18 | state: patched |
| 19 | kind: Node |
Tadas Sutkaitis | 4606653 | 2024-05-14 22:07:33 +0300 | [diff] [blame] | 20 | name: "{{ kubelet_hostname | default(inventory_hostname_short) }}" |
Tadas Sutkaitis | c4f0ded | 2023-03-29 18:51:19 +0300 | [diff] [blame] | 21 | definition: |
| 22 | metadata: |
| 23 | labels: "{{ kubernetes_node_labels }}" |