From ca145b0be5af9c06ab3e173cfed18d92aa0ec56a Mon Sep 17 00:00:00 2001 From: Rakesh Bajpayee <153479979+Helion55@users.noreply.github.com> Date: Thu, 16 Jan 2025 11:06:03 +0530 Subject: [PATCH 1/9] helm charts created Signed-off-by: Rakesh Bajpayee <153479979+Helion55@users.noreply.github.com> --- helm/mediator/Chart.yaml | 24 ++++++++++ helm/mediator/templates/NOTES.txt | 0 helm/mediator/templates/_helpers.tpl | 62 +++++++++++++++++++++++++ helm/mediator/templates/deployment.yaml | 46 ++++++++++++++++++ helm/mediator/templates/ingress.yaml | 24 ++++++++++ helm/mediator/templates/service.yaml | 10 ++++ helm/mediator/values.yaml | 39 ++++++++++++++++ 7 files changed, 205 insertions(+) create mode 100644 helm/mediator/Chart.yaml create mode 100644 helm/mediator/templates/NOTES.txt create mode 100644 helm/mediator/templates/_helpers.tpl create mode 100644 helm/mediator/templates/deployment.yaml create mode 100644 helm/mediator/templates/ingress.yaml create mode 100644 helm/mediator/templates/service.yaml create mode 100644 helm/mediator/values.yaml diff --git a/helm/mediator/Chart.yaml b/helm/mediator/Chart.yaml new file mode 100644 index 0000000..fc38992 --- /dev/null +++ b/helm/mediator/Chart.yaml @@ -0,0 +1,24 @@ +apiVersion: v2 +name: helm +description: A Helm chart for Kubernetes + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +type: application + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +# Versions are expected to follow Semantic Versioning (https://semver.org/) +version: 0.1.0 + +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. Versions are not expected to +# follow Semantic Versioning. They should reflect the version the application is using. +# It is recommended to use it with quotes. +appVersion: "1.16.0" diff --git a/helm/mediator/templates/NOTES.txt b/helm/mediator/templates/NOTES.txt new file mode 100644 index 0000000..e69de29 diff --git a/helm/mediator/templates/_helpers.tpl b/helm/mediator/templates/_helpers.tpl new file mode 100644 index 0000000..ba04c30 --- /dev/null +++ b/helm/mediator/templates/_helpers.tpl @@ -0,0 +1,62 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "helm.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "helm.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "helm.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "helm.labels" -}} +helm.sh/chart: {{ include "helm.chart" . }} +{{ include "helm.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "helm.selectorLabels" -}} +app.kubernetes.io/name: {{ include "helm.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Create the name of the service account to use +*/}} +{{- define "helm.serviceAccountName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "helm.fullname" .) .Values.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.serviceAccount.name }} +{{- end }} +{{- end }} diff --git a/helm/mediator/templates/deployment.yaml b/helm/mediator/templates/deployment.yaml new file mode 100644 index 0000000..6026ef6 --- /dev/null +++ b/helm/mediator/templates/deployment.yaml @@ -0,0 +1,46 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ .Values.deployment_name }} + namespace: {{ .Values.namespace }} + labels: + app: {{ .Values.deployment_name }} +spec: + replicas: {{ .Values.replicas }} + selector: + matchLabels: + app: {{ .Values.deployment_name }} + template: + metadata: + labels: + app: {{ .Values.deployment_name }} + spec: + containers: + - name: {{ .Values.container.name }} + image: "{{ Values.image.name }}:{{ Values.image.tag }}" + imagePullPolicy: Always + ports: + - containerPort: {{ .Values.container.port }} + env: + - name: AGENT_PORT + value: {{ .Values.environment.AGENT_PORT }} + - name: AGENT_NAME + value: {{ .Values.environment.AGENT_NAME }} + - name: WALLET_NAME + value: {{ .Values.environment.WALLET_NAME }} + - name: WALLET_KEY + value: {{ .Values.environment.WALLET_KEY }} + - name: POSTGRES_USER + value: {{ .Values.environment.POSTGRES_USER }} + - name: POSTGRES_PASSWORD + value: {{ .Values.environment.POSTGRES_PASSWORD }} + - name: POSTGRES_HOST + value: {{ .Values.environment.POSTGRES_HOST }} + - name: POSTGRES_ADMIN_USER + value: {{ .Values.environment.POSTGRES_ADMIN_USER }} + - name: POSTGRES_ADMIN_PASSWORD + value: {{ .Values.environment.POSTGRES_ADMIN_PASSWORD }} + - name: AGENT_ENDPOINTS + value: {{ .Values.environment.AGENT_ENDPOINTS }} + - name: LOG_LEVEL + value: {{ .Values.environment.LOG_LEVEL }} \ No newline at end of file diff --git a/helm/mediator/templates/ingress.yaml b/helm/mediator/templates/ingress.yaml new file mode 100644 index 0000000..abbd131 --- /dev/null +++ b/helm/mediator/templates/ingress.yaml @@ -0,0 +1,24 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + cert-manager.io/cluster-issuer: {{ .Values.cluster_issuer_name }} + kubernetes.io/ingress.class: nginx + name: {{ .Values.ingress_name }} + namespace: {{ .Values.namespace }} +spec: + rules: + - host: {{ .Values.host_name }} + http: + paths: + - backend: + service: + name: {{ .Values.service_name }} + port: + number: {{ .Values.container.port }} + path: / + pathType: Prefix + tls: + - hosts: + - {{ .Values.host_name }} + secretName: {{ .Values.certificate_secret_name }} \ No newline at end of file diff --git a/helm/mediator/templates/service.yaml b/helm/mediator/templates/service.yaml new file mode 100644 index 0000000..11b3e4d --- /dev/null +++ b/helm/mediator/templates/service.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ .Values.service_name }} + namespace: {{ .Values.namespace }} +spec: + selector: + app: {{ .Values.deployment_name }} + ports: + - port: {{ .Values.container.port }} \ No newline at end of file diff --git a/helm/mediator/values.yaml b/helm/mediator/values.yaml new file mode 100644 index 0000000..fc07f31 --- /dev/null +++ b/helm/mediator/values.yaml @@ -0,0 +1,39 @@ +## Common Values +namespace: mediator + + +## Deployment Values +deployment_name: mediator +replicas: 1 + +image: + name: ghcr.io/openwallet-foundation/didcomm-mediator-credo + tag: latest + +container: + name: mediator + port: 3000 + +environment: + AGENT_PORT: 3000 + AGENT_NAME: Mediator + WALLET_NAME: mediator + WALLET_KEY: ${WALLET_KEY} + POSTGRES_USER: ${POSTGRES_USER} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + POSTGRES_HOST: ${POSTGRES_HOST} + POSTGRES_ADMIN_USER: ${POSTGRES_ADMIN_USER} + POSTGRES_ADMIN_PASSWORD: ${POSTGRES_ADMIN_PASSWORD} + AGENT_ENDPOINTS: "https://my-mediator.com,wss://my-mediator.com" + LOG_LEVEL: 2 + + +## Service Values +service_name: mediator + + +## Ingress Values +ingress_name: mediator_ingress +cluster_issuer_name: CLUSTER_ISSUER-NAME +host_name: HOST_NAME +certificate_secret_name: CERTIFICATE_SECRET_NAME \ No newline at end of file From 5bd75e923a2263dcf193ebae0577ec377f28863a Mon Sep 17 00:00:00 2001 From: Rakesh Bajpayee <153479979+Helion55@users.noreply.github.com> Date: Sat, 18 Jan 2025 08:56:42 +0530 Subject: [PATCH 2/9] Update deployment.yaml Signed-off-by: Rakesh Bajpayee <153479979+Helion55@users.noreply.github.com> --- helm/mediator/templates/deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/mediator/templates/deployment.yaml b/helm/mediator/templates/deployment.yaml index 6026ef6..2d4e222 100644 --- a/helm/mediator/templates/deployment.yaml +++ b/helm/mediator/templates/deployment.yaml @@ -17,7 +17,7 @@ spec: spec: containers: - name: {{ .Values.container.name }} - image: "{{ Values.image.name }}:{{ Values.image.tag }}" + image: " {{ .Values.image.name }}:{{ .Values.image.tag }} " imagePullPolicy: Always ports: - containerPort: {{ .Values.container.port }} @@ -43,4 +43,4 @@ spec: - name: AGENT_ENDPOINTS value: {{ .Values.environment.AGENT_ENDPOINTS }} - name: LOG_LEVEL - value: {{ .Values.environment.LOG_LEVEL }} \ No newline at end of file + value: {{ .Values.environment.LOG_LEVEL }} From b92f76194e7b5c869c492771f413a1c8f2d9434e Mon Sep 17 00:00:00 2001 From: Rakesh Bajpayee <153479979+Helion55@users.noreply.github.com> Date: Sat, 18 Jan 2025 09:16:35 +0530 Subject: [PATCH 3/9] Update deployment.yaml Signed-off-by: Rakesh Bajpayee <153479979+Helion55@users.noreply.github.com> --- helm/mediator/templates/deployment.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/helm/mediator/templates/deployment.yaml b/helm/mediator/templates/deployment.yaml index 2d4e222..af89406 100644 --- a/helm/mediator/templates/deployment.yaml +++ b/helm/mediator/templates/deployment.yaml @@ -23,24 +23,24 @@ spec: - containerPort: {{ .Values.container.port }} env: - name: AGENT_PORT - value: {{ .Values.environment.AGENT_PORT }} + value: "{{ .Values.environment.AGENT_PORT }}" - name: AGENT_NAME - value: {{ .Values.environment.AGENT_NAME }} + value: "{{ .Values.environment.AGENT_NAME }}" - name: WALLET_NAME - value: {{ .Values.environment.WALLET_NAME }} + value: "{{ .Values.environment.WALLET_NAME }}" - name: WALLET_KEY - value: {{ .Values.environment.WALLET_KEY }} + value: "{{ .Values.environment.WALLET_KEY }}" - name: POSTGRES_USER - value: {{ .Values.environment.POSTGRES_USER }} + value: "{{ .Values.environment.POSTGRES_USER }}" - name: POSTGRES_PASSWORD - value: {{ .Values.environment.POSTGRES_PASSWORD }} + value: "{{ .Values.environment.POSTGRES_PASSWORD }}" - name: POSTGRES_HOST - value: {{ .Values.environment.POSTGRES_HOST }} + value: "{{ .Values.environment.POSTGRES_HOST }}" - name: POSTGRES_ADMIN_USER - value: {{ .Values.environment.POSTGRES_ADMIN_USER }} + value: "{{ .Values.environment.POSTGRES_ADMIN_USER }}" - name: POSTGRES_ADMIN_PASSWORD - value: {{ .Values.environment.POSTGRES_ADMIN_PASSWORD }} + value: "{{ .Values.environment.POSTGRES_ADMIN_PASSWORD }}" - name: AGENT_ENDPOINTS - value: {{ .Values.environment.AGENT_ENDPOINTS }} + value: "{{ .Values.environment.AGENT_ENDPOINTS }}" - name: LOG_LEVEL - value: {{ .Values.environment.LOG_LEVEL }} + value: "{{ .Values.environment.LOG_LEVEL }}" From ae27e1e8c840525c6899b183543ad1ac3b0bb599 Mon Sep 17 00:00:00 2001 From: Rakesh Bajpayee <153479979+Helion55@users.noreply.github.com> Date: Sun, 19 Jan 2025 10:15:01 +0530 Subject: [PATCH 4/9] Delete helm/mediator/templates/_helpers.tpl Signed-off-by: Rakesh Bajpayee <153479979+Helion55@users.noreply.github.com> --- helm/mediator/templates/_helpers.tpl | 62 ---------------------------- 1 file changed, 62 deletions(-) delete mode 100644 helm/mediator/templates/_helpers.tpl diff --git a/helm/mediator/templates/_helpers.tpl b/helm/mediator/templates/_helpers.tpl deleted file mode 100644 index ba04c30..0000000 --- a/helm/mediator/templates/_helpers.tpl +++ /dev/null @@ -1,62 +0,0 @@ -{{/* -Expand the name of the chart. -*/}} -{{- define "helm.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "helm.fullname" -}} -{{- if .Values.fullnameOverride }} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- $name := default .Chart.Name .Values.nameOverride }} -{{- if contains $name .Release.Name }} -{{- .Release.Name | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} -{{- end }} -{{- end }} -{{- end }} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "helm.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Common labels -*/}} -{{- define "helm.labels" -}} -helm.sh/chart: {{ include "helm.chart" . }} -{{ include "helm.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels -*/}} -{{- define "helm.selectorLabels" -}} -app.kubernetes.io/name: {{ include "helm.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} - -{{/* -Create the name of the service account to use -*/}} -{{- define "helm.serviceAccountName" -}} -{{- if .Values.serviceAccount.create }} -{{- default (include "helm.fullname" .) .Values.serviceAccount.name }} -{{- else }} -{{- default "default" .Values.serviceAccount.name }} -{{- end }} -{{- end }} From 4e91efc020099dd026e77dd58e66f515aff5f707 Mon Sep 17 00:00:00 2001 From: Rakesh Bajpayee <153479979+Helion55@users.noreply.github.com> Date: Sun, 19 Jan 2025 13:18:10 +0530 Subject: [PATCH 5/9] Readme file for helm deployment Signed-off-by: Rakesh Bajpayee <153479979+Helion55@users.noreply.github.com> --- helm/README.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 helm/README.md diff --git a/helm/README.md b/helm/README.md new file mode 100644 index 0000000..fc27304 --- /dev/null +++ b/helm/README.md @@ -0,0 +1,38 @@ +# Installing didcomm-mediator-credo on k8s with Helm +### Three manifest files are used in Helm charts +1. Deployment.yaml +This file contains the replicaset, container image name, container port, and environment variables for the container. This will create a Deployment type object for the application. + +2. Service.yaml +The service file is to create a service-type object to connect with the pods and to access the application by redirecting traffic through it without exposing the pod directly. + +3. Ingress.yaml +Ingress is one layer on top of the service that will connect with the load balancer to redirect the traffic to the service. If multiple services are present, it can also redirect traffic to them by path-based routing. Similar to a service, it will redirect the traffic to the service without exposing it. + +## Helm Chart Note +- The values.yaml file contains 4 sections: Common Values, Deployment Values, Service Values, and Ingress Values. +- These values will be passed inside the manifest files in the templates folder. +- Deployment env values should be replaced with your values in the values.yaml file's Deployment Values environment section. + +## Helm Commands to Install the Application. +- Installing the application from the root directory with default values of the values.yaml file. +```bash +helm install YOUR_HELM_RELEASE_NAME ./helm/mediator/ +``` + +- Changing the values as needed +```bash +helm install YOUR_HELM_RELEASE_NAME ./helm/mediator/ --set KEY=VALUE +``` +- Changing multiple values +```bash +helm install YOUR_HELM_RELEASE_NAME ./helm/mediator/ --set KEY1=VALUE1,KEY2=VALUE2 +``` + +- After installing, you can upgrade the values with the ```helm upgrade``` command. +```bash +helm upgrade YOUR_HELM_RELEASE_NAME ./helm/mediator/ --set KEY=VALUE +``` +```bash +helm upgrade YOUR_HELM_RELEASE_NAME ./helm/mediator/ --set KEY1=VALUE1,KEY2=VALUE2 +``` \ No newline at end of file From d58a3657a6705a960ce8df64d8120018705b7761 Mon Sep 17 00:00:00 2001 From: Rakesh Bajpayee <153479979+Helion55@users.noreply.github.com> Date: Mon, 20 Jan 2025 19:19:53 +0530 Subject: [PATCH 6/9] Update helm/README.md Co-authored-by: Timo Glastra Signed-off-by: Rakesh Bajpayee <153479979+Helion55@users.noreply.github.com> --- helm/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helm/README.md b/helm/README.md index fc27304..4b5d4a0 100644 --- a/helm/README.md +++ b/helm/README.md @@ -1,4 +1,5 @@ -# Installing didcomm-mediator-credo on k8s with Helm +# Installing DIDComm Mediator Credo on k8s with Helm + ### Three manifest files are used in Helm charts 1. Deployment.yaml This file contains the replicaset, container image name, container port, and environment variables for the container. This will create a Deployment type object for the application. From 3ff416310b56f94c9ffebbac642e2419ec054481 Mon Sep 17 00:00:00 2001 From: Rakesh Bajpayee <153479979+Helion55@users.noreply.github.com> Date: Tue, 21 Jan 2025 09:49:20 +0530 Subject: [PATCH 7/9] Update README.md Signed-off-by: Rakesh Bajpayee <153479979+Helion55@users.noreply.github.com> --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 85c6069..7f41447 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,14 @@ docker build \ . ``` +## Using Helm +### To deploy the application on Kubernetes using Helm, follow this [installation guide](/helm/README.md) containing + +- Helm Chart structure +- Quick Note +- Helm Commands + + ## Roadmap The contents in this repository started out as a simple mediator built using Credo that can be used for development. Over time we've added some features, but there's still a lot we want to add to this repository over time. Some things on the roadmap: From bbac5eb36a6b2c0595c2ce8fb0c68d6711ac4517 Mon Sep 17 00:00:00 2001 From: Rakesh Bajpayee <153479979+Helion55@users.noreply.github.com> Date: Fri, 24 Jan 2025 09:00:28 +0530 Subject: [PATCH 8/9] Update deployment.yaml Signed-off-by: Rakesh Bajpayee <153479979+Helion55@users.noreply.github.com> --- helm/mediator/templates/deployment.yaml | 52 ++++++++++++++++++------- 1 file changed, 39 insertions(+), 13 deletions(-) diff --git a/helm/mediator/templates/deployment.yaml b/helm/mediator/templates/deployment.yaml index af89406..eb53419 100644 --- a/helm/mediator/templates/deployment.yaml +++ b/helm/mediator/templates/deployment.yaml @@ -17,30 +17,56 @@ spec: spec: containers: - name: {{ .Values.container.name }} - image: " {{ .Values.image.name }}:{{ .Values.image.tag }} " - imagePullPolicy: Always + image: "{{ .Values.image.name }}:{{ .Values.image.tag }}" + imagePullPolicy: {{ .Values.container.imagePullPolicy }} + resources: + {{- toYaml .Values.resources | nindent 12 }} ports: - containerPort: {{ .Values.container.port }} + livenessProbe: + httpGet: + path: /health + port: http + initialDelaySeconds: 45 + periodSeconds: 3 + readinessProbe: + httpGet: + path: /health + port: http + initialDelaySeconds: 45 + timeoutSeconds: 3 env: - name: AGENT_PORT - value: "{{ .Values.environment.AGENT_PORT }}" + value: {{ .Values.environment.AGENT_PORT }} - name: AGENT_NAME - value: "{{ .Values.environment.AGENT_NAME }}" + value: {{ .Values.environment.AGENT_NAME }} - name: WALLET_NAME - value: "{{ .Values.environment.WALLET_NAME }}" + value: {{ .Values.environment.WALLET_NAME }} - name: WALLET_KEY - value: "{{ .Values.environment.WALLET_KEY }}" + envFrom: + - secretRef: + name: {{ include "mediator-agent.fullname" . }}-creds - name: POSTGRES_USER - value: "{{ .Values.environment.POSTGRES_USER }}" + value: {{ .Values.environment.POSTGRES_USER }} - name: POSTGRES_PASSWORD - value: "{{ .Values.environment.POSTGRES_PASSWORD }}" + envFrom: + - secretRef: + name: {{ include "mediator-agent.fullname" . }}-postgresql-creds - name: POSTGRES_HOST - value: "{{ .Values.environment.POSTGRES_HOST }}" + value: {{ .Values.environment.POSTGRES_HOST }} - name: POSTGRES_ADMIN_USER - value: "{{ .Values.environment.POSTGRES_ADMIN_USER }}" + value: {{ .Values.environment.POSTGRES_ADMIN_USER }} - name: POSTGRES_ADMIN_PASSWORD - value: "{{ .Values.environment.POSTGRES_ADMIN_PASSWORD }}" + value: {{ .Values.environment.POSTGRES_ADMIN_PASSWORD }} - name: AGENT_ENDPOINTS - value: "{{ .Values.environment.AGENT_ENDPOINTS }}" + value: {{ .Values.environment.AGENT_ENDPOINTS }} - name: LOG_LEVEL - value: "{{ .Values.environment.LOG_LEVEL }}" + value: {{ .Values.environment.LOG_LEVEL }} + volumeMounts: + - name: cache-volume + mountPath: /.cache + + volumes: + - name: cache-volume + emptyDir: + sizeLimit: 1Gi From 1a3cf340dc22df52b9b9681ce75d056ec8b42376 Mon Sep 17 00:00:00 2001 From: Rakesh Bajpayee <153479979+Helion55@users.noreply.github.com> Date: Fri, 24 Jan 2025 09:01:41 +0530 Subject: [PATCH 9/9] Update values.yaml Signed-off-by: Rakesh Bajpayee <153479979+Helion55@users.noreply.github.com> --- helm/mediator/values.yaml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/helm/mediator/values.yaml b/helm/mediator/values.yaml index fc07f31..0508d10 100644 --- a/helm/mediator/values.yaml +++ b/helm/mediator/values.yaml @@ -13,20 +13,26 @@ image: container: name: mediator port: 3000 + imagePullPolicy: Always environment: AGENT_PORT: 3000 AGENT_NAME: Mediator WALLET_NAME: mediator - WALLET_KEY: ${WALLET_KEY} POSTGRES_USER: ${POSTGRES_USER} - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} POSTGRES_HOST: ${POSTGRES_HOST} POSTGRES_ADMIN_USER: ${POSTGRES_ADMIN_USER} - POSTGRES_ADMIN_PASSWORD: ${POSTGRES_ADMIN_PASSWORD} - AGENT_ENDPOINTS: "https://my-mediator.com,wss://my-mediator.com" + POSTGRES_ADMIN_PASSWORD: {} + AGENT_ENDPOINTS: {} LOG_LEVEL: 2 +resources: + requests: + memory: 256Mi + cpu: 20m + limits: + memory: 256Mi + cpu: 100m ## Service Values service_name: mediator @@ -34,6 +40,6 @@ service_name: mediator ## Ingress Values ingress_name: mediator_ingress -cluster_issuer_name: CLUSTER_ISSUER-NAME -host_name: HOST_NAME -certificate_secret_name: CERTIFICATE_SECRET_NAME \ No newline at end of file +cluster_issuer_name: nginx +host_name: example.com +certificate_secret_name: my-cert