-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated kubernetes service definition, re-organize documentations (#116)
Two different service has been created for Kubernetes. One is for api and another one is for prometheus metrics. Also now we can add annotations for k8s service definition. Re-organize documentation Added documentation for installation using helm-chart that fixes Add helm chart installation in Getting Started guide in website #115
- Loading branch information
1 parent
5eaa6cf
commit 58df0d6
Showing
15 changed files
with
182 additions
and
77 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
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 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.
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,45 @@ | ||
{{- if .Values.apiService.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "teredix.fullname" . }}-api | ||
{{- if .Values.apiService.annotations }} | ||
annotations: | ||
{{- toYaml .Values.apiService.annotations | nindent 4 }} | ||
{{- end }} | ||
labels: | ||
{{- include "teredix.labels" . | nindent 4 }} | ||
spec: | ||
type: {{ .Values.apiService.type }} | ||
ports: | ||
- port: {{ .Values.apiService.port }} | ||
targetPort: http | ||
protocol: TCP | ||
name: http | ||
selector: | ||
{{- include "teredix.selectorLabels" . | nindent 4 }} | ||
--- | ||
{{- end }} | ||
|
||
{{- if .Values.prometheusMetricsService.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "teredix.fullname" . }}-metrics | ||
{{- if .Values.prometheusMetricsService.annotations }} | ||
annotations: | ||
{{- toYaml .Values.prometheusMetricsService.annotations | nindent 4 }} | ||
{{- end }} | ||
labels: | ||
{{- include "teredix.labels" . | nindent 4 }} | ||
spec: | ||
type: {{ .Values.prometheusMetricsService.type }} | ||
ports: | ||
- port: {{ .Values.prometheusMetricsService.port }} | ||
targetPort: http | ||
protocol: TCP | ||
name: http | ||
selector: | ||
{{- include "teredix.selectorLabels" . | nindent 4 }} | ||
--- | ||
{{- end }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"label": "Contribution", | ||
"position": 4, | ||
"position": 5, | ||
"link": { | ||
"type": "generated-index" | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"label": "Installation", | ||
"position": 4, | ||
"link": { | ||
"type": "generated-index" | ||
} | ||
} |
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,20 @@ | ||
--- | ||
title: "Run terediX using Docker" | ||
sidebar_label: Docker | ||
--- | ||
|
||
## Docker | ||
|
||
If you want to install **terediX** with Docker, then you can run the following command to pull the docker image: | ||
|
||
```bash | ||
docker pull ghcr.io/shaharia-lab/teredix:0.0.2 | ||
``` | ||
|
||
Or, if you want to run the docker image, then you can run the following command: | ||
|
||
```bash | ||
docker run -it --rm ghcr.io/shaharia-lab/teredix:0.0.2 --help | ||
``` | ||
|
||
You can find all the available docker images from [GitHub Container Registry](https://github.com/shaharia-lab/terediX/pkgs/container/teredix) |
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,12 @@ | ||
--- | ||
title: "Install terediX with Go Install" | ||
sidebar_label: Go Install | ||
--- | ||
|
||
## Go Install | ||
|
||
If you want to install **terediX** with `go install` command, then you can run the following command: | ||
|
||
```bash | ||
go install github.com/shaharia-lab/teredix/cmd/terediX@latest | ||
``` |
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,45 @@ | ||
--- | ||
title: "Deploy terediX in Kubernetes" | ||
sidebar_label: Kubernetes | ||
--- | ||
|
||
## Deploy in Kubernetes using Helm Chart | ||
|
||
It's very simple to install `terediX` in Kubernetes. You can install using Helm chart. Here are the simplest steps to follow. | ||
|
||
### Add Helm Repository | ||
|
||
```bash | ||
helm repo add teredix https://teredix.shaharialab.com | ||
helm repo update | ||
``` | ||
|
||
### Add Configuration | ||
|
||
Create a separate helm values file and override necessary configuration. Specially you need to provide the configuration for `terediX`. | ||
|
||
Create a `values-prod.yaml` file and put the following content. You can override any configuration as you need. Read more about [terediX configuration](/docs/configuration/general). | ||
|
||
```bash | ||
appConfig: | ||
# organization: | ||
# name: Your Organization | ||
# logo: https://your-org-url.com/logo.png | ||
# discovery: | ||
# name: Name of the discovery | ||
# description: Some description about the discovery | ||
# worker_pool_size: 1 | ||
# storage: | ||
......... | ||
``` | ||
|
||
### Install | ||
After that, just install terediX using the following command. | ||
|
||
```bash | ||
helm install teredix teredix/teredix --namespace teredix -f values-prod.yaml | ||
``` | ||
|
||
For more useful Helm commands, please follow the [official documentation of Helm](https://helm.sh/docs/helm/). | ||
|
||
For details about `terediX` helm chart, go to [terediX Helm Chart in ArtifactHub](https://artifacthub.io/packages/helm/teredix/teredix) |
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,19 @@ | ||
--- | ||
title: "Use terediX as standalone binary" | ||
sidebar_label: Standalone Binary | ||
--- | ||
|
||
## Standalone Binary | ||
|
||
If you want to install **terediX** with binary, then you can download the binary from [release page](https://github.com/shaharia-lab/teredix/releases). | ||
May be you need to make the binary executable by running the following command: | ||
|
||
```bash | ||
chmod +x terediX | ||
``` | ||
|
||
Run the following command to start **terediX**: | ||
|
||
```bash | ||
teredix --help | ||
``` |
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