Kustomize

    Create a Kustomize Component, it could be from Git Repo or OSS bucket or image registry.

    KubeVela’s component meets the needs of users to directly connect Yaml files and folders as component products. No matter whether your Yaml file/folder is stored in a Git Repo or an OSS bucket, KubeVela can read and deliver it.

    1. (Optional) If your OSS bucket needs identity verification, create a Secret:
    1. Deploy it:
    1. cat <<EOF | vela up -f -
    2. apiVersion: core.oam.dev/v1beta1
    3. kind: Application
    4. metadata:
    5. name: bucket-app
    6. spec:
    7. components:
    8. - name: bucket-comp
    9. type: kustomize
    10. repoType: oss
    11. # If the bucket is private, you will need to provide
    12. secretRef: bucket-secret
    13. url: oss-cn-beijing.aliyuncs.com
    14. oss:
    15. bucketName: definition-registry
    16. path: ./app/prod/
    17. EOF

    Please copy the above code block and deploy it directly to the runtime cluster:

    Finally, we use vela ls to view the application status after successful delivery:

    1. vela ls
    2. APP COMPONENT TYPE TRAITS PHASE HEALTHY STATUS CREATED-TIME

    Attributes

    Deploy From Git Repo

    How-to

    Override Kustomize

    1. apiVersion: core.oam.dev/v1beta1
    2. kind: Application
    3. metadata:
    4. name: bucket-app
    5. spec:
    6. components:
    7. - name: bucket-comp
    8. type: kustomize
    9. properties:
    10. # ...omitted for brevity
    11. path: ./app/

    Watch Image Registry