summaryrefslogtreecommitdiffstats
path: root/reference/logging-kubernetes/logdemoservice/templates/log-mock-demo-service-deployment.yaml
blob: f40da2ffc0730958a011fa26ddab0b92e16434c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#{{ if not .Values.disableLogdemoserviceLogdemoservice }}
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: logdemoservice
  namespace: "{{ .Values.nsPrefix }}-logdemoservice"
spec:
  selector:
    matchLabels:
      app: logdemoservice
  template:
    metadata:
       labels:
        app: logdemoservice
       name: logdemoservice
    spec:
      containers:
      - image: {{ .Values.image.logdemoservice }}
        imagePullPolicy: {{ .Values.pullPolicy }}
        name: logdemoservice
        volumeMounts:
        - mountPath: /var/log/onap
          name: log-mock-demo-service-logs
        ports:
        - containerPort: 8080
        readinessProbe:
          tcpSocket:
            port: 8080
          initialDelaySeconds: 5
          periodSeconds: 10
      - image: {{ .Values.image.filebeat }}
        imagePullPolicy: {{ .Values.pullPolicy }}
        name: filebeat-onap
        volumeMounts:
        - mountPath: /usr/share/filebeat/filebeat.yml
          name: filebeat-conf
        - mountPath: /var/log/onap
          name: log-mock-demo-service-logs
        - mountPath: /usr/share/filebeat/data
          name: log-mock-demo-service-data-filebeat
      volumes:
        - name: filebeat-conf
          hostPath:
            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/logback/filebeat.yml
        - name: log-mock-demo-service-logs
          emptyDir: {}
        - name: log-mock-demo-service-data-filebeat
          emptyDir: {}
        - name: localtime
          hostPath:
            path: /etc/localtime
        - name: logdemoservice-eteshare
          hostPath:
            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/logdemoservice/eteshare
      imagePullSecrets:
      - name: "{{ .Values.nsPrefix }}-docker-registry-key"
#{{ end }}