Commit a1d7a739 authored by xuezj's avatar xuezj

hostpath

parent 23f62661
...@@ -47,6 +47,8 @@ spec: ...@@ -47,6 +47,8 @@ spec:
image: ccr.ccs.tencentyun.com/{{image}} image: ccr.ccs.tencentyun.com/{{image}}
imagePullPolicy: Always imagePullPolicy: Always
volumeMounts: volumeMounts:
- mountPath: /home/logs
name: filelog
env: env:
- name: NAMESPACE - name: NAMESPACE
value: {{namespace}} value: {{namespace}}
...@@ -72,6 +74,10 @@ spec: ...@@ -72,6 +74,10 @@ spec:
periodSeconds: 5 periodSeconds: 5
successThreshold: 1 successThreshold: 1
failureThreshold: 40 failureThreshold: 40
volumes:
- name: filelog
hostPath:
path: /var/log/containers2/{{namespace}}/{{serviceName}}
restartPolicy: Always restartPolicy: Always
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
imagePullSecrets: imagePullSecrets:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment