mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
[Improvement] Metrics examples & assorted changes (#706)
* Metrics examples & assorted changes What has been done: - Two new examples containing metrics sidecar information a well as metrics related annotations. - Changed the `v1alpha` apiVersion to `v1` - Changed the ArangoDB version to `3.7.10`. - Walked through all examples for validity. * Update production-cluster-with-metrics.yaml * Resolved indentation for the `annotations` * Update reboot-pod.yaml - fix typo
This commit is contained in:
parent
34138b5ef5
commit
f9845f8a52
11 changed files with 47 additions and 14 deletions
|
@ -1,4 +1,4 @@
|
|||
apiVersion: "storage.arangodb.com/v1alpha"
|
||||
apiVersion: "storage.arangodb.com/v1"
|
||||
kind: "ArangoLocalStorage"
|
||||
metadata:
|
||||
name: "arangodb-local-storage"
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
apiVersion: "database.arangodb.com/v1alpha"
|
||||
apiVersion: "database.arangodb.com/v1"
|
||||
kind: "ArangoDeployment"
|
||||
metadata:
|
||||
name: "cluster1-with-sync"
|
||||
spec:
|
||||
mode: Cluster
|
||||
image: arangodb/arangodb:3.6.1
|
||||
image: 'arangodb/arangodb:3.7.10'
|
||||
tls:
|
||||
altNames: ["kube-01", "kube-02", "kube-03"]
|
||||
sync:
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
apiVersion: "database.arangodb.com/v1alpha"
|
||||
apiVersion: "database.arangodb.com/v1"
|
||||
kind: "ArangoDeployment"
|
||||
metadata:
|
||||
name: "cluster2-with-sync"
|
||||
spec:
|
||||
mode: Cluster
|
||||
image: arangodb/arangodb:3.6.1
|
||||
image: 'arangodb/arangodb:3.7.10'
|
||||
tls:
|
||||
altNames: ["kube-01", "kube-02", "kube-03"]
|
||||
sync:
|
||||
|
|
17
examples/production-cluster-with-metrics.yaml
Normal file
17
examples/production-cluster-with-metrics.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
apiVersion: "database.arangodb.com/v1"
|
||||
kind: "ArangoDeployment"
|
||||
metadata:
|
||||
name: "production-cluster"
|
||||
spec:
|
||||
metrics:
|
||||
mode: sidecar
|
||||
enabled: true
|
||||
image: 'arangodb/arangodb-exporter:0.1.7'
|
||||
tls: false
|
||||
annotations:
|
||||
prometheus.io/scrape: 'true'
|
||||
prometheus.io/port: '9101'
|
||||
prometheus.io/scrape_interval: '5s'
|
||||
mode: Cluster
|
||||
image: arangodb/arangodb:3.7.10'
|
||||
environment: Production
|
|
@ -1,8 +1,8 @@
|
|||
apiVersion: "database.arangodb.com/v1alpha"
|
||||
apiVersion: "database.arangodb.com/v1"
|
||||
kind: "ArangoDeployment"
|
||||
metadata:
|
||||
name: "production-cluster"
|
||||
spec:
|
||||
mode: Cluster
|
||||
image: arangodb/arangodb:3.6.1
|
||||
image: 'arangodb/arangodb:3.7.10'
|
||||
environment: Production
|
||||
|
|
|
@ -11,7 +11,7 @@ spec:
|
|||
command: ["arangodb_operator", "reboot"]
|
||||
args:
|
||||
- --deployment-name=my-arangodb-cluster
|
||||
- --image-name=arangodb/enterprise:3.6.1
|
||||
- --image-name=arangodb/enterprise:3.7.10
|
||||
- --license-secret-name=arangodb-license-key
|
||||
- --coordinators=3
|
||||
- pvc-9aa241f7-df94-11e9-b74c-42010aac0044
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
apiVersion: "database.arangodb.com/v1alpha"
|
||||
apiVersion: "database.arangodb.com/v1"
|
||||
kind: "ArangoDeployment"
|
||||
metadata:
|
||||
name: "example-simple-cluster-no-tls"
|
||||
|
|
16
examples/simple-cluster-with-metrics.yaml
Normal file
16
examples/simple-cluster-with-metrics.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
apiVersion: "database.arangodb.com/v1"
|
||||
kind: "ArangoDeployment"
|
||||
metadata:
|
||||
name: "example-simple-cluster"
|
||||
spec:
|
||||
metrics:
|
||||
mode: sidecar
|
||||
enabled: true
|
||||
image: 'arangodb/arangodb-exporter:0.1.7'
|
||||
tls: false
|
||||
annotations:
|
||||
prometheus.io/scrape: 'true'
|
||||
prometheus.io/port: '9101'
|
||||
prometheus.io/scrape_interval: '5s'
|
||||
mode: Cluster
|
||||
image: 'arangodb/arangodb:3.7.10'
|
|
@ -1,7 +1,7 @@
|
|||
apiVersion: "database.arangodb.com/v1alpha"
|
||||
apiVersion: "database.arangodb.com/v1"
|
||||
kind: "ArangoDeployment"
|
||||
metadata:
|
||||
name: "example-simple-cluster"
|
||||
spec:
|
||||
mode: Cluster
|
||||
image: arangodb/arangodb:3.6.1
|
||||
image: 'arangodb/arangodb:3.7.10'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
apiVersion: "database.arangodb.com/v1alpha"
|
||||
apiVersion: "database.arangodb.com/v1"
|
||||
kind: "ArangoDeployment"
|
||||
metadata:
|
||||
name: "example-simple-single-no-auth"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
apiVersion: "database.arangodb.com/v1alpha"
|
||||
apiVersion: "database.arangodb.com/v1"
|
||||
kind: "ArangoDeployment"
|
||||
metadata:
|
||||
name: "example-simple-single"
|
||||
spec:
|
||||
mode: Single
|
||||
image: arangodb/arangodb:3.6.1
|
||||
image: 'arangodb/arangodb:3.7.10'
|
||||
|
|
Loading…
Reference in a new issue