Code Monkey home page Code Monkey logo

sae-apiserver-proxy's Introduction

SAE APIServer Proxy

ImageBuild Releases LICENSE

DockerHub | SAE | KubeVela

This is a proxy server that implements the Kubernetes aggregated APIServer and provide proxy access to SAE APIServer.

It can be used natively as a cluster in ClusterGateway. Therefore, it wraps the SAE APIServer into a Kubernetes cluster for ClusterGateway. It is possible for KubeVela related projects (including Core Controller, CommandLine Tools and Workflow Controller) to leverage the multi-cluster management capabilities, such as deploying KubeVela application to SAE.

Notice that you need to install ClusterGateway >=v1.7.0 to make correct usage.

To install the SAE APIServer, you can pull the code repo and run

helm install ./charts

To register a SAE APIServer proxy, apply the following YAML.

apiVersion: sae.alibaba-cloud.oam.dev/v1alpha1
kind: SAEAPIServer
metadata:
  name: sae-stage
spec:
  accessKeyId: <your aliyun accessKeyId>
  accessKeySecret: <your aliyun accessKeySecret>
  region: <the SAE APIServer region>

You can check it through running kubectl get saeapiserver and see

NAME          REGION        AK
sae-stage     cn-hangzhou   <your aliyun accessKeyId>

You can change the saeapiserver by kubectl edit saeapiserver if you want to update your AK/SK or delete it if expired.

Now in the KubeVela system, you can use vela cluster list to see your cluster

CLUSTER         ALIAS   TYPE                ENDPOINT                                              ACCEPTED        LABELS                                                
local                   Internal            -                                                     true                                                                  
sae-stage               ServiceAccountToken https://.../apis/sae.alibaba-cloud.oam.dev/v1al...    true            sae.alibaba-cloud.oam.dev/apiserver=true              
                                                                                                              sae.alibaba-cloud.oam.dev/apiserver-region=cn-hangzhou

Start your journey with KubeVela application!

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
  name: sae-app
  namespace: default
spec:
  components:
    - type: webservice
      name: sae-app
      properties:
        image: nginx
      traits:
        - type: expose
          properties:
            port: [80]
            type: LoadBalancer
        - type: scaler
          properties:
            replicas: 3
  policies:
    - type: topology
      name: sae-stage
      properties:
        clusters: ["sae-stage"]

sae-apiserver-proxy's People

Contributors

somefive avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

web-logs2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.