From c7ebf51b203aa39ca0aa63f9abfa00e4e1ba4521 Mon Sep 17 00:00:00 2001 From: Volodymyr Mytnyk Date: Wed, 10 Apr 2019 12:24:40 +0000 Subject: Revert "Add ansible scripts to deploy Kubernetes" This reverts commit c66efd482c9c4aabf8a82d1f554ef5fca91b3bcb. Change-Id: I87ec6e2ed6d2ef8ad202833f134e758762345b02 Signed-off-by: Mytnyk, Volodymyr --- ansible/roles/init_kubeadm/tasks/kubeadm.yml | 50 ---------------------------- 1 file changed, 50 deletions(-) delete mode 100644 ansible/roles/init_kubeadm/tasks/kubeadm.yml (limited to 'ansible/roles/init_kubeadm/tasks/kubeadm.yml') diff --git a/ansible/roles/init_kubeadm/tasks/kubeadm.yml b/ansible/roles/init_kubeadm/tasks/kubeadm.yml deleted file mode 100644 index 7c808a01c..000000000 --- a/ansible/roles/init_kubeadm/tasks/kubeadm.yml +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright (c) 2018-2019 Intel Corporation. -# -# 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. ---- -- set_fact: - service_cidr_param: --service-cidr={{ kubeadm_service_cidr }} - when: 'kubeadm_service_cidr is defined' - -- set_fact: - pod_network_cidr_param: --pod-network-cidr={{ kubeadm_pod_network_cidr }} - when: 'kubeadm_pod_network_cidr is defined' - -- set_fact: - kubernetes_version: --kubernetes-version {{ kubeadm_kubernetes_version }} - when: 'kubeadm_kubernetes_version is defined' - -- name: Initialize Kubernetes cluster - command: > - kubeadm init {{ pod_network_cidr_param|default('') }} - {{ service_cidr_param|default('') }} {{ kubernetes_version|default('') }} - --ignore-preflight-errors=all - -- name: Create Kubernetes configuration dir - file: path={{ ansible_env.HOME }}/.kube state=directory - -- name: Setup Kubernetes environment - copy: - src: /etc/kubernetes/admin.conf - dest: "{{ ansible_env.HOME }}/.kube/config" - remote_src: yes - -- name: Allow to schedule pods on the master - command: kubectl taint nodes --all node-role.kubernetes.io/master- - -- name: Wait for kube-dns pod to be in running state - command: kubectl get pods --namespace=kube-system -l k8s-app=kube-dns -o json - register: result - until: result.stdout|from_json|json_query('items[].status.phase|[0]') == "Running" - retries: 30 - delay: 2 -- cgit 1.2.3-korg