aboutsummaryrefslogtreecommitdiffstats
path: root/reference/logging-kubernetes/log-mock-demo/templates
diff options
context:
space:
mode:
Diffstat (limited to 'reference/logging-kubernetes/log-mock-demo/templates')
-rw-r--r--reference/logging-kubernetes/log-mock-demo/templates/all-services.yaml14
-rw-r--r--reference/logging-kubernetes/log-mock-demo/templates/log-mock-demo-deployment.yaml43
2 files changed, 57 insertions, 0 deletions
diff --git a/reference/logging-kubernetes/log-mock-demo/templates/all-services.yaml b/reference/logging-kubernetes/log-mock-demo/templates/all-services.yaml
new file mode 100644
index 0000000..9e4f694
--- /dev/null
+++ b/reference/logging-kubernetes/log-mock-demo/templates/all-services.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: logdemo
+ name: logdemo
+ namespace: "{{ .Values.nsPrefix }}-logdemo"
+spec:
+ ports:
+ - port: 8080
+ nodePort: {{ .Values.nodePortPrefix }}99
+ selector:
+ app: logdemo
+ type: NodePort
diff --git a/reference/logging-kubernetes/log-mock-demo/templates/log-mock-demo-deployment.yaml b/reference/logging-kubernetes/log-mock-demo/templates/log-mock-demo-deployment.yaml
new file mode 100644
index 0000000..afd513e
--- /dev/null
+++ b/reference/logging-kubernetes/log-mock-demo/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 }}