Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://github.com/kubevela/kubevela/issues/6128 #703

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions addons/aws-resources/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: cloudshell
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change the name with aws-resource?

version: 0.0.9
description: A Friendly Kubernetes CloudShell (Web Terminal)
url: https://github.com/cloudtty/cloudtty
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and these files


deployTo:
controlPlane: true
runtimeCluster: false

dependencies:
- name: fluxcd

tags:
- Official
15 changes: 15 additions & 0 deletions addons/aws-resources/readme.md
Original file line number Diff line number Diff line change
@@ -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
37 changes: 37 additions & 0 deletions addons/aws-resources/template.yaml
Original file line number Diff line number Diff line change
@@ -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
}