Allow the user to set annotations in the CRDs of the following operators which will then be set on the resulting Pods (Deployments, StatefulSets and so on). Operators: * Cassandra * Ceph * CockroachDB * EdgeFS * Minio * NFS The Annotations related structures have been added to the rook.io/v1alpha2 pkg. Signed-off-by: Alexander Trost <galexrt@googlemail.com>
40 lines
1021 B
YAML
40 lines
1021 B
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: rook-cockroachdb
|
|
---
|
|
apiVersion: cockroachdb.rook.io/v1alpha1
|
|
kind: Cluster
|
|
metadata:
|
|
name: rook-cockroachdb
|
|
namespace: rook-cockroachdb
|
|
spec:
|
|
# full documentation on all available settings can be found at:
|
|
# https://rook.io/docs/rook/master/cockroachdb-cluster-crd.html
|
|
scope:
|
|
nodeCount: 3
|
|
# You can only have one PersistentVolumeClaim in this list!
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
name: rook-cockroachdb-data
|
|
spec:
|
|
accessModes: [ "ReadWriteOnce" ]
|
|
# Uncomment and specify your StorageClass, otherwise
|
|
# the cluster admin defined default StorageClass will be used.
|
|
#storageClassName: "your-cluster-storageclass"
|
|
resources:
|
|
requests:
|
|
storage: "1Gi"
|
|
network:
|
|
ports:
|
|
- name: http
|
|
port: 8080
|
|
- name: grpc
|
|
port: 26257
|
|
secure: false
|
|
cachePercent: 25
|
|
maxSQLMemoryPercent: 25
|
|
# A key/value list of annotations
|
|
annotations:
|
|
# key: value
|