This repository contains resources for configuring kubernetes with calico networking plugin using Solar.
git clone -b stable https://github.com/pigmej/mcpinstall.git && cd mcpinstall
./deploy/kube-up.sh
vagrant ssh solar
kubectl get pods
You can adjust any setting value from utils/vagrant/vagrant-settings.yaml_defaults
by setting it in utils/vagrant/vagrant-settings.yaml
. For example on Linux you should consider setting sync_type
to nfs
by adding sync_type: nfs
to your vagrant-settings.yaml.
If you don't want to use Ubuntu for slaves, you can use Fedora. After step 2 in above steps, please do as follow:
- Download box file for the Vagrant provider you are using from here
- Import it to Vagrant
vagrant box add fc23 <downloaded-box-name> --provider <provider> --force
- Change slaves_image value to
fc23
in vagrant-settings.yaml file. - Proceed from step 3 from "Express Vagrant setup" section.
In config.yaml you can set:
- login data for kubernetes master
- IP address for master
- default login data for kubernetes slave nodes
- node-specific config (IP address is required, but you can override default access data)
- global_config resource inputs including:
- cluster dns ip and domain
- cluster ip range
- default k8s version
- default calico version
- log in to solar master node (
vagrant ssh solar
) - solar resource update kube-config k8s_version=v1.2.1
- solar changes stage
- solar changes process
- solar orch run-once -w 600
- After a while, kubernetes will restart in desired version