cosmo connect k8s command below, you will need the following:
- A Cosmonic account
- A Kubernetes cluster
- For local testing, we recommend the kind tool
When you run
cosmo connect k8s, it will:
- Connect to your Cosmonic Constellation, prompting you to login if you have not already.
- Attempt to establish a connection to locally configured Kubernetes credentials by checking for existence of
KUBECONFIGenvironment variable and then
- Configure and deploy [
cosmo-controller][cosmo-controller] into the Kubernetes cluster using the locally configured credentials.
- Deploy a set of wasmCloud hosts using the bundled
CosmonicHostConfigCRD to the specified namespace (or
defaultnamespace if no namespace is provided).
- Deploy Kubernetes Applier Capability Provider and Kubernetes Applier Actor as a wadm-managed applications into your constellation, which will help expose any HTTP-based actors as services inside of your Kubernetes cluster
Once completed, the output from running the command should look similar to the following:
cosmo connect k8s
Successfully connected to constellation [<your-constellation-id>]
✅ Successfully connected to k8s cluster
✅ Successfully configured controller
✅ Successfully started wasmcloud hosts
✅ Wadm manifest deployed. You can check deployment status at https://app.cosmonic.com/constellation/applications/detail/cosmo-connect-127-0-0-1-default?view=manifest
🔗 Kubernetes cluster successfully connected!
🚀 Open Cosmonic (https://app.cosmonic.com) to interact with your Kubernetes hosts.
You can see your newly deployed hosts running in the Cosmonic UI.