aboutsummaryrefslogtreecommitdiffstats
path: root/reference/logging-kubernetes/logdemo/templates/log-mock-service-deployment.yaml
blob: 92bcbe83df9ba9f8763429c51e4cfffaed265af6 (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
#{{ 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 }}