Skip to content

Commit

Permalink
helm devops readme (#658)
Browse files Browse the repository at this point in the history
# Description

This PR includes the following proposed change(s):

- spdbt-2066: deploy test env with helm chart.

---------

Co-authored-by: Yossi T <[email protected]>
  • Loading branch information
peggy-quartech and ytqsl authored Jan 6, 2024
1 parent 4a59614 commit 0698527
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
26 changes: 26 additions & 0 deletions tools/helm/charts/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Environment setup


## Install helm

To install helm chart, use the following command:

```sh
winget install helm.helm
```
Note another way to install helm: Open a "command prompt" as system administrator, go to "sparc" folder, use chocolate to install helm.

```
choco
choco install kubernetes-helm
```
## Sync "Dev hangout" files to local
go to teams/Dev hangout/ files, select "sync"

## Create a symlink by running this command

Open a "command prompt" as system administrator, go to "sparc" folder, use following command

```
mklink /D envs "C:\Users\[user]\Quartech Systems Limited\SPD QT No41 only - Dev hangout - secrets\envs"
```
13 changes: 11 additions & 2 deletions tools/helm/charts/sparc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,28 @@
This directory contains a Helm chart to deploy SPD Sparc applications.

Each environment has its own folder under 'envs' that need to be mapped from the shared secured storage.
Start a command prompt with Administrator, then login to your openshift account.

## Usage

To install a new environment, ensure the values.yaml matches the environment, then run the following command:

```sh
helm -n [namespace] install [env name] -f ./envs/[env name]/values.yml
helm -n [namespace] install [env name] . -f ./envs/[env name]/values.yaml
```
Example:
```
C:\projects\spd\tools\helm\charts\sparc>helm -n fe7e29-test install testname . -f ./envs/test/values.yaml
```

To upgrade an existing environment, run the following command:

```sh
helm -n [namespace] upgrade [env name] -f ./envs/[env name]/values.yml
helm -n [namespace] upgrade [env name] . -f ./envs/[env name]/values.yaml
```
Example:
```
C:\projects\spd\tools\helm\charts\sparc>helm -n fe7e29-test upgrade testname . -f ./envs/test/values.yaml
```

To remove an existing environment, run the following command:
Expand Down

0 comments on commit 0698527

Please sign in to comment.