From 989c23ca2b725ff33d899f6279ad65a66bcbba25 Mon Sep 17 00:00:00 2001 From: amitz Date: Tue, 6 Aug 2024 00:21:33 +0300 Subject: [PATCH] cache --- charts/cache/.helmignore | 23 +++ charts/cache/Chart.yaml | 24 +++ charts/cache/README.md | 43 +++++ charts/cache/templates/NOTES.txt | 22 +++ charts/cache/templates/_helpers.tpl | 62 +++++++ charts/cache/templates/deployment.yaml | 61 +++++++ charts/cache/templates/hpa.yaml | 28 +++ charts/cache/templates/ingress.yaml | 61 +++++++ charts/cache/templates/service.yaml | 15 ++ charts/cache/templates/serviceaccount.yaml | 12 ++ .../templates/tests/test-connection.yaml | 15 ++ charts/cache/values.schema.json | 145 +++++++++++++++ charts/cache/values.yaml | 82 +++++++++ charts/consumer/README.md | 166 +++++++++++++++++- charts/consumer/templates/configmap.yaml | 2 +- charts/consumer/templates/deployment.yaml | 2 +- charts/consumer/templates/service.yaml | 2 +- charts/consumer/values.yaml | 2 +- charts/provider/README.md | 4 - charts/provider/templates/deployment.yaml | 2 - 20 files changed, 762 insertions(+), 11 deletions(-) create mode 100644 charts/cache/.helmignore create mode 100644 charts/cache/Chart.yaml create mode 100644 charts/cache/README.md create mode 100644 charts/cache/templates/NOTES.txt create mode 100644 charts/cache/templates/_helpers.tpl create mode 100644 charts/cache/templates/deployment.yaml create mode 100644 charts/cache/templates/hpa.yaml create mode 100644 charts/cache/templates/ingress.yaml create mode 100644 charts/cache/templates/service.yaml create mode 100644 charts/cache/templates/serviceaccount.yaml create mode 100644 charts/cache/templates/tests/test-connection.yaml create mode 100644 charts/cache/values.schema.json create mode 100644 charts/cache/values.yaml diff --git a/charts/cache/.helmignore b/charts/cache/.helmignore new file mode 100644 index 0000000..0e8a0eb --- /dev/null +++ b/charts/cache/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/cache/Chart.yaml b/charts/cache/Chart.yaml new file mode 100644 index 0000000..21efaae --- /dev/null +++ b/charts/cache/Chart.yaml @@ -0,0 +1,24 @@ +apiVersion: v2 +name: cache +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/charts/cache/README.md b/charts/cache/README.md new file mode 100644 index 0000000..2126db4 --- /dev/null +++ b/charts/cache/README.md @@ -0,0 +1,43 @@ +# cache + +![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.16.0](https://img.shields.io/badge/AppVersion-1.16.0-informational?style=flat-square) + +A Helm chart for Kubernetes + +## Values + +| Key | Type | Default | Description | +|-----|------|---------|-------------| +| affinity | object | `{}` | | +| autoscaling.enabled | bool | `false` | | +| autoscaling.maxReplicas | int | `100` | | +| autoscaling.minReplicas | int | `1` | | +| autoscaling.targetCPUUtilizationPercentage | int | `80` | | +| fullnameOverride | string | `""` | | +| image.pullPolicy | string | `"IfNotPresent"` | | +| image.repository | string | `"nginx"` | | +| image.tag | string | `""` | | +| imagePullSecrets | list | `[]` | | +| ingress.annotations | object | `{}` | | +| ingress.className | string | `""` | | +| ingress.enabled | bool | `false` | | +| ingress.hosts[0].host | string | `"chart-example.local"` | | +| ingress.hosts[0].paths[0].path | string | `"/"` | | +| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | | +| ingress.tls | list | `[]` | | +| nameOverride | string | `""` | | +| nodeSelector | object | `{}` | | +| podAnnotations | object | `{}` | | +| podSecurityContext | object | `{}` | | +| replicaCount | int | `1` | | +| resources | object | `{}` | | +| securityContext | object | `{}` | | +| service.port | int | `80` | | +| service.type | string | `"ClusterIP"` | | +| serviceAccount.annotations | object | `{}` | | +| serviceAccount.create | bool | `true` | | +| serviceAccount.name | string | `""` | | +| tolerations | list | `[]` | | + +---------------------------------------------- +Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) diff --git a/charts/cache/templates/NOTES.txt b/charts/cache/templates/NOTES.txt new file mode 100644 index 0000000..e40034a --- /dev/null +++ b/charts/cache/templates/NOTES.txt @@ -0,0 +1,22 @@ +1. Get the application URL by running these commands: +{{- if .Values.ingress.enabled }} +{{- range $host := .Values.ingress.hosts }} + {{- range .paths }} + http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }} + {{- end }} +{{- end }} +{{- else if contains "NodePort" .Values.service.type }} + export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "cache.fullname" . }}) + export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") + echo http://$NODE_IP:$NODE_PORT +{{- else if contains "LoadBalancer" .Values.service.type }} + NOTE: It may take a few minutes for the LoadBalancer IP to be available. + You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "cache.fullname" . }}' + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "cache.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") + echo http://$SERVICE_IP:{{ .Values.service.port }} +{{- else if contains "ClusterIP" .Values.service.type }} + export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "cache.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") + export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") + echo "Visit http://127.0.0.1:8080 to use your application" + kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT +{{- end }} diff --git a/charts/cache/templates/_helpers.tpl b/charts/cache/templates/_helpers.tpl new file mode 100644 index 0000000..5e86873 --- /dev/null +++ b/charts/cache/templates/_helpers.tpl @@ -0,0 +1,62 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "cache.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 "cache.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 "cache.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "cache.labels" -}} +helm.sh/chart: {{ include "cache.chart" . }} +{{ include "cache.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "cache.selectorLabels" -}} +app.kubernetes.io/name: {{ include "cache.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Create the name of the service account to use +*/}} +{{- define "cache.serviceAccountName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "cache.fullname" .) .Values.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.serviceAccount.name }} +{{- end }} +{{- end }} diff --git a/charts/cache/templates/deployment.yaml b/charts/cache/templates/deployment.yaml new file mode 100644 index 0000000..87287bf --- /dev/null +++ b/charts/cache/templates/deployment.yaml @@ -0,0 +1,61 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "cache.fullname" . }} + labels: + {{- include "cache.labels" . | nindent 4 }} +spec: + {{- if not .Values.autoscaling.enabled }} + replicas: {{ .Values.replicaCount }} + {{- end }} + selector: + matchLabels: + {{- include "cache.selectorLabels" . | nindent 6 }} + template: + metadata: + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} + labels: + {{- include "cache.selectorLabels" . | nindent 8 }} + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + serviceAccountName: {{ include "cache.serviceAccountName" . }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + containers: + - name: {{ .Chart.Name }} + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + ports: + - name: http + containerPort: {{ .Values.service.port }} + protocol: TCP + livenessProbe: + httpGet: + path: / + port: http + readinessProbe: + httpGet: + path: / + port: http + resources: + {{- toYaml .Values.resources | nindent 12 }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/charts/cache/templates/hpa.yaml b/charts/cache/templates/hpa.yaml new file mode 100644 index 0000000..2cad1ab --- /dev/null +++ b/charts/cache/templates/hpa.yaml @@ -0,0 +1,28 @@ +{{- if .Values.autoscaling.enabled }} +apiVersion: autoscaling/v2beta1 +kind: HorizontalPodAutoscaler +metadata: + name: {{ include "cache.fullname" . }} + labels: + {{- include "cache.labels" . | nindent 4 }} +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: {{ include "cache.fullname" . }} + minReplicas: {{ .Values.autoscaling.minReplicas }} + maxReplicas: {{ .Values.autoscaling.maxReplicas }} + metrics: + {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} + - type: Resource + resource: + name: cpu + targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} + {{- end }} + {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} + - type: Resource + resource: + name: memory + targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} + {{- end }} +{{- end }} diff --git a/charts/cache/templates/ingress.yaml b/charts/cache/templates/ingress.yaml new file mode 100644 index 0000000..4930f2f --- /dev/null +++ b/charts/cache/templates/ingress.yaml @@ -0,0 +1,61 @@ +{{- if .Values.ingress.enabled -}} +{{- $fullName := include "cache.fullname" . -}} +{{- $svcPort := .Values.service.port -}} +{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} + {{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }} + {{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}} + {{- end }} +{{- end }} +{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} +apiVersion: networking.k8s.io/v1 +{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} +apiVersion: networking.k8s.io/v1beta1 +{{- else -}} +apiVersion: extensions/v1beta1 +{{- end }} +kind: Ingress +metadata: + name: {{ $fullName }} + labels: + {{- include "cache.labels" . | nindent 4 }} + {{- with .Values.ingress.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + {{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }} + ingressClassName: {{ .Values.ingress.className }} + {{- end }} + {{- if .Values.ingress.tls }} + tls: + {{- range .Values.ingress.tls }} + - hosts: + {{- range .hosts }} + - {{ . | quote }} + {{- end }} + secretName: {{ .secretName }} + {{- end }} + {{- end }} + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host | quote }} + http: + paths: + {{- range .paths }} + - path: {{ .path }} + {{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }} + pathType: {{ .pathType }} + {{- end }} + backend: + {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} + service: + name: {{ $fullName }} + port: + number: {{ $svcPort }} + {{- else }} + serviceName: {{ $fullName }} + servicePort: {{ $svcPort }} + {{- end }} + {{- end }} + {{- end }} +{{- end }} diff --git a/charts/cache/templates/service.yaml b/charts/cache/templates/service.yaml new file mode 100644 index 0000000..0fa2604 --- /dev/null +++ b/charts/cache/templates/service.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "cache.fullname" . }} + labels: + {{- include "cache.labels" . | nindent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.port }} + targetPort: http + protocol: TCP + name: http + selector: + {{- include "cache.selectorLabels" . | nindent 4 }} diff --git a/charts/cache/templates/serviceaccount.yaml b/charts/cache/templates/serviceaccount.yaml new file mode 100644 index 0000000..0c4462a --- /dev/null +++ b/charts/cache/templates/serviceaccount.yaml @@ -0,0 +1,12 @@ +{{- if .Values.serviceAccount.create -}} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "cache.serviceAccountName" . }} + labels: + {{- include "cache.labels" . | nindent 4 }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +{{- end }} diff --git a/charts/cache/templates/tests/test-connection.yaml b/charts/cache/templates/tests/test-connection.yaml new file mode 100644 index 0000000..3e5904e --- /dev/null +++ b/charts/cache/templates/tests/test-connection.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Pod +metadata: + name: "{{ include "cache.fullname" . }}-test-connection" + labels: + {{- include "cache.labels" . | nindent 4 }} + annotations: + "helm.sh/hook": test +spec: + containers: + - name: wget + image: busybox + command: ['wget'] + args: ['{{ include "cache.fullname" . }}:{{ .Values.service.port }}'] + restartPolicy: Never diff --git a/charts/cache/values.schema.json b/charts/cache/values.schema.json new file mode 100644 index 0000000..37b52fd --- /dev/null +++ b/charts/cache/values.schema.json @@ -0,0 +1,145 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "properties": { + "affinity": { + "properties": {}, + "type": "object" + }, + "autoscaling": { + "properties": { + "enabled": { + "type": "boolean" + }, + "maxReplicas": { + "type": "integer" + }, + "minReplicas": { + "type": "integer" + }, + "targetCPUUtilizationPercentage": { + "type": "integer" + } + }, + "type": "object" + }, + "fullnameOverride": { + "type": "string" + }, + "image": { + "properties": { + "pullPolicy": { + "type": "string" + }, + "repository": { + "type": "string" + }, + "tag": { + "type": "string" + } + }, + "type": "object" + }, + "imagePullSecrets": { + "type": "array" + }, + "ingress": { + "properties": { + "annotations": { + "properties": {}, + "type": "object" + }, + "className": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "hosts": { + "items": { + "properties": { + "host": { + "type": "string" + }, + "paths": { + "items": { + "properties": { + "path": { + "type": "string" + }, + "pathType": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + }, + "tls": { + "type": "array" + } + }, + "type": "object" + }, + "nameOverride": { + "type": "string" + }, + "nodeSelector": { + "properties": {}, + "type": "object" + }, + "podAnnotations": { + "properties": {}, + "type": "object" + }, + "podSecurityContext": { + "properties": {}, + "type": "object" + }, + "replicaCount": { + "type": "integer" + }, + "resources": { + "properties": {}, + "type": "object" + }, + "securityContext": { + "properties": {}, + "type": "object" + }, + "service": { + "properties": { + "port": { + "type": "integer" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, + "serviceAccount": { + "properties": { + "annotations": { + "properties": {}, + "type": "object" + }, + "create": { + "type": "boolean" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "tolerations": { + "type": "array" + } + }, + "type": "object" +} diff --git a/charts/cache/values.yaml b/charts/cache/values.yaml new file mode 100644 index 0000000..f53ed38 --- /dev/null +++ b/charts/cache/values.yaml @@ -0,0 +1,82 @@ +# Default values for cache. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +replicaCount: 1 + +image: + repository: nginx + pullPolicy: IfNotPresent + # Overrides the image tag whose default is the chart appVersion. + tag: "" + +imagePullSecrets: [] +nameOverride: "" +fullnameOverride: "" + +serviceAccount: + # Specifies whether a service account should be created + create: true + # Annotations to add to the service account + annotations: {} + # The name of the service account to use. + # If not set and create is true, a name is generated using the fullname template + name: "" + +podAnnotations: {} + +podSecurityContext: {} + # fsGroup: 2000 + +securityContext: {} + # capabilities: + # drop: + # - ALL + # readOnlyRootFilesystem: true + # runAsNonRoot: true + # runAsUser: 1000 + +service: + type: ClusterIP + port: 80 + +ingress: + enabled: false + className: "" + annotations: {} + # kubernetes.io/ingress.class: nginx + # kubernetes.io/tls-acme: "true" + hosts: + - host: chart-example.local + paths: + - path: / + pathType: ImplementationSpecific + tls: [] + # - secretName: chart-example-tls + # hosts: + # - chart-example.local + +resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + +autoscaling: + enabled: false + minReplicas: 1 + maxReplicas: 100 + targetCPUUtilizationPercentage: 80 + # targetMemoryUtilizationPercentage: 80 + +nodeSelector: {} + +tolerations: [] + +affinity: {} diff --git a/charts/consumer/README.md b/charts/consumer/README.md index 3799956..3e08bb2 100644 --- a/charts/consumer/README.md +++ b/charts/consumer/README.md @@ -13,6 +13,171 @@ Lava consumer helm chart | autoscaling.maxReplicas | int | `100` | | | autoscaling.minReplicas | int | `1` | | | autoscaling.targetCPUUtilizationPercentage | int | `80` | | +| chains.agr.default_interface | string | `"rest"` | | +| chains.agr.interfaces[0].interface | string | `"rest"` | | +| chains.agr.interfaces[0].port | int | `2002` | | +| chains.agr.interfaces[1].interface | string | `"tendermintrpc"` | | +| chains.agr.interfaces[1].port | int | `2003` | | +| chains.agr.interfaces[2].interface | string | `"jsonrpc"` | | +| chains.agr.interfaces[2].port | int | `2004` | | +| chains.agr.interfaces[3].interface | string | `"grpc"` | | +| chains.agr.interfaces[3].port | int | `2005` | | +| chains.agr.metrics_port | int | `3002` | | +| chains.arb1.default_interface | string | `"jsonrpc"` | | +| chains.arb1.interfaces[0].interface | string | `"jsonrpc"` | | +| chains.arb1.interfaces[0].port | int | `2000` | | +| chains.arb1.metrics_port | int | `3000` | | +| chains.arbn.default_interface | string | `"jsonrpc"` | | +| chains.arbn.interfaces[0].interface | string | `"jsonrpc"` | | +| chains.arbn.interfaces[0].port | int | `2001` | | +| chains.arbn.metrics_port | int | `3001` | | +| chains.axelar.default_interface | string | `"rest"` | | +| chains.axelar.interfaces[0].interface | string | `"rest"` | | +| chains.axelar.interfaces[0].port | int | `2006` | | +| chains.axelar.interfaces[1].interface | string | `"tendermintrpc"` | | +| chains.axelar.interfaces[1].port | int | `2007` | | +| chains.axelar.interfaces[2].interface | string | `"grpc"` | | +| chains.axelar.interfaces[2].port | int | `2008` | | +| chains.axelar.legacy_url | bool | `true` | | +| chains.axelar.metrics_port | int | `3003` | | +| chains.axelart.default_interface | string | `"rest"` | | +| chains.axelart.interfaces[0].interface | string | `"rest"` | | +| chains.axelart.interfaces[0].port | int | `2009` | | +| chains.axelart.interfaces[1].interface | string | `"tendermintrpc"` | | +| chains.axelart.interfaces[1].port | int | `2010` | | +| chains.axelart.interfaces[2].interface | string | `"grpc"` | | +| chains.axelart.interfaces[2].port | int | `2011` | | +| chains.axelart.legacy_url | bool | `true` | | +| chains.axelart.metrics_port | int | `3004` | | +| chains.axelart.testnet | bool | `true` | | +| chains.berat.default_interface | string | `"jsonrpc"` | | +| chains.berat.interfaces[0].interface | string | `"jsonrpc"` | | +| chains.berat.interfaces[0].port | int | `2032` | | +| chains.berat.metrics_port | int | `3013` | | +| chains.blast.default_interface | string | `"jsonrpc"` | | +| chains.blast.interfaces[0].interface | string | `"jsonrpc"` | | +| chains.blast.interfaces[0].port | int | `2033` | | +| chains.blast.metrics_port | int | `3014` | | +| chains.celestia.default_interface | string | `"jsonrpc"` | | +| chains.celestia.interfaces[0].interface | string | `"rest"` | | +| chains.celestia.interfaces[0].port | int | `2046` | | +| chains.celestia.interfaces[1].interface | string | `"tendermintrpc"` | | +| chains.celestia.interfaces[1].port | int | `2047` | | +| chains.celestia.interfaces[2].interface | string | `"jsonrpc"` | | +| chains.celestia.interfaces[2].port | int | `2048` | | +| chains.celestia.interfaces[3].interface | string | `"grpc"` | | +| chains.celestia.interfaces[3].port | int | `2049` | | +| chains.celestia.metrics_port | int | `3021` | | +| chains.celestiatm.default_interface | string | `"jsonrpc"` | | +| chains.celestiatm.interfaces[0].interface | string | `"rest"` | | +| chains.celestiatm.interfaces[0].port | int | `2050` | | +| chains.celestiatm.interfaces[1].interface | string | `"tendermintrpc"` | | +| chains.celestiatm.interfaces[1].port | int | `2051` | | +| chains.celestiatm.interfaces[2].interface | string | `"jsonrpc"` | | +| chains.celestiatm.interfaces[2].port | int | `2052` | | +| chains.celestiatm.interfaces[3].interface | string | `"grpc"` | | +| chains.celestiatm.interfaces[3].port | int | `2053` | | +| chains.celestiatm.metrics_port | int | `3022` | | +| chains.eth1.default_interface | string | `"jsonrpc"` | | +| chains.eth1.interfaces[0].interface | string | `"jsonrpc"` | | +| chains.eth1.interfaces[0].port | int | `2034` | | +| chains.eth1.metrics_port | int | `3015` | | +| chains.evmos.default_interface | string | `"jsonrpc"` | | +| chains.evmos.interfaces[0].interface | string | `"rest"` | | +| chains.evmos.interfaces[0].port | int | `2012` | | +| chains.evmos.interfaces[1].interface | string | `"tendermintrpc"` | | +| chains.evmos.interfaces[1].port | int | `2013` | | +| chains.evmos.interfaces[2].interface | string | `"jsonrpc"` | | +| chains.evmos.interfaces[2].port | int | `2014` | | +| chains.evmos.interfaces[3].interface | string | `"grpc"` | | +| chains.evmos.interfaces[3].port | int | `2015` | | +| chains.evmos.legacy_url | bool | `true` | | +| chains.evmos.metrics_port | int | `3005` | | +| chains.evmost.default_interface | string | `"jsonrpc"` | | +| chains.evmost.interfaces[0].interface | string | `"rest"` | | +| chains.evmost.interfaces[0].port | int | `2016` | | +| chains.evmost.interfaces[1].interface | string | `"tendermintrpc"` | | +| chains.evmost.interfaces[1].port | int | `2017` | | +| chains.evmost.interfaces[2].interface | string | `"jsonrpc"` | | +| chains.evmost.interfaces[2].port | int | `2018` | | +| chains.evmost.interfaces[3].interface | string | `"grpc"` | | +| chains.evmost.interfaces[3].port | int | `2019` | | +| chains.evmost.legacy_url | bool | `true` | | +| chains.evmost.metrics_port | int | `3006` | | +| chains.evmost.testnet | bool | `true` | | +| chains.koiit.default_interface | string | `"jsonrpc"` | | +| chains.koiit.interfaces[0].interface | string | `"jsonrpc"` | | +| chains.koiit.interfaces[0].port | int | `2025` | | +| chains.koiit.metrics_port | int | `3010` | | +| chains.lav1.default_interface | string | `"rest"` | | +| chains.lav1.interfaces[0].interface | string | `"rest"` | | +| chains.lav1.interfaces[0].port | int | `2020` | | +| chains.lav1.interfaces[1].interface | string | `"tendermintrpc"` | | +| chains.lav1.interfaces[1].port | int | `2021` | | +| chains.lav1.interfaces[2].interface | string | `"grpc"` | | +| chains.lav1.interfaces[2].port | int | `2022` | | +| chains.lav1.metrics_port | int | `3007` | | +| chains.near.default_interface | string | `"jsonrpc"` | | +| chains.near.interfaces[0].interface | string | `"jsonrpc"` | | +| chains.near.interfaces[0].port | int | `2023` | | +| chains.near.metrics_port | int | `3008` | | +| chains.neart.default_interface | string | `"jsonrpc"` | | +| chains.neart.interfaces[0].interface | string | `"jsonrpc"` | | +| chains.neart.interfaces[0].port | int | `2024` | | +| chains.neart.legacy_url | bool | `true` | | +| chains.neart.metrics_port | int | `3009` | | +| chains.neart.testnet | bool | `true` | | +| chains.secret.default_interface | string | `"rest"` | | +| chains.secret.interfaces[0].interface | string | `"rest"` | | +| chains.secret.interfaces[0].port | int | `2037` | | +| chains.secret.interfaces[1].interface | string | `"tendermintrpc"` | | +| chains.secret.interfaces[1].port | int | `2038` | | +| chains.secret.interfaces[2].interface | string | `"grpc"` | | +| chains.secret.interfaces[2].port | int | `2039` | | +| chains.secret.metrics_port | int | `3018` | | +| chains.secretp.default_interface | string | `"rest"` | | +| chains.secretp.interfaces[0].interface | string | `"rest"` | | +| chains.secretp.interfaces[0].port | int | `2040` | | +| chains.secretp.interfaces[1].interface | string | `"tendermintrpc"` | | +| chains.secretp.interfaces[1].port | int | `2041` | | +| chains.secretp.interfaces[2].interface | string | `"grpc"` | | +| chains.secretp.interfaces[2].port | int | `2042` | | +| chains.secretp.metrics_port | int | `3019` | | +| chains.strgz.default_interface | string | `"rest"` | | +| chains.strgz.interfaces[0].interface | string | `"rest"` | | +| chains.strgz.interfaces[0].port | int | `2026` | | +| chains.strgz.interfaces[1].interface | string | `"tendermintrpc"` | | +| chains.strgz.interfaces[1].port | int | `2027` | | +| chains.strgz.interfaces[2].interface | string | `"grpc"` | | +| chains.strgz.interfaces[2].port | int | `2028` | | +| chains.strgz.metrics_port | int | `3011` | | +| chains.strgzt.default_interface | string | `"rest"` | | +| chains.strgzt.interfaces[0].interface | string | `"rest"` | | +| chains.strgzt.interfaces[0].port | int | `2029` | | +| chains.strgzt.interfaces[1].interface | string | `"tendermintrpc"` | | +| chains.strgzt.interfaces[1].port | int | `2030` | | +| chains.strgzt.interfaces[2].interface | string | `"grpc"` | | +| chains.strgzt.interfaces[2].port | int | `2031` | | +| chains.strgzt.metrics_port | int | `3012` | | +| chains.strk.default_interface | string | `"jsonrpc"` | | +| chains.strk.interfaces[0].interface | string | `"jsonrpc"` | | +| chains.strk.interfaces[0].port | int | `2035` | | +| chains.strk.legacy_url | bool | `true` | | +| chains.strk.metrics_port | int | `3016` | | +| chains.strkt.default_interface | string | `"jsonrpc"` | | +| chains.strkt.interfaces[0].interface | string | `"jsonrpc"` | | +| chains.strkt.interfaces[0].port | int | `2036` | | +| chains.strkt.legacy_url | bool | `true` | | +| chains.strkt.metrics_port | int | `3017` | | +| chains.strkt.testnet | bool | `true` | | +| chains.uniont.default_interface | string | `"rest"` | | +| chains.uniont.interfaces[0].interface | string | `"rest"` | | +| chains.uniont.interfaces[0].port | int | `2043` | | +| chains.uniont.interfaces[1].interface | string | `"tendermintrpc"` | | +| chains.uniont.interfaces[1].port | int | `2044` | | +| chains.uniont.interfaces[2].interface | string | `"grpc"` | | +| chains.uniont.interfaces[2].port | int | `2045` | | +| chains.uniont.metrics_port | int | `3020` | | | fullnameOverride | string | `""` | | | image.pullPolicy | string | `"IfNotPresent"` | | | image.repository | string | `"ghcr.io/lavanet/lava/lavap"` | | @@ -32,7 +197,6 @@ Lava consumer helm chart | replicaCount | int | `1` | | | resources | object | `{}` | | | securityContext | object | `{}` | | -| service.port | int | `80` | | | service.type | string | `"ClusterIP"` | | | serviceAccount.annotations | object | `{}` | | | serviceAccount.create | bool | `true` | | diff --git a/charts/consumer/templates/configmap.yaml b/charts/consumer/templates/configmap.yaml index fe1d414..a47890a 100644 --- a/charts/consumer/templates/configmap.yaml +++ b/charts/consumer/templates/configmap.yaml @@ -15,4 +15,4 @@ data: network-address: 0.0.0.0:{{ $interfaceEntry.port }} {{- end }} metrics-listen-address: "0.0.0.0:{{ $itemValue.metrics_port }}" -{{- end }} \ No newline at end of file +{{- end }} diff --git a/charts/consumer/templates/deployment.yaml b/charts/consumer/templates/deployment.yaml index 4622512..2524da5 100644 --- a/charts/consumer/templates/deployment.yaml +++ b/charts/consumer/templates/deployment.yaml @@ -64,4 +64,4 @@ spec: tolerations: {{- toYaml $ | nindent 8 }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/charts/consumer/templates/service.yaml b/charts/consumer/templates/service.yaml index 722d9bd..819b21d 100644 --- a/charts/consumer/templates/service.yaml +++ b/charts/consumer/templates/service.yaml @@ -18,4 +18,4 @@ spec: selector: {{- include "consumer.selectorLabels" $ | nindent 4 }} app.kubernetes.io/chain: {{ $itemKey | lower }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/charts/consumer/values.yaml b/charts/consumer/values.yaml index 0d88d54..1c931d3 100644 --- a/charts/consumer/values.yaml +++ b/charts/consumer/values.yaml @@ -287,4 +287,4 @@ chains: - interface: jsonrpc port: 2052 - interface: grpc - port: 2053 \ No newline at end of file + port: 2053 diff --git a/charts/provider/README.md b/charts/provider/README.md index ee09672..4e1c40b 100644 --- a/charts/provider/README.md +++ b/charts/provider/README.md @@ -9,10 +9,6 @@ Lava provider helm chart | Key | Type | Default | Description | |-----|------|---------|-------------| | affinity | object | `{}` | | -| autoscaling.enabled | bool | `false` | | -| autoscaling.maxReplicas | int | `100` | | -| autoscaling.minReplicas | int | `1` | | -| autoscaling.targetCPUUtilizationPercentage | int | `80` | | | fullnameOverride | string | `""` | | | image.pullPolicy | string | `"IfNotPresent"` | | | image.repository | string | `"ghcr.io/lavanet/lava/lavap"` | | diff --git a/charts/provider/templates/deployment.yaml b/charts/provider/templates/deployment.yaml index 5a73382..3d9ebaf 100644 --- a/charts/provider/templates/deployment.yaml +++ b/charts/provider/templates/deployment.yaml @@ -5,9 +5,7 @@ metadata: labels: {{- include "provider.labels" . | nindent 4 }} spec: - {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} - {{- end }} selector: matchLabels: {{- include "provider.selectorLabels" . | nindent 6 }}