diff --git a/4.application_scopes.md b/4.application_scopes.md index d208a0f..007ae78 100644 --- a/4.application_scopes.md +++ b/4.application_scopes.md @@ -183,6 +183,29 @@ spec: required: N ``` +#### Example +This is an example deployment of a health scope. We can apply this scope to ZooKeeper component and report its health status. + +```yaml +apiVersion: core.hydra.io/v1alpha1 +kind: AppScopeConfiguration +metadata: + name: exampleHealth +spec: + appScopeType: core.hydra.io/v1alpha1.Health + properties: + - name: probe-method + value: get-kube-object + - name: probe-endpoint + value: ".status.phase" + - name: probe-timeout + value: 15 + - name: probe-interval + value: 30 + - name: failure-rate-threshold + value: 0.01 +``` + ## Extended application scope type definitions The following extended scope types are available: - resource quota scope