aboutsummaryrefslogtreecommitdiffstats
path: root/reference/logging-kubernetes/logdemo/templates/log-mock-demo-deployment.yaml
diff options
context:
space:
mode:
authorAvdhut Kholkar <avdhut.kholkar@amdocs.com>2018-01-30 05:09:47 +0000
committerGerrit Code Review <gerrit@onap.org>2018-01-30 05:09:47 +0000
commit0e37f66b4d5c0ca76f402984531082936ce98b4f (patch)
treee7a890907d73e11982c5031485bde4c26ddb2400 /reference/logging-kubernetes/logdemo/templates/log-mock-demo-deployment.yaml
parent6fe98f991c599af431cd4ae5c10db13a384b8541 (diff)
parent1f44731975d5a90d546bf5f4008f26920910ab8c (diff)
Merge "log RI kubernetes and docker devops"
Diffstat (limited to 'reference/logging-kubernetes/logdemo/templates/log-mock-demo-deployment.yaml')
-rw-r--r--reference/logging-kubernetes/logdemo/templates/log-mock-demo-deployment.yaml43
1 files changed, 43 insertions, 0 deletions
diff --git a/reference/logging-kubernetes/logdemo/templates/log-mock-demo-deployment.yaml b/reference/logging-kubernetes/logdemo/templates/log-mock-demo-deployment.yaml
new file mode 100644
index 0000000..afd513e
--- /dev/null
+++ b/reference/logging-kubernetes/logdemo/templates/log-mock-demo-deployment.yaml
@@ -0,0 +1,43 @@
+#{{ if not .Values.disableLogdemoLogdemo }}
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: logdemo
+ namespace: "{{ .Values.nsPrefix }}-logdemo"
+spec:
+ selector:
+ matchLabels:
+ app: logdemo
+ template:
+ metadata:
+ labels:
+ app: logdemo
+ name: logdemo
+ spec:
+ containers:
+ - image: {{ .Values.image.logdemo }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ name: logdemo
+ volumeMounts:
+ - name: localtime
+ mountPath: /etc/localtime
+ readOnly: true
+ - name: logdemo-eteshare
+ mountPath: /share
+ ports:
+ - containerPort: 8080
+ readinessProbe:
+ tcpSocket:
+ port: 8080
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumes:
+ - name: localtime
+ hostPath:
+ path: /etc/localtime
+ - name: logdemo-eteshare
+ hostPath:
+ path: /dockerdata-nfs/{{ .Values.nsPrefix }}/logdemo/eteshare
+ imagePullSecrets:
+ - name: "{{ .Values.nsPrefix }}-docker-registry-key"
+#{{ end }}