Skip to content

Commit

Permalink
pass in provider config
Browse files Browse the repository at this point in the history
  • Loading branch information
sacreman committed Sep 15, 2021
1 parent 326baab commit 4325993
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 61 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Usage

[Helm](https://helm.sh) must be installed to use the charts. Please refer to
[Helm](https://helm.sh) must be installed to use the charts. Please refer to
Helm's [documentation](https://helm.sh/docs) to get started.

Once Helm has been set up correctly, add the repo as follows:
Expand All @@ -10,15 +10,16 @@ helm repo add akash https://ovrclk.github.io/helm-charts
```

If you had already added this repo earlier, run `helm repo update` to retrieve
the latest versions of the packages. You can then run `helm search repo
akash` to see the charts.
the latest versions of the packages. You can then run `helm search repo akash` to see the charts.

### Example

To install the provider chart:
To install the provider chart make sure you have your [provider-cert.pem](https://docs.akash.network/operations/provider#creating-the-provider-on-the-blockchain) in the current directory and then set the env vars below and install the chart.

```
helm install provider akash/provider
akash_key=<AkashPublicAddress>
akash_password=<mypassword>
helm install provider akash/provider --set akash_provider.key=$akash_key --set akash_provider.keysecret=$akash_password --set-file akash_provider.providercert=provider-cert.pem
```

To uninstall the chart:
Expand Down
2 changes: 1 addition & 1 deletion charts/provider/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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.18.0
version: 0.19.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
Expand Down
9 changes: 3 additions & 6 deletions charts/provider/templates/configmap-client-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ kind: ConfigMap
metadata:
name: akash-client-config
data:
home: "/home"
from: "main"
node: "http://akash-node:26657"
chain-id: "local"
keyring-backend: "test"
trust-node: "true"
{{- range $key, $val := .Values.akash_client }}
{{ $key }}: {{ $val | quote }}
{{- end }}
33 changes: 3 additions & 30 deletions charts/provider/templates/configmap-provider-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,6 @@ kind: ConfigMap
metadata:
name: akash-provider-config
data:
##
# override-able defaults
##
# ingress-static-hosts: false
# ingress-domain:
# ingress-expose-lb-hosts: false
# network-policies-enabled: false
# max-unit-cpu: 500
# max-unit-memory: 1073741824
# max-unit-storage: 1073741824
# max-unit-count: 10
# max-unit-price: 10000
# min-unit-cpu: 10
# min-unit-memory: 1024
# min-unit-storage: 1024
# min-unit-count: 1
# min-unit-price: 1
# max-group-count: 10
# max-group-units: 10
# max-group-cpu: 1000
# max-group-memory: 1073741824
# max-group-storage: 5368709120
# mem-price-min: 50
# mem-price-max: 1048576
# bid-price-strategy:
# bid-cpu-scale:
# bid-storage-scale:
# bid-script-path:
# bid-script-process-limit:
# bid-script-process-timeout:
{{- range $key, $val := .Values.akash_provider }}
{{ $key }}: {{ $val | quote }}
{{- end }}
9 changes: 5 additions & 4 deletions charts/provider/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ apiVersion: v1
kind: Secret
metadata:
name: akash-provider-keys
data:
type: "Opaque"
stringData:
provider-cert.pem: |
ZHVtbXk=
{{ .Values.akash_provider.providercert }}
key.txt: |
ZHVtbXk=
{{ .Values.akash_provider.key }}
key-pass.txt: |
ZHVtbXk=
{{ .Values.akash_provider.keysecret }}
15 changes: 0 additions & 15 deletions charts/provider/templates/tests/test-connection.yaml

This file was deleted.

40 changes: 40 additions & 0 deletions charts/provider/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,46 @@ imagePullSecrets: []
service:
port: 8443

akash_client:
home: "/home"
from: "main"
node: "http://135.181.60.250:26657"
chain-id: "akashnet-2"
keyring-backend: "test"
trust-node: "true"

akash_provider:
key:
keysecret:
providercert:
ingress-static-hosts: false
ingress-domain:
ingress-expose-lb-hosts: false
network-policies-enabled: false
max-unit-cpu: 500
max-unit-memory: 1073741824
max-unit-storage: 1073741824
max-unit-count: 10
max-unit-price: 10000
min-unit-cpu: 10
min-unit-memory: 1024
min-unit-storage: 1024
min-unit-count: 1
min-unit-price: 1
max-group-count: 10
max-group-units: 10
max-group-cpu: 1000
max-group-memory: 1073741824
max-group-storage: 5368709120
mem-price-min: 50
mem-price-max: 1048576
bid-price-strategy:
bid-cpu-scale:
bid-storage-scale:
bid-script-path:
bid-script-process-limit:
bid-script-process-timeout:

autoscaling:
enabled: false
minReplicas: 1
Expand Down

0 comments on commit 4325993

Please sign in to comment.