radius-project / radius

Radius is a cloud-native, portable application platform that makes app development easier for teams building cloud-native apps.
https://radapp.io
Apache License 2.0
1.46k stars 93 forks source link

Add Additonal K8s supported cluster #7046

Closed kevinevans1 closed 8 months ago

kevinevans1 commented 8 months ago

Overview of feature request

Hello

Would it be possible to add MicroK8s to support cluster list ?

https://microk8s.io/

Acceptance criteria

Compatibility to run with local BareMetal k8s cluster.

Additional context

Checkout the microk8s website. https://microk8s.io/

Would you like to support us?

AB#10937

radius-triage-bot[bot] commented 8 months ago

:wave: @kevinevans1 Thanks for filing this feature request.

A project maintainer will review this feature request and get back to you soon.

We also welcome community contributions! If you would like to pick this item up sooner and submit a pull request, please visit our contribution guidelines and assign this to yourself by commenting "/assign" on this issue.

For more information on our triage process please visit our triage overview

willtsai commented 8 months ago

@kevinevans1 - have you confirmed that Radius runs successfully on MicroK8s? If it uses standard Kubernetes, Radius should theoretically run on it without issues, but it's better to confirm first.

If so, then we can just move this issue into the docs repo for adding MicroK8s to the list of supported clusters.

gpltaylor commented 8 months ago

I have created a new VM in Azure and installed Micok8s and tested the basic "getting started" demo.

The commands used to setup where very easy.

sudo snap install microk8s --classic
microk8s status --wait-ready
sudo microk8s status --wait-ready
# need to add my account and login again
sudo usermod -a -G microk8s giz@xxx.co.uk
sudo chown -R giz@xxx.co.uk ~/.kube

microk8s
microk8s status
sudo microk8s status
# I need a .kube setup... lets add one manually
mkdir .kube
sudo chown -R gizadmin@xxx.co.uk ~/.kube
microk8s config view > ~/.kube/config

microk8s status
microk8s enable dashboard
microk8s get namespaces
microk8s kubectl get namespaces

wget -q "https://raw.githubusercontent.com/radius-project/radius/main/deploy/install.sh" -O - | /bin/bash

mkdir first-app
cd first-app

rad install kubernetes

rad init
vim app.bicep
rad run app.bicep

rad app connections
microk8s kubectl get namespaces

This worked perfectly.

The test is of course simple, but on face value I think we can say that Microk8s is supported.

VM Details: Ubuntu 20.04.6 LTS (GNU/Linux 5.15.0-1053-azure x86_64)

References

Getting Started Installing Microk8s

Screenshots

microk8s-vs-radius-e microk8s-vs-radius-d microk8s-vs-radius-c microk8s-vs-radius-b microk8s-vs-radius-a
kevinevans1 commented 8 months ago

Thanks , I also did the same. Validated and tested.