Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

[Proposal] Splitting the Infra installation from the Stack #260

Open
lyzhang1999 opened this issue May 30, 2022 · 1 comment
Open

[Proposal] Splitting the Infra installation from the Stack #260

lyzhang1999 opened this issue May 30, 2022 · 1 comment

Comments

@lyzhang1999
Copy link
Member

lyzhang1999 commented May 30, 2022

Problem.

Currently, Infra components are installed together in the Stack, which can cause problems with #204. We plan to split the installation of Infra components from the current Stack; the Infra installation process is responsible for installing Infra components and the Stack only generates the application framework source code and Deploy repository.

Option 1.

Split the Stack into an Infra Stack and an Application Stack, with the Infra Stack being used exclusively for installing Infra components and making the necessary configurations to dynamically install the necessary Infra components based on the incoming parameters. When executing hln up, the Installation Infra Stack is executed first, followed by the Application Stack (e.g. gin-next), and we first support these Infra components:

  1. Split Stack(include Argocd) to Infra Stack and an Application Stack @vgjm
    1. Infra Stack can run independently, install them by input some env, and record configmap into cluster for Application Stack use it.
  2. update Infra Stack(Prometheus) and enhance Application Stack make them can multiplexing between different applications in the same cluster @92hackers
  3. update Infra Stack(Loki) and enhance Application Stack make them can multiplexing between different applications in the same cluster @92hackers
  4. update Infra Stack(Dapr) and enhance Application Stack make them can multiplexing between different applications in the same cluster @92hackers
  5. update Infra Stack(Nocalhost) and enhance Application Stack make them can multiplexing between different applications in the same cluster @yuyicai
  6. update Infra Stack(Argocd) and enhance Application Stack make them can multiplexing between different applications in the same cluster @yuyicai
  7. update Infra Stack(SealedSecrets) and enhance Application Stack make them can multiplexing between different applications in the same cluster @yuyicai
  8. update Infra Stack(Jeager) and enhance Application Stack make them can multiplexing between different applications in the same cluster @lyzhang1999
  9. update Infra Stack(Istio) and enhance Application Stack make them can multiplexing between different applications in the same cluster @lyzhang1999
  10. hln init && up && down && hln status...... @hongchaodeng

Results.

When hln up is executed, if the Infra component is not installed, it is installed automatically. If it is installed, it is skipped and execute the Application Stack installation.
When a new application is created in the same cluster, the Infra component will remain intact and only application related content will be created, solving the problem of #204.

hln

Enhance hln init command, install infra first, then hln up will run application stack.

@92hackers
Copy link
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants