diff --git a/addons/aws-resources/metadata.yaml b/addons/aws-resources/metadata.yaml new file mode 100644 index 00000000..55c06b2f --- /dev/null +++ b/addons/aws-resources/metadata.yaml @@ -0,0 +1,14 @@ +name: cloudshell +version: 0.0.9 +description: A Friendly Kubernetes CloudShell (Web Terminal) +url: https://github.com/cloudtty/cloudtty + +deployTo: + controlPlane: true + runtimeCluster: false + +dependencies: +- name: fluxcd + +tags: + - Official diff --git a/addons/aws-resources/readme.md b/addons/aws-resources/readme.md new file mode 100644 index 00000000..4d280bd0 --- /dev/null +++ b/addons/aws-resources/readme.md @@ -0,0 +1,15 @@ +# aws-resources + +This addon is based on aws . + +## Features + +1. Vela CLI capabilities (within the scope of authority), users don't need to care about the kubeconfig and permissions. + Highlights: + * vela exec + * vela logs + * vela status + * vela up + +## Versions +0.0.1 - initial version \ No newline at end of file diff --git a/addons/aws-resources/template.yaml b/addons/aws-resources/template.yaml new file mode 100644 index 00000000..ab993c1c --- /dev/null +++ b/addons/aws-resources/template.yaml @@ -0,0 +1,37 @@ +apiVersion: core.oam.dev/v1beta1 +kind: TraitDefinition +metadata: + name: aws-alb-ingress +spec: + schematic: + cue: + template: | + outputs: ingress: { + apiVersion: "networking.k8s.io/v1" + kind: "Ingress" + metadata: name: context.name + metadata: annotations: "alb.ingress.kubernetes.io/scheme": "internet-facing" + metadata: annotations: "alb.ingress.kubernetes.io/target-type": "ip" + spec: { + ingressClassName: "alb" + rules: [{ + http: { + paths: [{ + path: "/" + pathType: "Prefix" + backend: { + service: { + name: context.name + port: { + number: parameter.port + } + } + } + }] + } + }] + } + } + parameter: { + port: *9000 | int + }