Skip to content

Commit

Permalink
053
Browse files Browse the repository at this point in the history
  • Loading branch information
amitza committed Aug 31, 2024
1 parent fae7663 commit 2a303e8
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion charts/cache/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ icon: https://github.com/lavanet/helm-charts/blob/main/docs/logo/logo.png?raw=tr
sources:
- https://github.com/lavanet/helm-charts
type: application
version: 0.5.2
version: 0.5.3
appVersion: "v2.5.0"
kubeVersion: ">=1.25.0-0"
home: https://lavanet.xyz
Expand Down
2 changes: 1 addition & 1 deletion charts/cache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Lava helm chart for the cache service

![Version: 0.5.2](https://img.shields.io/badge/Version-0.5.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.5.0](https://img.shields.io/badge/AppVersion-v2.5.0-informational?style=flat-square)
![Version: 0.5.3](https://img.shields.io/badge/Version-0.5.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.5.0](https://img.shields.io/badge/AppVersion-v2.5.0-informational?style=flat-square)

## Lavanet Cache Helm Chart

Expand Down
2 changes: 1 addition & 1 deletion charts/consumer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ icon: https://github.com/lavanet/helm-charts/blob/main/docs/logo/logo.png?raw=tr
sources:
- https://github.com/lavanet/helm-charts
type: application
version: 0.5.2
version: 0.5.3
appVersion: "v2.5.0"
kubeVersion: ">=1.25.0-0"
home: https://lavanet.xyz
Expand Down
2 changes: 1 addition & 1 deletion charts/consumer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Lava helm chart for the consumer service

![Version: 0.5.2](https://img.shields.io/badge/Version-0.5.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.5.0](https://img.shields.io/badge/AppVersion-v2.5.0-informational?style=flat-square)
![Version: 0.5.3](https://img.shields.io/badge/Version-0.5.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.5.0](https://img.shields.io/badge/AppVersion-v2.5.0-informational?style=flat-square)

## Lavanet Consumer Helm Chart

Expand Down
18 changes: 9 additions & 9 deletions charts/consumer/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,29 @@
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: {{ $itemKey | lower }}-{{ include "consumer.fullname" . }}
name: {{ $itemKey | lower }}-{{ include "consumer.fullname" $ }}
labels:
{{- include "consumer.labels" . | nindent 4 }}
{{- include "consumer.labels" $ | nindent 4 }}
app.lavanet.io/chain: {{ $itemKey | lower }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ $itemKey | lower }}-{{ include "consumer.fullname" . }}
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
name: {{ $itemKey | lower }}-{{ include "consumer.fullname" $ }}
minReplicas: {{ $.Values.autoscaling.minReplicas }}
maxReplicas: {{ $.Values.autoscaling.maxReplicas }}
metrics:
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- if $.Values.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
targetAverageUtilization: {{ $.Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- if $.Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
targetAverageUtilization: {{ $.Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/provider/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ icon: https://github.com/lavanet/helm-charts/blob/main/docs/logo/logo.png?raw=tr
sources:
- https://github.com/lavanet/helm-charts
type: application
version: 0.5.2
version: 0.5.3
appVersion: "v2.5.0"
kubeVersion: ">=1.25.0-0"
home: https://lavanet.xyz
Expand Down
7 changes: 4 additions & 3 deletions charts/provider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Lava helm chart for the provider service

![Version: 0.5.2](https://img.shields.io/badge/Version-0.5.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.5.0](https://img.shields.io/badge/AppVersion-v2.5.0-informational?style=flat-square)
![Version: 0.5.3](https://img.shields.io/badge/Version-0.5.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.5.0](https://img.shields.io/badge/AppVersion-v2.5.0-informational?style=flat-square)

## Lavanet Provider Helm Chart

Expand Down Expand Up @@ -79,7 +79,7 @@ EOF
kubectl apply -f exported-key.yaml -n my-namespace
```

### Create configuration for provider
### Create secert configuration for provider

Most provider configurations point to secure nodes and should remain encrypted on the cluster.
For this you'll have to create another secert containing the entire nodes' configuration, for example:
Expand Down Expand Up @@ -160,7 +160,8 @@ key:
passwordSecretKey: "password"

chains:
lav1:
- name: my-lava-provider
id: lav1
existingConfigSecret: "provider-config"
existingConfigSecretKey: "config.yml"
```
Expand Down

0 comments on commit 2a303e8

Please sign in to comment.