Skip to content

Commit

Permalink
README: add docker run (#11967)
Browse files Browse the repository at this point in the history
* README: add docker run

Signed-off-by: Loong <[email protected]>

* Update README.md

Co-authored-by: Robert Neumann <[email protected]>

* Update README.md

Co-authored-by: Robert Neumann <[email protected]>

---------

Signed-off-by: Loong <[email protected]>
Co-authored-by: Robert Neumann <[email protected]>
  • Loading branch information
daixiang0 and r0b2g1t authored Feb 23, 2025
1 parent e332375 commit e0a141a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ You can get your invite [here](http://slack.k8s.io/)

Below are several ways to use Kubespray to deploy a Kubernetes cluster.

### Docker

Ensure you have installed Docker then

```ShellSession
docker run --rm -it --mount type=bind,source="$(pwd)"/inventory/sample,dst=/inventory \
--mount type=bind,source="${HOME}"/.ssh/id_rsa,dst=/root/.ssh/id_rsa \
quay.io/kubespray/kubespray:v2.27.0 bash
# Inside the container you may now run the kubespray playbooks:
ansible-playbook -i /inventory/inventory.ini --private-key /root/.ssh/id_rsa cluster.yml
```

### Ansible

#### Usage
Expand Down

0 comments on commit e0a141a

Please sign in to comment.