1
0
Fork 0
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:
Edgar Lanting 2021-04-14 17:09:43 +02:00 committed by GitHub
parent 34138b5ef5
commit f9845f8a52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 47 additions and 14 deletions

View file

@ -1,4 +1,4 @@
apiVersion: "storage.arangodb.com/v1alpha" apiVersion: "storage.arangodb.com/v1"
kind: "ArangoLocalStorage" kind: "ArangoLocalStorage"
metadata: metadata:
name: "arangodb-local-storage" name: "arangodb-local-storage"

View file

@ -1,10 +1,10 @@
apiVersion: "database.arangodb.com/v1alpha" apiVersion: "database.arangodb.com/v1"
kind: "ArangoDeployment" kind: "ArangoDeployment"
metadata: metadata:
name: "cluster1-with-sync" name: "cluster1-with-sync"
spec: spec:
mode: Cluster mode: Cluster
image: arangodb/arangodb:3.6.1 image: 'arangodb/arangodb:3.7.10'
tls: tls:
altNames: ["kube-01", "kube-02", "kube-03"] altNames: ["kube-01", "kube-02", "kube-03"]
sync: sync:

View file

@ -1,10 +1,10 @@
apiVersion: "database.arangodb.com/v1alpha" apiVersion: "database.arangodb.com/v1"
kind: "ArangoDeployment" kind: "ArangoDeployment"
metadata: metadata:
name: "cluster2-with-sync" name: "cluster2-with-sync"
spec: spec:
mode: Cluster mode: Cluster
image: arangodb/arangodb:3.6.1 image: 'arangodb/arangodb:3.7.10'
tls: tls:
altNames: ["kube-01", "kube-02", "kube-03"] altNames: ["kube-01", "kube-02", "kube-03"]
sync: sync:

View 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

View file

@ -1,8 +1,8 @@
apiVersion: "database.arangodb.com/v1alpha" apiVersion: "database.arangodb.com/v1"
kind: "ArangoDeployment" kind: "ArangoDeployment"
metadata: metadata:
name: "production-cluster" name: "production-cluster"
spec: spec:
mode: Cluster mode: Cluster
image: arangodb/arangodb:3.6.1 image: 'arangodb/arangodb:3.7.10'
environment: Production environment: Production

View file

@ -11,7 +11,7 @@ spec:
command: ["arangodb_operator", "reboot"] command: ["arangodb_operator", "reboot"]
args: args:
- --deployment-name=my-arangodb-cluster - --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 - --license-secret-name=arangodb-license-key
- --coordinators=3 - --coordinators=3
- pvc-9aa241f7-df94-11e9-b74c-42010aac0044 - pvc-9aa241f7-df94-11e9-b74c-42010aac0044

View file

@ -1,4 +1,4 @@
apiVersion: "database.arangodb.com/v1alpha" apiVersion: "database.arangodb.com/v1"
kind: "ArangoDeployment" kind: "ArangoDeployment"
metadata: metadata:
name: "example-simple-cluster-no-tls" name: "example-simple-cluster-no-tls"

View 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'

View file

@ -1,7 +1,7 @@
apiVersion: "database.arangodb.com/v1alpha" apiVersion: "database.arangodb.com/v1"
kind: "ArangoDeployment" kind: "ArangoDeployment"
metadata: metadata:
name: "example-simple-cluster" name: "example-simple-cluster"
spec: spec:
mode: Cluster mode: Cluster
image: arangodb/arangodb:3.6.1 image: 'arangodb/arangodb:3.7.10'

View file

@ -1,4 +1,4 @@
apiVersion: "database.arangodb.com/v1alpha" apiVersion: "database.arangodb.com/v1"
kind: "ArangoDeployment" kind: "ArangoDeployment"
metadata: metadata:
name: "example-simple-single-no-auth" name: "example-simple-single-no-auth"

View file

@ -1,7 +1,7 @@
apiVersion: "database.arangodb.com/v1alpha" apiVersion: "database.arangodb.com/v1"
kind: "ArangoDeployment" kind: "ArangoDeployment"
metadata: metadata:
name: "example-simple-single" name: "example-simple-single"
spec: spec:
mode: Single mode: Single
image: arangodb/arangodb:3.6.1 image: 'arangodb/arangodb:3.7.10'