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:
Родитель
b090d72680
Коммит
cd9103e415
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче