mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Provision k8s cluster with Kubespray
This commit is contained in:
parent
2f9be424d3
commit
d1db285cf0
13 changed files with 108 additions and 239 deletions
49
k8s.yml
49
k8s.yml
|
|
@ -1,24 +1,27 @@
|
|||
---
|
||||
- hosts: k8s_proxy:k8s_masters:k8s_workers
|
||||
roles:
|
||||
- role: proxy
|
||||
tags: proxy
|
||||
- role: docker
|
||||
tags: docker
|
||||
- hosts: k8s_masters
|
||||
gather_facts: false
|
||||
roles:
|
||||
- role: etcd
|
||||
tags: etcd
|
||||
- hosts: k8s_proxy:k8s_masters:k8s_workers
|
||||
gather_facts: false
|
||||
roles:
|
||||
- role: kubernetes
|
||||
tags: kubernetes
|
||||
- hosts: k8s_masters:k8s_proxy
|
||||
gather_facts: false
|
||||
roles:
|
||||
- role: ingress
|
||||
tags: ingress
|
||||
- role: kubernetes-dashboard
|
||||
tags: dashboard
|
||||
- name: Include kubespray tasks
|
||||
import_playbook: kubespray/cluster.yml
|
||||
|
||||
# - hosts: k8s_proxy:k8s_masters:k8s_workers
|
||||
# roles:
|
||||
# - role: proxy
|
||||
# tags: proxy
|
||||
# - role: docker
|
||||
# tags: docker
|
||||
# - hosts: k8s_masters
|
||||
# gather_facts: false
|
||||
# roles:
|
||||
# - role: etcd
|
||||
# tags: etcd
|
||||
# - hosts: k8s_proxy:k8s_masters:k8s_workers
|
||||
# gather_facts: false
|
||||
# roles:
|
||||
# - role: kubernetes
|
||||
# tags: kubernetes
|
||||
# - hosts: k8s_masters:k8s_proxy
|
||||
# gather_facts: false
|
||||
# roles:
|
||||
# - role: ingress
|
||||
# tags: ingress
|
||||
# - role: kubernetes-dashboard
|
||||
# tags: dashboard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue