Provision k8s cluster with Kubespray

This commit is contained in:
Paul-Henri Froidmont 2019-04-04 02:25:38 +02:00
parent 2f9be424d3
commit d1db285cf0
13 changed files with 108 additions and 239 deletions

View file

@ -0,0 +1,2 @@
kube_network_plugin: flannel
bin_dir: /usr/local/bin

View file

@ -0,0 +1,10 @@
[kube-master]
[etcd]
[kube-node]
[k8s]
[k8s-cluster:children]
k8s

View 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

View file

@ -1,4 +0,0 @@
[credentials]
token_file = ~/.ssh/scw-token
[config]
environment = staging

View file

@ -1,4 +0,0 @@
#!/bin/bash
cd "$(dirname $0)"
exec ../../scripts/scw_inventory.py