1
0
mirror of https://github.com/jcwimer/startup-infrastructure synced 2026-03-24 22:34:42 +00:00

Switched from docker swarm to Kubernetes with rke

This commit is contained in:
2020-05-11 19:39:13 -04:00
parent 01f384ac14
commit 1e5724ec1d
30 changed files with 458 additions and 488 deletions

View File

@@ -1,19 +1,7 @@
---
- name: Pre rke
- name: Deploy Kubernetes
hosts: kube-masters kube-workers
gather_facts: yes
serial: 100%
tasks:
- include: ../roles/kubernetes/tasks/pre-rke.yml
- name: Set up Kubernetes
hosts: localhost
tasks:
- include: ../roles/kubernetes/tasks/main.yml
- name: Post rke
hosts: kube-masters kube-workers
gather_facts: yes
serial: 100%
tasks:
- include: ../roles/kubernetes/tasks/post-rke.yml
roles:
- role: ../roles/kubernetes

View File

@@ -14,15 +14,19 @@
- name: Apply common configuration to all nodes
hosts: all
user: root
serial: 100%
tasks:
- include: ../roles/common/tasks/main.yml
roles:
- role: ../roles/common
- import_playbook: kubernetes.yml
- name: Deploy startup-infrastructure to kubernetes
hosts: localhost
connection: local
tasks:
- include: ../roles/startup-infrastructure/tasks/main.yml
roles:
- role: ../roles/startup-infrastructure
- role: ../roles/rook-ceph
when: rook_enabled is defined and rook_enabled | bool == True
- role: ../roles/longhorn
when: longhorn_enabled is defined and longhorn_enabled | bool == True
- role: ../roles/presslabs-mysql