mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
Merge pull request #25 from geerlingguy/24-hosts-clarity
Fixes #24: Add more clarity around inventory file creation.
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
hosts.ini
|
||||||
@@ -23,7 +23,7 @@ Master and nodes must have passwordless SSH access
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Add the system information gathered above into a file called hosts.ini. For example:
|
Add the system information gathered above into a file called `hosts.ini` in the same directory as this README file. There is a template in the `inventory` directory. For example:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
[master]
|
[master]
|
||||||
@@ -35,13 +35,12 @@ Add the system information gathered above into a file called hosts.ini. For exam
|
|||||||
[k3s_cluster:children]
|
[k3s_cluster:children]
|
||||||
master
|
master
|
||||||
node
|
node
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Start provisioning of the cluster using the following command:
|
Start provisioning of the cluster using the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
ansible-playbook site.yml -i inventory/hosts.ini
|
ansible-playbook site.yml
|
||||||
```
|
```
|
||||||
|
|
||||||
## Kubeconfig
|
## Kubeconfig
|
||||||
@@ -51,4 +50,3 @@ To get access to your **Kubernetes** cluster just
|
|||||||
```bash
|
```bash
|
||||||
scp debian@master_ip:~/.kube/config ~/.kube/config
|
scp debian@master_ip:~/.kube/config ~/.kube/config
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user