rancher / rio

Application Deployment Engine for Kubernetes
https://rio.io
Apache License 2.0
2.27k stars 228 forks source link

Local cluster on a Mac with k3d and k3s — Wiki Update #1066

Open ghost opened 3 years ago

ghost commented 3 years ago

Describe the bug

Wiki instructions out of date for running on macOS. In the Wiki the k3d command given is:

k3d create -n rio --image rancher/k3s:v1.0.1 --api-port 6550 --publish 80:80 --publish 443:443 --publish 9443:9443 --publish 9080:9080 --workers 1

Issues include -n is not a valid flag, --image is out of date, --publish should be -p with @loadbalancer appended and --workers needs to be renamed to --agents.

The command I used was:

k3d cluster create --image rancher/k3s:latest --api-port 6550 -p 80:80@loadbalancer -p 443:443@loadbalancer -p 9443:9443@loadbalancer -p 9080:9080@loadbalancer --agents 1

After that I was able to follow the rest of the instructions as-is and see Hi there, I'm running in Rio after opening the endpoint on macOS Big Sur beta.

To Reproduce

  1. Follow the instructions here: https://github.com/rancher/rio/wiki/Local-development-workflow-for-Rio#local-cluster-on-a-mac-with-k3d-and-k3s

Expected behavior

  1. Go beyond step 1 of the instructions.

Kubernetes version & type (GKE, on-prem): kubectl version

1.19.3

Type: Rio version: rio info

n/a

Additional context

k3d version v3.3.0
k3s version v1.19.4+k3s1