VOL-2341 Chart for voltha-kafka-dump tool
Change-Id: I558b92fd70d4f2a3a7dc8d5d1f37bbcfd6fb43c5
diff --git a/tools/voltha-kafka-dump/templates/NOTES.txt b/tools/voltha-kafka-dump/templates/NOTES.txt
new file mode 100644
index 0000000..d346417
--- /dev/null
+++ b/tools/voltha-kafka-dump/templates/NOTES.txt
@@ -0,0 +1,9 @@
+Thank you for installing {{ .Chart.Name }}.
+
+To dump events in human-readable format:
+
+kubectl exec -it <pod-name> ./voltha-dump-events.sh
+
+To dump events in binary format:
+
+kubectl exec -it <pod-name> ./voltha-dump-events.sh -- --binary
diff --git a/tools/voltha-kafka-dump/templates/deployment.yaml b/tools/voltha-kafka-dump/templates/deployment.yaml
new file mode 100644
index 0000000..dd47799
--- /dev/null
+++ b/tools/voltha-kafka-dump/templates/deployment.yaml
@@ -0,0 +1,41 @@
+---
+# Copyright 2018-present Open Networking Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+apiVersion: apps/v1beta2
+kind: Deployment
+metadata:
+ name: voltha-kafka-dump
+ labels:
+ app: voltha-kafka-dump
+ chart: voltha-kafka-dump
+ release: {{ .Release.Name }}
+ heritage: {{ .Release.Service }}
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: voltha-kafka-dump
+ release: {{ .Release.Name }}
+ template:
+ metadata:
+ labels:
+ app: voltha-kafka-dump
+ release: {{ .Release.Name }}
+ spec:
+ containers:
+ - name: voltha-kafka-dump
+ image: {{ .Values.global.registry }}{{ .Values.image.repository }}:{{ tpl .Values.image.tag . }}
+ imagePullPolicy: {{ .Values.image.pullPolicy }}
+ command: ["/bin/bash", "-c", "sleep 86400"]