-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
256 integrate health checks and monitoring for the server e5 #297
base: main
Are you sure you want to change the base?
256 integrate health checks and monitoring for the server e5 #297
Conversation
…into 245-integration-environment-for-didcomm-mediator-server-deployment-e6
…into 245-integration-environment-for-didcomm-mediator-server-deployment-e6
…se and renamed files.
…6-integrate-health-checks-and-monitoring-for-the-server-e5
…cks-and-monitoring-for-the-server-e5
…ured promethus diasboard
target/ | ||
**/target/ | ||
.idea/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not push this file
SERVER_PUBLIC_DOMAIN="http://didcomm-mediator.com" | ||
SERVER_LOCAL_PORT="8080" | ||
STORAGE_DIRPATH="crates/generic-server/target/storage" | ||
MONGO_DBN="mediator-coordination" | ||
MONGO_URI="mongodb://mongodb:27017" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not push this too
|
||
# Environment variables files | ||
.env.example | ||
.env | ||
|
||
|
||
# Reference crate | ||
mediator-server |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also remove this file
env_file: | ||
- .env | ||
environment: | ||
- MONGODB_URI=mongodb://mongodb:27019/your_database_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not read the MONGO_URI from the env file
name: Publish Image | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
tags: | ||
- 'v*' | ||
|
||
env: | ||
IMAGE_NAME: didcomm-mediator-rs | ||
|
||
jobs: | ||
push: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
contents: read | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Build image | ||
run: docker build . --file Dockerfile --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}" | ||
|
||
- name: Log in to registry | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | ||
|
||
- name: Push image | ||
run: | | ||
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME | ||
|
||
# Ensure all uppercase characters are converted to lowercase | ||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') | ||
# Strip the git ref prefix from the version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this file
|
||
# **Application Deployment Documentation** | ||
|
||
## **1. Prerequisites** | ||
- **Tools and Software Required**: | ||
- Helm version (e.g., `Helm 3.x`) | ||
- Kubernetes version (e.g., `1.25+`) | ||
- Minikube/Cluster setup | ||
- Other dependencies (e.g., Docker, kubectl, etc.) | ||
- **Environment Setup**: | ||
- Access to the Kubernetes cluster | ||
- Required configurations or credentials | ||
|
||
|
||
## **3. Helm Chart Structure** | ||
- **Chart Overview**: | ||
- Structure of the Helm chart (values.yaml, templates, etc.). | ||
- Purpose of critical templates (e.g., Deployment, Service, ConfigMap). | ||
- Default vs. custom configurations. | ||
- **Customization**: | ||
- How to override values.yaml using custom configurations. | ||
Example: | ||
```bash | ||
helm install mediator ./mediator-charts --values custom-values.yaml | ||
``` | ||
- mandatory values are; | ||
|
||
**MONGO_DBN**, | ||
**MONGO_URI**, | ||
**SERVER_LOCAL_PORT** and | ||
**SERVER_PUBLIC_DOMAIN** | ||
|
||
|
||
## **4. Deployment Guide** | ||
- **Steps to Deploy**: | ||
1. Clone the repository: | ||
```bash | ||
git clone https://github.com/adorsys/didcomm-mediator-rs.git | ||
``` | ||
2. Install dependencies: | ||
```bash | ||
helm dependency update mediator-charts | ||
``` | ||
3. Deploy using Helm: | ||
```bash | ||
helm install mediator mediator-charts --namespace didcomm-mediator | ||
``` | ||
4. Verify deployment status: | ||
```bash | ||
kubectl get pods -n didcomm-mediator | ||
kubectl get services -n didcomm-mediator | ||
``` | ||
- **Notes on Namespaces**: | ||
- Importance of creating and using the correct namespace. | ||
- **Rollback Instructions**: | ||
- How to roll back to a previous release: | ||
```bash | ||
helm rollback my-app <revision> | ||
``` | ||
|
||
--- | ||
|
||
## **5. Accessing the Application** | ||
- **Port Forwarding**: | ||
- Steps to forward the service ports locally for testing: | ||
```bash | ||
kubectl port-forward service/<service-name> 8080:<target-port> | ||
``` | ||
- **Ingress/LoadBalancer Details**: | ||
- Steps to access the application if exposed via Ingress or LoadBalancer. | ||
|
||
## **7. Monitoring and Debugging** | ||
- **Logs**: | ||
- How to fetch logs for debugging: | ||
```bash | ||
kubectl logs <pod-name> -n didcomm-mediator | ||
``` | ||
- **Monitoring Tools**: | ||
- Mention tools used (e.g., Prometheus, Grafana, ELK Stack). | ||
- Steps to configure and access monitoring dashboards. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changes are not related to the isssue
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ .Release.Name }}-mongodb-deployment | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: {{ .Release.Name }}-mongodb | ||
template: | ||
metadata: | ||
labels: | ||
app: {{ .Release.Name }}-mongodb | ||
spec: | ||
containers: | ||
- name: mongodb | ||
image: mongo:latest | ||
ports: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove all the charts folder
No description provided.