mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
Adding status fields
This commit is contained in:
parent
78709070fc
commit
8159079990
2 changed files with 39 additions and 0 deletions
|
@ -3,4 +3,10 @@
|
|||
TODO:
|
||||
|
||||
- Investigate prometheus annotations wrt metrics
|
||||
- see https://github.com/prometheus/prometheus/blob/master/documentation/examples/prometheus-kubernetes.yml
|
||||
- `prometheus.io/scrape`: Only scrape services that have a value of `true`
|
||||
- `prometheus.io/scheme`: If the metrics endpoint is secured then you will need
|
||||
- `prometheus.io/path`: If the metrics path is not `/metrics` override this.
|
||||
- `prometheus.io/port`: If the metrics are exposed on a different port to the
|
||||
|
||||
- Add prometheus compatible `/metrics` endpoint to `arangod`
|
||||
|
|
33
docs/design/status.md
Normal file
33
docs/design/status.md
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Status
|
||||
|
||||
The status field of the `CustomResource` must contain all persistent state needed to
|
||||
create & maintain the cluster.
|
||||
|
||||
## `status.state: string`
|
||||
|
||||
This field contains the current status of the cluster.
|
||||
Possible values are:
|
||||
|
||||
- `Creating` when the cluster is first be created.
|
||||
- `Ready` when all pods if the cluster are in running state.
|
||||
- `Scaling` when pods are being added to an existing cluster or removed from an existing cluster.
|
||||
- `Upgrading` when cluster is in the process of being upgraded to another version.
|
||||
|
||||
## `status.members.<group>.[x].state: string`
|
||||
|
||||
This field contains the pod state of server x of this group.
|
||||
Possible values are:
|
||||
|
||||
- `Creating` when the pod is about to be created.
|
||||
- `Ready` when the pod has been created.
|
||||
- `Draining` when a dbserver pod is being drained.
|
||||
- `ShuttingDown` when a server is in the process of shutting down.
|
||||
|
||||
## `status.members.<group>.[x].podName: string`
|
||||
|
||||
This field contains the name of the current pod that runs server x of this group.
|
||||
|
||||
## `status.members.<group>.[x].clusterID: string`
|
||||
|
||||
This field contains the unique cluster ID of server x of this group.
|
||||
The field is only valid for groups `single`, `agents`, `dbservers` & `coordinators`.
|
Loading…
Reference in a new issue