Преглед на файлове

Issue #242: Added kubeadm reset task to fix removing & adding of compute nodes

Signed-off-by: blesson-james <blesson_james@Dellteam>
John Lockman преди 4 години
родител
ревизия
a53027502b
променени са 5 файла, в които са добавени 36 реда и са изтрити 1 реда
  1. 2 0
      .github/workflows/ansible-lint.yml
  2. 6 0
      roles/k8s_start_manager/tasks/main.yml
  3. 6 0
      roles/k8s_start_workers/tasks/main.yml
  4. 1 1
      tools/intel_tools.yml
  5. 21 0
      tools/olm.yml

+ 2 - 0
.github/workflows/ansible-lint.yml

@@ -33,6 +33,8 @@ jobs:
           /github/workspace/platforms/jupyterhub.yml
           /github/workspace/platforms/kubeflow.yml
           /github/workspace/tools/install_tools.yml
+          /github/workspace/tools/intel_tools.yml
+          /github/workspace/tools/olm.yml
         # [optional]
         # Arguments to override a package and its version to be set explicitly.
         # Must follow the example syntax.

+ 6 - 0
roles/k8s_start_manager/tasks/main.yml

@@ -22,6 +22,12 @@
   setup:
     filter: ansible_default_ipv4.address
 
+- name: Reset kubeadm
+  command: kubeadm reset -f
+  changed_when: true
+  ignore_errors: True
+  tags: init
+
 - name: Check K8s nodes status
   command: kubectl get nodes
   changed_when: false

+ 6 - 0
roles/k8s_start_workers/tasks/main.yml

@@ -18,6 +18,12 @@
   changed_when: true
   tags: init
 
+- name: Reset kubeadm
+  command: kubeadm reset -f
+  changed_when: true
+  ignore_errors: True
+  tags: init
+
 - name: Get hostname
   command: hostname
   changed_when: true

+ 1 - 1
tools/intel_tools.yml

@@ -31,7 +31,7 @@
       state: present
 
 # Install the Intel Cluster Checker
-- hosts: cluster 
+- hosts: cluster
   tasks:
   - name: Import the Intel(R) Cluster Checker Repo GPG Key
     rpm_key:

+ 21 - 0
tools/olm.yml

@@ -0,0 +1,21 @@
+#  Copyright 2020 Dell Inc. or its subsidiaries. All Rights Reserved.
+#
+#  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.
+---
+# olm.yml: Install Operator Lifecycle Manager (OLM) for Operator Framework
+
+- name: Deploy Operator Lifecycle Manager (OLM) CRDs
+  command: kubectl apply -f https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.17.0/crds.yaml
+
+- name: Deploy Operator Lifecycle Manager (OLM)
+  command: kubectl apply -f https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.17.0/olm.yaml