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>
72 lines
1.8 KiB
YAML
72 lines
1.8 KiB
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: rook-minio
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: minio-my-store-access-keys
|
|
namespace: rook-minio
|
|
type: Opaque
|
|
data:
|
|
# Base64 encoded string: "TEMP_DEMO_ACCESS_KEY"
|
|
username: VEVNUF9ERU1PX0FDQ0VTU19LRVk=
|
|
# Base64 encoded string: "TEMP_DEMO_SECRET_KEY"
|
|
password: VEVNUF9ERU1PX1NFQ1JFVF9LRVk=
|
|
---
|
|
apiVersion: minio.rook.io/v1alpha1
|
|
kind: ObjectStore
|
|
metadata:
|
|
name: my-store
|
|
namespace: rook-minio
|
|
spec:
|
|
scope:
|
|
nodeCount: 4
|
|
# You can have multiple PersistentVolumeClaims in the volumeClaimTemplates list.
|
|
# Be aware though that all PersistentVolumeClaim Templates will be used for each intance (see nodeCount).
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
name: rook-minio-data1
|
|
spec:
|
|
accessModes: [ "ReadWriteOnce" ]
|
|
# Set the storage class that will be used, otherwise Kubernetes' default storage class will be used.
|
|
#storageClassName: "my-storage-class"
|
|
resources:
|
|
requests:
|
|
storage: "8Gi"
|
|
#- metadata:
|
|
# name: rook-minio-data2
|
|
# 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: "8Gi"
|
|
# A key value list of annotations
|
|
annotations:
|
|
# key: value
|
|
placement:
|
|
tolerations:
|
|
nodeAffinity:
|
|
podAffinity:
|
|
podAnyAffinity:
|
|
credentials:
|
|
name: minio-my-store-access-keys
|
|
namespace: rook-minio
|
|
clusterDomain:
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: minio-my-store
|
|
namespace: rook-minio
|
|
spec:
|
|
type: NodePort
|
|
ports:
|
|
- port: 9000
|
|
selector:
|
|
app: minio
|