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
3e007df9
Commit
3e007df9
authored
8 years ago
by
Alexander Block
Browse files
Options
Downloads
Patches
Plain Diff
Add documentation about bastion hosts
parent
06584ee3
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
docs/ansible.md
+14
-0
14 additions, 0 deletions
docs/ansible.md
inventory/inventory.example
+1
-1
1 addition, 1 deletion
inventory/inventory.example
with
15 additions
and
1 deletion
docs/ansible.md
+
14
−
0
View file @
3e007df9
...
@@ -119,3 +119,17 @@ ansible-playbook -i inventory/inventory.ini cluster.yaml \
...
@@ -119,3 +119,17 @@ ansible-playbook -i inventory/inventory.ini cluster.yaml \
```
```
Note: use
`--tags`
and
`--skip-tags`
wise and only if you're 100% sure what you're doing.
Note: use
`--tags`
and
`--skip-tags`
wise and only if you're 100% sure what you're doing.
Bastion host
--------------
If you prefer to not make your nodes publicly accessible (nodes with private IPs only),
you can use a so called
*bastion*
host to connect to your nodes. To specify and use a bastion,
simply add a line to your inventory, where you have to replace x.x.x.x with the public IP of the
bastion host.
```
bastion ansible_ssh_host=x.x.x.x
```
For more information about Ansible and bastion hosts, read
[
Running Ansible Through an SSH Bastion Host
](
http://blog.scottlowe.org/2015/12/24/running-ansible-through-ssh-bastion-host/
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
inventory/inventory.example
+
1
−
1
View file @
3e007df9
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
# node6 ansible_ssh_host=95.54.0.17 # ip=10.3.0.6
# node6 ansible_ssh_host=95.54.0.17 # ip=10.3.0.6
# ## configure a bastion host if your nodes are not publicly reachable
# ## configure a bastion host if your nodes are not publicly reachable
# bastion ansible_ssh_host=x
xx.xxx.xxx.xx
x
# bastion ansible_ssh_host=x
.x.x.
x
# [kube-master]
# [kube-master]
# node1
# node1
...
...
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