Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions 4.application_scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have a list of all the probe method

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. I will try to give a list shortly.

- name: probe-endpoint
value: ".status.phase"
Comment thread
hongchaodeng marked this conversation as resolved.
- 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
Expand Down