docs: #68 add document to how to install with helm

This commit is contained in:
moonrailgun 2024-06-10 15:39:09 +08:00
parent caab72dac5
commit 95a8e9968b
4 changed files with 35 additions and 48 deletions

View File

@ -1,46 +0,0 @@
name: Deploy Helm Charts
on:
push:
branches:
- master
paths:
- "k8s/helm/**"
workflow_dispatch:
jobs:
release:
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v4
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Update Helm Deps
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
cd k8s/helm
helm dependency update
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.6.0
with:
charts_dir: k8s
config: k8s/helm/cr.yaml
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

View File

@ -1,2 +0,0 @@
owner: msgbyte
git-repo: charts

View File

@ -0,0 +1,4 @@
{
"label": "Kubernetes",
"position": 2
}

View File

@ -0,0 +1,31 @@
---
sidebar_position: 1
---
# Install in Helm
Helm is a tool that streamlines installing and managing Kubernetes applications. Although helm you can easy and quickly enjoy tianji in kubernetes.
## Add repo
At first, you should add msgbyte charts registry into helm repo list.
```bash
helm repo add msgbyte https://msgbyte.github.io/charts
```
Now you can search tianji with `helm search` command.
```bash
helm search repo tianji
```
## Install
Then, feel free to install with one command:
```bash
helm install tianji msgbyte/tianji
```
Its will bring you a pg database and tianji.