summaryrefslogtreecommitdiffstats
path: root/reference/logging-kubernetes/logdemo/templates/log-mock-service-deployment.yaml
diff options
context:
space:
mode:
authorAvdhut Kholkar <avdhut.kholkar@amdocs.com>2018-07-12 05:34:37 +0000
committerGerrit Code Review <gerrit@onap.org>2018-07-12 05:34:37 +0000
commitaf1410de64d463905dd6deee62efdd88ff616ce8 (patch)
tree01b7286bfd927f34481bab8a4b4920a6a0407e48 /reference/logging-kubernetes/logdemo/templates/log-mock-service-deployment.yaml
parent1ec5963cd18cd70b6aabe5fe70ab3734dd9f3307 (diff)
parent9eee6ac9daa5b82946b4f7c7eaa817ae3e1f4cab (diff)
Merge "logging library use and k8s"
Diffstat (limited to 'reference/logging-kubernetes/logdemo/templates/log-mock-service-deployment.yaml')
-rw-r--r--reference/logging-kubernetes/logdemo/templates/log-mock-service-deployment.yaml43
1 files changed, 43 insertions, 0 deletions
diff --git a/reference/logging-kubernetes/logdemo/templates/log-mock-service-deployment.yaml b/reference/logging-kubernetes/logdemo/templates/log-mock-service-deployment.yaml
new file mode 100644
index 0000000..92bcbe8
--- /dev/null
+++ b/reference/logging-kubernetes/logdemo/templates/log-mock-service-deployment.yaml
@@ -0,0 +1,43 @@
+#{{ if not .Values.disableLogserviceLogservice }}
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: logservice
+ namespace: "{{ .Values.nsPrefix }}-logservice"
+spec:
+ selector:
+ matchLabels:
+ app: logservice
+ template:
+ metadata:
+ labels:
+ app: logservice
+ name: logservice
+ spec:
+ containers:
+ - image: {{ .Values.image.logservice }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ name: logservice
+ volumeMounts:
+ - name: localtime
+ mountPath: /etc/localtime
+ readOnly: true
+ - name: logservice-eteshare
+ mountPath: /share
+ ports:
+ - containerPort: 8080
+ readinessProbe:
+ tcpSocket:
+ port: 8080
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumes:
+ - name: localtime
+ hostPath:
+ path: /etc/localtime
+ - name: logservice-eteshare
+ hostPath:
+ path: /dockerdata-nfs/{{ .Values.nsPrefix }}/logservice/eteshare
+ imagePullSecrets:
+ - name: "{{ .Values.nsPrefix }}-docker-registry-key"
+#{{ end }}