Skip to content

Commit

Permalink
pre
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit Zafran committed Aug 13, 2024
1 parent 22bc297 commit 744d42c
Show file tree
Hide file tree
Showing 13 changed files with 86 additions and 32 deletions.
32 changes: 24 additions & 8 deletions charts/cache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,36 @@ Kubernetes: `>=1.25.0-0`
| autoscaling.maxReplicas | int | `100` | |
| autoscaling.minReplicas | int | `1` | |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| certificate.additionalHosts | list | `[]` | Certificate Subject Alternate Names (SANs) |
| certificate.annotations | object | `{}` | Annotations to be applied to the Server Certificate |
| certificate.domain | string | `""` (defaults to global.domain) | Certificate primary domain (commonName) |
| certificate.duration | string | `""` (defaults to 2160h = 90d if not specified) | The requested 'duration' (i.e. lifetime) of the certificate. # Ref: https://cert-manager.io/docs/usage/certificate/#renewal |
| certificate.enabled | bool | `false` | Deploy a Certificate resource (requires cert-manager) |
| certificate.issuer.group | string | `""` | Certificate issuer group. Set if using an external issuer. Eg. `cert-manager.io` |
| certificate.issuer.kind | string | `""` | Certificate issuer kind. Either `Issuer` or `ClusterIssuer` |
| certificate.issuer.name | string | `""` | Certificate issuer name. Eg. `letsencrypt` |
| certificate.privateKey.algorithm | string | `"RSA"` | Algorithm used to generate certificate private key. One of: `RSA`, `Ed25519` or `ECDSA` |
| certificate.privateKey.encoding | string | `"PKCS1"` | The private key cryptography standards (PKCS) encoding for private key. Either: `PCKS1` or `PKCS8` |
| certificate.privateKey.rotationPolicy | string | `"Never"` | Rotation policy of private key when certificate is re-issued. Either: `Never` or `Always` |
| certificate.privateKey.size | int | `2048` | Key bit size of the private key. If algorithm is set to `Ed25519`, size is ignored. |
| certificate.renewBefore | string | `""` (defaults to 360h = 15d if not specified) | How long before the expiry a certificate should be renewed. # Ref: https://cert-manager.io/docs/usage/certificate/#renewal |
| certificate.secretTemplateAnnotations | object | `{}` | Annotations that allow the certificate to be composed from data residing in existing Kubernetes Resources |
| certificate.usages | list | `[]` | Usages for the certificate ## Ref: https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.KeyUsage |
| expiration_multiplier | string | `nil` | The expiration multiplier for items in the cache |
| expiration_non_finalized_multiplier | string | `nil` | The expiration non finalized multiplier for items in the cache |
| fullnameOverride | string | `""` | String to fully override `"provider.fullname"` |
| fullnameOverride | string | `""` | String to fully override `"cache.fullname"` |
| global.domain | string | `"my-cache.local"` | Default domain used by all components # Used for ingresses, certificates, etc. |
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy for the cache |
| image.repository | string | `"ghcr.io/lavanet/lava/lavap"` | Repository to use for the cache |
| image.tag | string | `""` (defaults to Chart.appVersion) | Tag to use for the provider |
| image.tag | string | `""` (defaults to Chart.appVersion) | Tag to use for the cache |
| imagePullSecrets | list | `[]` | Secrets with credentials to pull images from a private registry |
| ingress.annotations | object | `{}` | Additional ingress annotations |
| ingress.className | string | `""` | Defines which ingress controller will implement the resource |
| ingress.enabled | bool | `false` | Enable an ingress resource for the Consumer |
| 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 | `[]` | Enable TLS configuration for the hostname |
| ingress.className | string | `"nginx"` | Defines which ingress controller will implement the resource |
| ingress.enabled | bool | `true` | Enable an ingress resource for the provider |
| ingress.hostname | string | `""` (defaults to global.domain) | Cache hostname |
| ingress.path | string | `"/"` | The path to Provider |
| ingress.pathType | string | `"Prefix"` | Ingress path type. One of `Exact`, `Prefix` or `ImplementationSpecific` |
| ingress.tls | bool | `true` | Enable TLS configuration for the domain defined at `global.domain` # TLS certificate will be retrieved from a TLS secret with name: `cache-tls` |
| log.format | string | `"json"` | Cache log format, can be json or text |
| log.level | string | `"info"` | Cache log level |
| max_items | string | `nil` | Max items allowed in the cache |
Expand Down
2 changes: 1 addition & 1 deletion charts/cache/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ Expand the host of the release.
*/}}
{{- define "cache.domain" -}}
{{- default (include "cache.fullname" .) .Values.global.domain | trunc 63 | trimSuffix "-" -}}
{{- end }}
{{- end }}
4 changes: 2 additions & 2 deletions charts/cache/templates/certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- end }}
secretName: cache-tls
commonName: {{ .Values.certificate.domain | default .Values.global.domain | quote }}
dnsNames:
Expand Down Expand Up @@ -47,4 +47,4 @@ spec:
usages:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/cache/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ spec:
name: {{ include "cache.fullname" $ }}
port:
name: http
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/cache/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ service:
# -- Cache service port
port: 20100

ingress:
ingress:
# -- Enable an ingress resource for the provider
enabled: true
# -- Defines which ingress controller will implement the resource
Expand Down
31 changes: 27 additions & 4 deletions charts/consumer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,42 @@ Kubernetes: `>=1.25.0-0`
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| cache.address | string | `"cache:20100"` | Cache address |
| cache.enabled | bool | `true` | Should add cache arg |
| certificate.additionalHosts | list | `[]` | Certificate Subject Alternate Names (SANs) |
| certificate.annotations | object | `{}` | Annotations to be applied to the Server Certificate |
| certificate.domain | string | `""` (defaults to global.domain) | Certificate primary domain (commonName) |
| certificate.duration | string | `""` (defaults to 2160h = 90d if not specified) | The requested 'duration' (i.e. lifetime) of the certificate. # Ref: https://cert-manager.io/docs/usage/certificate/#renewal |
| certificate.enabled | bool | `false` | Deploy a Certificate resource (requires cert-manager) |
| certificate.issuer.group | string | `""` | Certificate issuer group. Set if using an external issuer. Eg. `cert-manager.io` |
| certificate.issuer.kind | string | `""` | Certificate issuer kind. Either `Issuer` or `ClusterIssuer` |
| certificate.issuer.name | string | `""` | Certificate issuer name. Eg. `letsencrypt` |
| certificate.privateKey.algorithm | string | `"RSA"` | Algorithm used to generate certificate private key. One of: `RSA`, `Ed25519` or `ECDSA` |
| certificate.privateKey.encoding | string | `"PKCS1"` | The private key cryptography standards (PKCS) encoding for private key. Either: `PCKS1` or `PKCS8` |
| certificate.privateKey.rotationPolicy | string | `"Never"` | Rotation policy of private key when certificate is re-issued. Either: `Never` or `Always` |
| certificate.privateKey.size | int | `2048` | Key bit size of the private key. If algorithm is set to `Ed25519`, size is ignored. |
| certificate.renewBefore | string | `""` (defaults to 360h = 15d if not specified) | How long before the expiry a certificate should be renewed. # Ref: https://cert-manager.io/docs/usage/certificate/#renewal |
| certificate.secretTemplateAnnotations | object | `{}` | Annotations that allow the certificate to be composed from data residing in existing Kubernetes Resources |
| certificate.usages | list | `[]` | Usages for the certificate ## Ref: https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.KeyUsage |
| chainId | string | `"lava-testnet-2"` | Lava chain id |
| disableConflictTransactions | bool | `true` | Should disable conflict transactions |
| fullnameOverride | string | `""` | String to fully override `"consumer.fullname"` |
| geolocation | int | `2` | Provider geo-location can be one of the [geolocations](https://docs.lavanet.xyz/provider-setup#geolocations) |
| global.domain | string | `"my-consumer.local"` | Default domain used by all components # Used for ingresses, certificates, etc. |
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy for the consumer |
| image.repository | string | `"ghcr.io/lavanet/lava/lavap"` | Repository to use for the consumer |
| image.tag | string | `""` (defaults to Chart.appVersion) | Tag to use for the consumer |
| imagePullSecrets | list | `[]` | Secrets with credentials to pull images from a private registry |
| ingress.annotations | object | `{}` | Additional ingress annotations |
| ingress.className | string | `""` | Defines which ingress controller will implement the resource |
| ingress.domain | string | `"my-consumer.local"` | Consumer host |
| ingress.enabled | bool | `true` | Enable an ingress resource for the consumers |
| ingress.tls | list | `[]` | Enable TLS configuration for the hostname |
| ingress.className | string | `"nginx"` | Defines which ingress controller will implement the resource |
| ingress.enabled | bool | `false` | Enable an ingress resource for the consumers |
| ingress.path | string | `"/"` | The path to Consumer |
| ingress.pathType | string | `"Prefix"` | Ingress path type. One of `Exact`, `Prefix` or `ImplementationSpecific` |
| ingress.tls | bool | `true` | Enable TLS configuration for the domain defined at `global.domain` # TLS certificate will be retrieved from a TLS secret with name: `consumer-tls` |
| ingressGrpc.annotations | object | `{}` | Additional ingress annotations |
| ingressGrpc.className | string | `"nginx"` | Defines which ingress controller will implement the resource |
| ingressGrpc.enabled | bool | `false` | Enable a grpc ingress resource for the consumers |
| ingressGrpc.path | string | `"/"` | The path to Consumer |
| ingressGrpc.pathType | string | `"Prefix"` | Ingress path type. One of `Exact`, `Prefix` or `ImplementationSpecific` |
| ingressGrpc.tls | bool | `true` | Enable TLS configuration for the domain defined at `global.domain` # TLS certificate will be retrieved from a TLS secret with name: `consumer-grpc-tls` |
| key.passwordSecretKey | string | `"password"` | The key in the kubernetes secret that contains the password for the private key |
| key.passwordSecretName | string | `"wallet"` | The kubernetes secret that contains the password for the private key |
| key.secretKey | string | `"key"` | The key in the kubernetes secret to use |
Expand Down
4 changes: 2 additions & 2 deletions charts/consumer/templates/certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- end }}
secretName: consumer-tls
commonName: {{ .Values.certificate.domain | default (printf "*.%s" .Values.global.domain) | quote }}
dnsNames:
Expand Down Expand Up @@ -47,4 +47,4 @@ spec:
usages:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/consumer/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ spec:
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
29 changes: 22 additions & 7 deletions charts/provider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,20 +185,35 @@ Kubernetes: `>=1.25.0-0`
| affinity | object | `{}` | Assign custom [affinity] rules to the deployment |
| cache.address | string | `"provider-cache:20100"` | Provider cache address |
| cache.enabled | bool | `true` | Enable provider cache supports |
| certificate.additionalHosts | list | `[]` | Certificate Subject Alternate Names (SANs) |
| certificate.annotations | object | `{}` | Annotations to be applied to the Server Certificate |
| certificate.domain | string | `""` (defaults to global.domain) | Certificate primary domain (commonName) |
| certificate.duration | string | `""` (defaults to 2160h = 90d if not specified) | The requested 'duration' (i.e. lifetime) of the certificate. # Ref: https://cert-manager.io/docs/usage/certificate/#renewal |
| certificate.enabled | bool | `false` | Deploy a Certificate resource (requires cert-manager) |
| certificate.issuer.group | string | `""` | Certificate issuer group. Set if using an external issuer. Eg. `cert-manager.io` |
| certificate.issuer.kind | string | `"ClusterIssuer"` | Certificate issuer kind. Either `Issuer` or `ClusterIssuer` |
| certificate.issuer.name | string | `"selfsigned"` | Certificate issuer name. Eg. `letsencrypt` |
| certificate.privateKey.algorithm | string | `"RSA"` | Algorithm used to generate certificate private key. One of: `RSA`, `Ed25519` or `ECDSA` |
| certificate.privateKey.encoding | string | `"PKCS1"` | The private key cryptography standards (PKCS) encoding for private key. Either: `PCKS1` or `PKCS8` |
| certificate.privateKey.rotationPolicy | string | `"Never"` | Rotation policy of private key when certificate is re-issued. Either: `Never` or `Always` |
| certificate.privateKey.size | int | `2048` | Key bit size of the private key. If algorithm is set to `Ed25519`, size is ignored. |
| certificate.renewBefore | string | `""` (defaults to 360h = 15d if not specified) | How long before the expiry a certificate should be renewed. # Ref: https://cert-manager.io/docs/usage/certificate/#renewal |
| certificate.secretTemplateAnnotations | object | `{}` | Annotations that allow the certificate to be composed from data residing in existing Kubernetes Resources |
| certificate.usages | list | `[]` | Usages for the certificate ## Ref: https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.KeyUsage |
| chainId | string | `"lava-testnet-2"` | Lava chain id |
| fullnameOverride | string | `""` | String to fully override `"provider.fullname"` |
| geolocation | string | `"2"` | Provider geo-location can be one of the [geolocations](https://docs.lavanet.xyz/provider-setup#geolocations) |
| global.domain | string | `"my-provider.local"` | Default domain used by all components # Used for ingresses, certificates, etc. |
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy for the provider |
| image.repository | string | `"ghcr.io/lavanet/lava/lavap"` | Repository to use for the provider |
| image.tag | string | `""` (defaults to Chart.appVersion) | Tag to use for the provider |
| imagePullSecrets | list | `[]` | Secrets with credentials to pull images from a private registry |
| ingress.annotations | object | `{}` | Additional ingress annotations |
| ingress.className | string | `""` | Defines which ingress controller will implement the resource |
| ingress.enabled | bool | `false` | Enable an ingress resource for the Provider |
| 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 | `[]` | Enable TLS configuration for the hostname |
| ingressGrpc.annotations | object | `{}` | Additional ingress annotations |
| ingressGrpc.className | string | `"nginx"` | Defines which ingress controller will implement the resource |
| ingressGrpc.enabled | bool | `false` | Enable an ingress resource for the provider |
| ingressGrpc.path | string | `"/"` | The path to Provider |
| ingressGrpc.pathType | string | `"Prefix"` | Ingress path type. One of `Exact`, `Prefix` or `ImplementationSpecific` |
| ingressGrpc.tls | bool | `true` | Enable TLS configuration for the domain defined at `global.domain` # TLS certificate will be retrieved from a TLS secret with name: `provider-grpc-tls` |
| key | object | `{"passwordSecretKey":"password","passwordSecretName":"wallet","secretKey":"key","secretName":"wallet"}` | Information about the private key to use for the node |
| key.passwordSecretKey | string | `"password"` | The key in the secret that contains the password for the private key |
| key.passwordSecretName | string | `"wallet"` | The secret that contains the password for the private key |
Expand Down
2 changes: 1 addition & 1 deletion charts/provider/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ Expand the host of the release.
*/}}
{{- define "provider.domain" -}}
{{- default (include "provider.fullname" .) .Values.global.domain | trunc 63 | trimSuffix "-" -}}
{{- end }}
{{- end }}
4 changes: 2 additions & 2 deletions charts/provider/templates/certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- end }}
secretName: provider-grpc-tls
commonName: {{ .Values.certificate.domain | default (printf "*.%s" .Values.global.domain) | quote }}
dnsNames:
Expand Down Expand Up @@ -47,4 +47,4 @@ spec:
usages:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/provider/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ spec:
port:
name: grpc
{{- end }}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/provider/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ service:
# -- Provider service port
port: 2200

ingressGrpc:
ingressGrpc:
# -- Enable an ingress resource for the provider
enabled: false
# -- Defines which ingress controller will implement the resource
Expand Down

0 comments on commit 744d42c

Please sign in to comment.