Skip to content

Commit

Permalink
expose readinessProbe to the config file for chain, add to doc, fix r…
Browse files Browse the repository at this point in the history
…eadinessProbe
  • Loading branch information
Anmol1696 committed Oct 7, 2024
1 parent cf703bf commit ccf3846
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 2 deletions.
19 changes: 19 additions & 0 deletions docs/pages/config/chains.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -351,3 +351,22 @@ chains:
coins: 100000000000000uion
```

## `readinessProbe` (optional)
The `readinessProbe` directive allows you to set the readiness probe for the chain pods. This is useful when you want to test a chain with specific readiness probe settings.
Note, this is the same as the [kubernetes readiness probe](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)

```yaml
chains:
- id: osmosis-1
name: osmosis
numValidators: 1
readinessProbe:
exec:
command:
- bash
- -c
- |
$CHAIN_BIN status 2>&1 | jq -e '.SyncInfo.catching_up == false'
initialDelaySeconds: 60
periodSeconds: 20
```
3 changes: 3 additions & 0 deletions starship/charts/devnet/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,9 @@ defaultChains:
trap 'kill $killer 2>/dev/null' EXIT
# Return the test's exit code, whether it succeeded, failed, or was killed.
wait $tester
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 15
kujira:
image: ghcr.io/cosmology-tech/starship/kujira:v1.1.0
home: /root/.kujira
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,10 @@ spec:
httpGet:
path: /status
port: 26657
{{- end }}
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 15
{{- end }}
{{- end }}
- name: exposer
image: {{ $.Values.exposer.image }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,10 @@ spec:
httpGet:
path: /status
port: 26657
{{- end }}
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 15
{{- end }}
{{- end }}
- name: exposer
image: {{ $.Values.exposer.image }}
Expand Down
3 changes: 3 additions & 0 deletions starship/charts/devnet/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,9 @@
"amount"
]
}
},
"readinessProbe": {
"type": "object"
}
},
"additionalProperties": false,
Expand Down

0 comments on commit ccf3846

Please sign in to comment.