Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
6fb17a81
Commit
6fb17a81
authored
7 years ago
by
Kevin Jing Qiu
Browse files
Options
Downloads
Patches
Plain Diff
Support provisioning vagrant k8s clusters with coreos
parent
6ac1c1c8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Vagrantfile
+10
-1
10 additions, 1 deletion
Vagrantfile
with
10 additions
and
1 deletion
Vagrantfile
+
10
−
1
View file @
6fb17a81
...
...
@@ -7,6 +7,13 @@ Vagrant.require_version ">= 1.8.0"
CONFIG
=
File
.
join
(
File
.
dirname
(
__FILE__
),
"vagrant/config.rb"
)
SUPPORTED_OS
=
{
"coreos-stable"
=>
{
box:
"coreos-stable"
,
bootstrap_os:
"coreos"
},
"coreos-alpha"
=>
{
box:
"coreos-alpha"
,
bootstrap_os:
"coreos"
},
"coreos-beta"
=>
{
box:
"coreos-beta"
,
bootstrap_os:
"coreos"
},
"ubuntu"
=>
{
box:
"bento/ubuntu-16.04"
,
bootstrap_os:
"ubuntu"
},
}
# Defaults for config options defined in CONFIG
$num_instances
=
3
$instance_name_prefix
=
"k8s"
...
...
@@ -16,7 +23,8 @@ $vm_cpus = 1
$shared_folders
=
{}
$forwarded_ports
=
{}
$subnet
=
"172.17.8"
$box
=
"bento/ubuntu-16.04"
$os
=
"coreos-stable"
$box
=
SUPPORTED_OS
[
$os
][
:box
]
# The first three nodes are etcd servers
$etcd_instances
=
$num_instances
# The first two nodes are masters
...
...
@@ -103,6 +111,7 @@ Vagrant.configure("2") do |config|
# Override the default 'calico' with flannel.
# inventory/group_vars/k8s-cluster.yml
"kube_network_plugin"
:
"flannel"
,
"bootstrap_os"
:
SUPPORTED_OS
[
$os
][
:bootstrap_os
]
}
config
.
vm
.
network
:private_network
,
ip:
ip
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment