Updating yaml to mount /var/lib/docker/container folder for logs (#86)

* Updating yaml to mount /var/lib/docker/container folder for logs

* Fixed wrong agent version
This commit is contained in:
Sambit Mishra 2018-01-23 23:52:45 -08:00 коммит произвёл GitHub
Родитель b090d72680
Коммит cd9103e415
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 24 добавлений и 9 удалений

Просмотреть файл

@ -7,8 +7,8 @@ spec:
metadata:
labels:
app: omsagent
agentVersion: 1.3.4-127
dockerProviderVersion: 10.0.0-25
agentVersion: 1.4.3-174
dockerProviderVersion: 1.0.0-30
spec:
containers:
- name: omsagent
@ -29,6 +29,8 @@ spec:
- mountPath: /etc/omsagent-secret
name: omsagent-secret
readOnly: true
- mountPath: /var/lib/docker/containers
name: containerlog-path
livenessProbe:
exec:
command:
@ -55,3 +57,6 @@ spec:
- name: omsagent-secret
secret:
secretName: omsagent-secret
- name: containerlog-path
hostPath:
path: /var/lib/docker/containers

Просмотреть файл

@ -7,8 +7,8 @@ spec:
metadata:
labels:
app: omsagent
agentVersion: 1.4.0-12
dockerProviderVersion: 10.0.0-25
agentVersion: 1.4.3-174
dockerProviderVersion: 1.0.0-30
spec:
containers:
- name: omsagent
@ -29,10 +29,10 @@ spec:
volumeMounts:
- mountPath: /var/run/docker.sock
name: docker-sock
- mountPath: /var/opt/microsoft/omsagent/state/containerhostname
name: container-hostname
- mountPath: /var/log
name: host-log
- mountPath: /var/lib/docker/containers
name: containerlog-path
livenessProbe:
exec:
command:
@ -58,4 +58,9 @@ spec:
path: /etc/hostname
- name: host-log
hostPath:
path: /var/log
path: /var/log
- name: containerlog-path
hostPath:
path: /var/lib/docker/containers

Просмотреть файл

@ -7,8 +7,8 @@ spec:
metadata:
labels:
app: omsagent
agentVersion: 1.4.1-45
dockerProviderVersion: 10.0.0-27
agentVersion: 1.4.3-174
dockerProviderVersion: 1.0.0-30
spec:
containers:
- name: omsagent
@ -29,6 +29,8 @@ spec:
- mountPath: /etc/omsagent-secret
name: omsagent-secret
readOnly: true
- mountPath: /var/lib/docker/containers
name: containerlog-path
livenessProbe:
exec:
command:
@ -47,5 +49,8 @@ spec:
- name: omsagent-secret
secret:
secretName: omsagent-secret
- name: containerlog-path
hostPath:
path: /var/lib/docker/containers
nodeSelector:
role: master