Use the default minikube driver (docker)
To fix issues with the upstream way of doing it directly on the host. This also makes the logic much simpler. Fixes at least the CoreDNS containers not starting issue. Change-Id: I6ef651b1df972c7021d9f304a2479ae97e51696c
This commit is contained in:
parent
def7e319e8
commit
4887ac0b39
@ -1,3 +1,10 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
roles:
|
roles:
|
||||||
- role: use-buildset-registry
|
- role: use-buildset-registry
|
||||||
|
- role: clear-firewall
|
||||||
|
- role: ensure-docker
|
||||||
|
- role: ensure-minikube
|
||||||
|
- role: ensure-helm
|
||||||
|
tasks:
|
||||||
|
- name: Start minikube
|
||||||
|
command: minikube start
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
roles:
|
roles:
|
||||||
|
- collect-container-logs # for some of minikube logs
|
||||||
- collect-kubernetes-state
|
- collect-kubernetes-state
|
||||||
- collect-kubernetes-pods-logs
|
- collect-kubernetes-pods-logs
|
||||||
|
1
roles/ensure-minikube/defaults/main.yaml
Normal file
1
roles/ensure-minikube/defaults/main.yaml
Normal file
@ -0,0 +1 @@
|
|||||||
|
minikube_version: latest
|
20
roles/ensure-minikube/tasks/main.yaml
Normal file
20
roles/ensure-minikube/tasks/main.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
- name: Download minikube
|
||||||
|
ansible.builtin.get_url:
|
||||||
|
url: https://storage.googleapis.com/minikube/releases/{{ minikube_version }}/minikube-linux-amd64
|
||||||
|
dest: /tmp/minikube
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
|
- name: Install minikube
|
||||||
|
become: true
|
||||||
|
ansible.builtin.copy:
|
||||||
|
remote_src: true
|
||||||
|
src: /tmp/minikube
|
||||||
|
dest: /usr/local/bin/minikube
|
||||||
|
mode: "0755"
|
||||||
|
|
||||||
|
- name: Install kubectl from minikube
|
||||||
|
become: true
|
||||||
|
ansible.builtin.file:
|
||||||
|
src: /usr/local/bin/minikube
|
||||||
|
dest: /usr/local/bin/kubectl
|
||||||
|
state: link
|
@ -14,10 +14,6 @@
|
|||||||
- job:
|
- job:
|
||||||
name: nebulous-apply-helm-charts
|
name: nebulous-apply-helm-charts
|
||||||
parent: opendev-buildset-registry-consumer
|
parent: opendev-buildset-registry-consumer
|
||||||
|
|
||||||
- job:
|
|
||||||
name: nebulous-apply-helm-charts
|
|
||||||
parent: apply-helm-charts
|
|
||||||
description: Deploy a Kubernetes cluster and apply charts.
|
description: Deploy a Kubernetes cluster and apply charts.
|
||||||
roles:
|
roles:
|
||||||
- zuul: zuul/zuul-jobs
|
- zuul: zuul/zuul-jobs
|
||||||
|
@ -30,8 +30,10 @@
|
|||||||
files: &nebulous-component-template-apply-helm-charts-files
|
files: &nebulous-component-template-apply-helm-charts-files
|
||||||
- ^playbooks/helm/
|
- ^playbooks/helm/
|
||||||
- ^playbooks/kubernetes/
|
- ^playbooks/kubernetes/
|
||||||
|
- ^roles/check-pod-restarts/
|
||||||
- ^roles/collect-kubernetes-pods-logs/
|
- ^roles/collect-kubernetes-pods-logs/
|
||||||
- ^roles/collect-kubernetes-state/
|
- ^roles/collect-kubernetes-state/
|
||||||
|
- ^roles/ensure-minikube/
|
||||||
- opendev-buildset-registry:
|
- opendev-buildset-registry:
|
||||||
files: *nebulous-component-template-apply-helm-charts-files
|
files: *nebulous-component-template-apply-helm-charts-files
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user