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
2
inventories/staging/group_vars/k8s-cluster.yml
Normal file
2
inventories/staging/group_vars/k8s-cluster.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
kube_network_plugin: flannel
|
||||
bin_dir: /usr/local/bin
|
||||
10
inventories/staging/groups
Normal file
10
inventories/staging/groups
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[kube-master]
|
||||
|
||||
[etcd]
|
||||
|
||||
[kube-node]
|
||||
|
||||
[k8s]
|
||||
|
||||
[k8s-cluster:children]
|
||||
k8s
|
||||
13
inventories/staging/scaleway_inventory.yml
Normal file
13
inventories/staging/scaleway_inventory.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
plugin: scaleway
|
||||
hostnames:
|
||||
- hostname
|
||||
regions:
|
||||
- par1
|
||||
- ams1
|
||||
tags:
|
||||
- k8s
|
||||
- kube-master
|
||||
- etcd
|
||||
- kube-node
|
||||
variables:
|
||||
ansible_host: public_ip.address
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[credentials]
|
||||
token_file = ~/.ssh/scw-token
|
||||
[config]
|
||||
environment = staging
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
cd "$(dirname $0)"
|
||||
|
||||
exec ../../scripts/scw_inventory.py
|
||||
Loading…
Add table
Add a link
Reference in a new issue