--- /dev/null
+---
+# Copyright 2019 Nokia
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# cmframework.requires: bootstrap_kube_proxy.yaml
+- hosts: caas_nodes
+ strategy: free
+ become: true
+ become_user: "root"
+ roles:
+ - role: set_nodes_label
--- /dev/null
+---
+# Copyright 2019 Nokia
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+- name: set node role for cluster member
+ shell: "kubectl label node {{ networking.infra_internal.ip }} kubernetes.io/role={{ noderole }}"
+
%define COMPONENT kubernetes
%define RPM_NAME caas-%{COMPONENT}
%define RPM_MAJOR_VERSION 1.16.0
-%define RPM_MINOR_VERSION 5
+%define RPM_MINOR_VERSION 6
%define IMAGE_TAG %{RPM_MAJOR_VERSION}-%{RPM_MINOR_VERSION}
%define KUBERNETESPAUSE_VERSION 3.1
ln -s %{_playbooks_path}/master_kubelet.yaml %{_postconfig_path}/
ln -s %{_playbooks_path}/service_account_creation.yaml %{_postconfig_path}/
ln -s %{_playbooks_path}/service_account_distribution.yaml %{_postconfig_path}/
+ln -s %{_playbooks_path}/set_nodes_label.yaml %{_postconfig_path}/
%postun
if [ $1 -eq 0 ]; then
rm -f %{_postconfig_path}/master_kubelet.yaml
rm -f %{_postconfig_path}/service_account_creation.yaml
rm -f %{_postconfig_path}/service_account_distribution.yaml
+ rm -f %{_postconfig_path}/set_nodes_label.yaml
fi
%clean