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
ef919d96
Commit
ef919d96
authored
8 years ago
by
Antoine Legrand
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1040 from retr0h/vagrant-config
Better control instance sizing
parents
45451144
45dbe6d5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
Vagrantfile
+9
-6
9 additions, 6 deletions
Vagrantfile
with
10 additions
and
6 deletions
.gitignore
+
1
−
0
View file @
ef919d96
...
@@ -13,3 +13,4 @@ temp
...
@@ -13,3 +13,4 @@ temp
**/*.sw[pon]
**/*.sw[pon]
/ssh-bastion.conf
/ssh-bastion.conf
**/*.sw[pon]
**/*.sw[pon]
vagrant/
This diff is collapsed.
Click to expand it.
Vagrantfile
+
9
−
6
View file @
ef919d96
...
@@ -17,6 +17,12 @@ $shared_folders = {}
...
@@ -17,6 +17,12 @@ $shared_folders = {}
$forwarded_ports
=
{}
$forwarded_ports
=
{}
$subnet
=
"172.17.8"
$subnet
=
"172.17.8"
$box
=
"bento/ubuntu-16.04"
$box
=
"bento/ubuntu-16.04"
# The first three nodes are etcd servers
$etcd_instances
=
$num_instances
# The first two nodes are masters
$kube_master_instances
=
$num_instances
==
1
?
$num_instances
:
(
$num_instances
-
1
)
# All nodes are kube nodes
$kube_node_instances
=
$num_instances
host_vars
=
{}
host_vars
=
{}
...
@@ -112,12 +118,9 @@ Vagrant.configure("2") do |config|
...
@@ -112,12 +118,9 @@ Vagrant.configure("2") do |config|
ansible
.
host_vars
=
host_vars
ansible
.
host_vars
=
host_vars
#ansible.tags = ['download']
#ansible.tags = ['download']
ansible
.
groups
=
{
ansible
.
groups
=
{
# The first three nodes should be etcd servers
"etcd"
=>
[
"
#{
$instance_name_prefix
}
-0[1:
#{
$etcd_instances
}
]"
],
"etcd"
=>
[
"
#{
$instance_name_prefix
}
-0[1:3]"
],
"kube-master"
=>
[
"
#{
$instance_name_prefix
}
-0[1:
#{
$kube_master_instances
}
]"
],
# The first two nodes should be masters
"kube-node"
=>
[
"
#{
$instance_name_prefix
}
-0[1:
#{
$kube_node_instances
}
]"
],
"kube-master"
=>
[
"
#{
$instance_name_prefix
}
-0[1:2]"
],
# all nodes should be kube nodes
"kube-node"
=>
[
"
#{
$instance_name_prefix
}
-0[1:
#{
$num_instances
}
]"
],
"k8s-cluster:children"
=>
[
"kube-master"
,
"kube-node"
],
"k8s-cluster:children"
=>
[
"kube-master"
,
"kube-node"
],
}
}
end
end
...
...
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