blob: 42a6a776a2c3c7cc1346c441d86a48528b843617 [file] [log] [blame]
Tadas Sutkaitis4770f552023-02-20 17:41:37 +02001# 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 Sutkaitisc4f0ded2023-03-29 18:51:19 +030015- 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 Sutkaitis46066532024-05-14 22:07:33 +030020 name: "{{ kubelet_hostname | default(inventory_hostname_short) }}"
Tadas Sutkaitisc4f0ded2023-03-29 18:51:19 +030021 definition:
22 metadata:
23 labels: "{{ kubernetes_node_labels }}"