Skip to content

Commit 155afcb

Browse files
authored
Merge pull request #4374 from AkihiroSuda/docs
website: kubernetes: add RKE2 example
2 parents 5c9a26a + ff0d40b commit 155afcb

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

templates/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Container orchestration:
6060
- [`k0s`](./k0s.yaml): [k0s](https://k0sproject.io/) Zero Friction Kubernetes
6161
- [`k3s`](./k3s.yaml): Kubernetes via k3s
6262
- [`k8s`](./k8s.yaml): ⭐Kubernetes via kubeadm
63+
- [`experimental/rke2`](./experimental/rke2.yaml): RKE2
6364
- [`experimental/u7s`](./experimental/u7s.yaml): [Usernetes](https://github.com/rootless-containers/usernetes): Rootless Kubernetes
6465

6566
Optional feature enablers:

website/content/en/docs/examples/containers/kubernetes/_index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ kubectl create service nodeport nginx --node-port=31080 --tcp=80:80
3939

4040
See also <https://docs.k0sproject.io/>.
4141
{{% /tab %}}
42+
{{% tab header="RKE2" %}}
43+
```bash
44+
limactl start template://experimental/rke2
45+
export KUBECONFIG=$(limactl list rke2 --format 'unix://{{.Dir}}/copied-from-guest/kubeconfig.yaml')
46+
kubectl create deployment nginx --image nginx:alpine
47+
kubectl create service nodeport nginx --node-port=31080 --tcp=80:80
48+
```
49+
50+
See also <https://docs.rke2.io/>.
51+
{{% /tab %}}
4252
{{% tab header="Usernetes" %}}
4353
```bash
4454
limactl start template://experimental/u7s

0 commit comments

Comments
 (0)