Skip to content

Declarative deployment #123

@nazar-pc

Description

@nazar-pc

Currently we deploy things imperatively: running scripts that modify state such that it takes desired shape. This works, but it is problematic because we can't revert changes, can't ensure state is exactly what we expect it to be and use tools designed for infrastructure creation to do so.

What we want instead is declarative deployments:

  • Likely some kind of template, in case of k8s it would be Helm chart with some variables
  • Then instantiation of the template with variables filled in, environment variables and secrets configured in it
  • When developer wants to instantiate something, they just send a pull request, when pull request is merged, something like Argo CD will apply necessary changes to make sure deployment matches what was defined in the repository exactly
  • Destruction then is as simple as reverting a pull request

For this to work we need to pick a tool for declarative deployment, key storage solution and have some templates (ideally with readme) that the rest of the team can work with somewhat autonomously.

### Tasks
- [x] Add ArgoCD manager to kubernetes
- [x] setup argo cd in cluster
- [x] create helm charts for astral and nova
- [x] create kustomize manifests for networks
- [x] update helm charts for squids rewards, account, general
- [x] create argocd path for declarative deployments of resources

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions