Cloud Resources orchestrated by Crossplane
Crossplane addon
The crossplane and crossplane-aws addons are experimental. They are only in the experimental addon registry, so add it before you enable them.
vela addon registry add experimental --type helm --endpoint=https://kubevela.github.io/catalog/experimental
vela addon enable experimental/crossplane
Enable a Crossplane Provider addon
KubeVela can support following cloud providers by enabling the Crossplane provider addons.
$ vela addon list | grep crossplane-
crossplane-aws experimental Kubernetes Crossplane Controller for AWS [0.0.1] enabled (1.0.0) enabled (1.0.1)
To enable one of them, use the following command:
vela addon enable experimental/crossplane-xxx
You can also disable, upgrade, check status of an addon by command vela addon.
Authenticate Crossplane Provider
Apply the application below. Let's use aws in this example, you can get AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY per aws secret docs.
The keys are properties of the Application, so anyone who can read the Application, with kubectl get application -o yaml or in VelaUX, can read them. Use a key with only the permissions Crossplane needs.
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: aws
namespace: vela-system
spec:
components:
- name: aws
type: crossplane-aws
properties:
name: aws
AWS_ACCESS_KEY_ID: xxx
AWS_SECRET_ACCESS_KEY: yyy
Provision cloud resources
After a Crossplane provider is authenticated, you can provision and/or consume cloud resources.