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:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user