summaryrefslogtreecommitdiffstats
path: root/kud/tests/vnfs/comp-app/collection/etcd-m3db-operators/helm/operator/charts/etcd-operator/templates/etcd-cluster-crd.yaml
diff options
context:
space:
mode:
authorRajamohan Raj <rajamohan.raj@intel.com>2020-06-24 11:42:17 -0700
committerRajamohan Raj <rajamohan.raj@intel.com>2020-06-24 11:57:04 -0700
commit27b59a675fa767ad91239d89528a90e515539595 (patch)
tree69f15f482d101f99ccf5a2976e173a8f4384bf8f /kud/tests/vnfs/comp-app/collection/etcd-m3db-operators/helm/operator/charts/etcd-operator/templates/etcd-cluster-crd.yaml
parent94bfc956f43bcaec29f2fc9844b9ca4c35d72260 (diff)
Integrate M3DB and prometheus & enable remoteWrite
In this patch, added the correct helm charts for M3DB, M3DB operator,and verified by deploying them on a 3-node k8s clusters. After deployment, we enable the remote write from prometheus to M3DB. So that M3Db can be used as a long term storage solution for metrics collected by prometheus. Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Issue-ID: MULTICLOUD-1098 Change-Id: I9ecba8c1341d71047685b10fc46676b1df2ee5f8
Diffstat (limited to 'kud/tests/vnfs/comp-app/collection/etcd-m3db-operators/helm/operator/charts/etcd-operator/templates/etcd-cluster-crd.yaml')
-rw-r--r--kud/tests/vnfs/comp-app/collection/etcd-m3db-operators/helm/operator/charts/etcd-operator/templates/etcd-cluster-crd.yaml51
1 files changed, 51 insertions, 0 deletions
diff --git a/kud/tests/vnfs/comp-app/collection/etcd-m3db-operators/helm/operator/charts/etcd-operator/templates/etcd-cluster-crd.yaml b/kud/tests/vnfs/comp-app/collection/etcd-m3db-operators/helm/operator/charts/etcd-operator/templates/etcd-cluster-crd.yaml
new file mode 100644
index 00000000..93ee84c5
--- /dev/null
+++ b/kud/tests/vnfs/comp-app/collection/etcd-m3db-operators/helm/operator/charts/etcd-operator/templates/etcd-cluster-crd.yaml
@@ -0,0 +1,51 @@
+{{- if .Values.deployments.etcdOperator }}
+# Synced with https://github.com/coreos/etcd-operator/blob/master/pkg/util/k8sutil/crd.go
+---
+apiVersion: apiextensions.k8s.io/v1beta1
+kind: CustomResourceDefinition
+metadata:
+ name: etcdclusters.etcd.database.coreos.com
+ labels:
+ chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
+ app: {{ template "etcd-operator.name" . }}
+ heritage: {{ .Release.Service }}
+ release: {{ .Release.Name }}
+ annotations:
+ helm.sh/hook: crd-install
+ helm.sh/hook-delete-policy: before-hook-creation
+spec:
+ group: etcd.database.coreos.com
+ scope: Namespaced
+ version: v1beta2
+ names:
+ kind: EtcdCluster
+ listKind: EtcdClusterList
+ singular: etcdcluster
+ plural: etcdclusters
+ shortNames:
+ - etcd
+{{- end }}
+{{- if .Values.customResources.createEtcdClusterCRD }}
+---
+apiVersion: "etcd.database.coreos.com/v1beta2"
+kind: "EtcdCluster"
+metadata:
+ name: {{ .Values.etcdCluster.name }}
+ labels:
+ chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
+ app: {{ template "etcd-operator.name" . }}
+ heritage: {{ .Release.Service }}
+ release: {{ .Release.Name }}
+ annotations:
+ "helm.sh/hook": "post-install"
+ "helm.sh/hook-delete-policy": "before-hook-creation"
+spec:
+ size: {{ .Values.etcdCluster.size }}
+ version: "{{ .Values.etcdCluster.version }}"
+ pod:
+{{ toYaml .Values.etcdCluster.pod | indent 4 }}
+ {{- if .Values.etcdCluster.enableTLS }}
+ TLS:
+{{ toYaml .Values.etcdCluster.tls | indent 4 }}
+ {{- end }}
+{{- end }}