Skip to content

Commit

Permalink
Add container log mount path in yaml (#127)
Browse files Browse the repository at this point in the history
* Add container log mount path

* Add container log mount path

* Update ocp-omsagent.yaml

* Update ocp-ds-omsagent.yaml
  • Loading branch information
bragi92 authored Jul 17, 2018
1 parent 638aace commit ba5737a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions OpenShift/ocp-ds-omsagent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ spec:
- mountPath: /etc/omsagent-secret
name: omsagent-secret
readOnly: true
- mountPath: /var/lib/docker/containers
name: containerlog-path
livenessProbe:
exec:
command:
Expand All @@ -48,3 +50,6 @@ spec:
- name: omsagent-secret
secret:
secretName: omsagent-secret
- name: containerlog-path
hostPath:
path: /var/lib/docker/containers
5 changes: 5 additions & 0 deletions OpenShift/ocp-omsagent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ spec:
volumeMounts:
- mountPath: /var/run/docker.sock
name: docker-sock
- mountPath: /var/lib/docker/containers
name: containerlog-path
livenessProbe:
exec:
command:
Expand All @@ -47,3 +49,6 @@ spec:
- name: docker-sock
hostPath:
path: /var/run/docker.sock
- name: containerlog-path
hostPath:
path: /var/lib/docker/containers

0 comments on commit ba5737a

Please sign in to comment.