-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #314 from Grraahaam/feat/helm-mongodb-persistence
feat(chart): mongodb persistence
- Loading branch information
Showing
10 changed files
with
638 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,36 @@ | ||
### helm repository Setup | ||
Assuming you have helm already installed, it is straight-forward to add a Cloudsmith-based chart repository: | ||
# Infisical Helm Charts | ||
|
||
``` | ||
helm repo add infisical-helm-charts 'https://dl.cloudsmith.io/public/infisical/helm-charts/helm/charts/' | ||
Welcome to Infisical Helm Charts repository! Find instructions below to setup and install our charts. | ||
|
||
```sh | ||
# Add the Infisical repository | ||
helm repo add infisical 'https://dl.cloudsmith.io/public/infisical/helm-charts/helm/charts/' && helm repo update | ||
|
||
# Install Infisical | ||
helm upgrade --install --atomic \ | ||
-n infisical-dev --create-namespace \ | ||
infisical infisical/infisical | ||
|
||
helm repo update | ||
# Install Infisical Secrets Operator | ||
helm upgrade --install --atomic \ | ||
-n infisical-dev --create-namespace \ | ||
infisical-secrets-operator infisical/secrets-operator | ||
``` | ||
|
||
### Installing a Helm Chart | ||
``` | ||
helm install infisical-helm-charts/<name-of-helm-chart> | ||
``` | ||
## Charts | ||
|
||
Here's the link to our charts corresponding documentation : | ||
- **`[infisical](./infisical/README.md)`** | ||
- **`secrets-operator`** | ||
|
||
## Documentation | ||
|
||
We're trying to follow a documentation convention across our charts, allowing us to auto-generate markdown documentation thanks to [this tool](https://github.com/bitnami-labs/readme-generator-for-helm) | ||
|
||
#### Available chart names | ||
- infisical | ||
- secrets-operator | ||
Steps to update the documentation : | ||
1. `cd helm-charts/<chart>` | ||
1. `git clone https://github.com/bitnami-labs/readme-generator-for-helm` | ||
2. `npm install ./readme-generator-for-helm` | ||
3. `npm exec readme-generator -- --readme README.md --values values.yaml` | ||
- It'll insert the table below the `## Parameters` title | ||
- It'll output errors if some of the path aren't documented |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
charts/ | ||
node_modules/ | ||
package*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
dependencies: | ||
- name: mongodb | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 13.6.7 | ||
- name: mailhog | ||
repository: https://codecentric.github.io/helm-charts | ||
version: 5.2.3 | ||
digest: sha256:a54ae9ee60775f6f1aa916b59aee55b3ed5234b6bd88185fcb118b7f69539d70 | ||
generated: "2023-02-13T14:13:27.525541038+01:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
## | ||
|
||
-- Infisical Helm Chart -- | ||
|
||
__ __ | ||
( _) ( _) | ||
/ / \\ / /\_\_ | ||
/ / \\ / / | \ \ | ||
/ / \\ / / |\ \ \ | ||
/ / , \ , / / /| \ \ | ||
/ / |\_ /| / / / \ \_\ | ||
/ / |\/ _ '_|\ / / / \ \\ | ||
| / |/ 0 \0\\ / | | \ \\ | ||
| |\| \_\_ / / | \ \\ | ||
| | |/ \.\ o\o) / \ | \\ | ||
\ | /\\`v-v / | | \\ | ||
| \/ /_| \\_| / | | \ \\ | ||
| | /__/_ / _____ | | \ \\ | ||
\| [__] \_/ |_________ \ | \ () | ||
/ [___] ( \ \ |\ | | // | ||
| [___] |\| \| / |/ | ||
/| [____] \ |/\ / / || | ||
( \ [____ / ) _\ \ \ \| | || | ||
\ \ [_____| / / __/ \ / / // | ||
| \ [_____/ / / \ | \/ // | ||
| / '----| /=\____ _/ | / // | ||
__ / / | / ___/ _/\ \ | || | ||
(/-(/-\) / \ (/\/\)/ | / | / | ||
(/\/\) / / // | ||
_________/ / / | ||
\____________/ ( | ||
|
||
██╗███╗ ██╗███████╗██╗███████╗██╗ ██████╗ █████╗ ██╗ | ||
██║████╗ ██║██╔════╝██║██╔════╝██║██╔════╝██╔══██╗██║ | ||
██║██╔██╗ ██║█████╗ ██║███████╗██║██║ ███████║██║ | ||
██║██║╚██╗██║██╔══╝ ██║╚════██║██║██║ ██╔══██║██║ | ||
██║██║ ╚████║██║ ██║███████║██║╚██████╗██║ ██║███████╗ | ||
╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═════╝╚═╝ ╚═╝╚══════╝ | ||
{{ .Chart.Name }} ({{ .Chart.Version }}) | ||
|
||
|
||
╭―― Thank you for installing Infisical! 👋 ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――┤ | ||
│ | ||
│ Infisical / All-in-one open-source SecretOps solution to manage your secrets across your infra! 🔒🔑 | ||
│ | ||
│ Visit < https://infisical.com/docs/self-hosting/overview > for further documentation about self-hosting! | ||
│ | ||
│ Current installation (infisical) : | ||
│ • infisical-frontend : {{ .Values.frontend.enabled }} | ||
│ • infisical-backend : {{ .Values.backend.enabled }} | ||
│ • mongodb : {{ .Values.mongodb.enabled }} | ||
│ • mailhog : {{ .Values.mailhog.enabled }} | ||
│ | ||
╰―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――┤ | ||
|
||
╭―― Here's a list of helpfull commands to get you started 📝 ―――――――――――――――――――――――――――――――――――――――――┤ | ||
│ | ||
│ → Get all the Infisical resources (excluding secrets/pvcs) | ||
│ $ kubectl get all -n {{ .Release.Namespace }} | ||
│ | ||
│ → Get your release status | ||
│ $ helm status {{ .Release.Namespace }} {{ .Release.Name }} | ||
│ | ||
│ → Get your release resources | ||
│ $ helm get all {{ .Release.Namespace }} {{ .Release.Name }} | ||
│ | ||
│ → Uninstall your release | ||
│ $ helm uninstall {{ .Release.Namespace }} {{ .Release.Name }} | ||
│ | ||
│ → Get MongoDB root password | ||
│ $ kubectl get secret {{ .Release.Namespace }} mongodb | ||
│ -o jsonpath="{.data['mongodb-root-password']}" | base64 -d | ||
│ | ||
│ → Get MongoDB users passwords | ||
│ $ kubectl get secret {{ .Release.Namespace }} mongodb | ||
│ -o jsonpath="{.data['mongodb-passwords']}" | base64 -d | ||
│ | ||
╰―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――┤ | ||
|
||
## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.