Skip to content

Commit a02ebfb

Browse files
committed
contrib: fixed runc probe setup
1 parent cddfcf4 commit a02ebfb

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

contrib/kubernetes/skydive.yaml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ metadata:
4141
app: skydive-agent
4242
name: skydive-agent-config
4343
data:
44-
SKYDIVE_AGENT_TOPOLOGY_PROBES: "runc docker"
44+
SKYDIVE_AGENT_TOPOLOGY_PROBES: runc docker
4545
---
4646
apiVersion: extensions/v1beta1
4747
kind: Deployment
@@ -105,6 +105,8 @@ spec:
105105
env:
106106
- name: SKYDIVE_ANALYZERS
107107
value: "$(SKYDIVE_ANALYZER_SERVICE_HOST):$(SKYDIVE_ANALYZER_SERVICE_PORT_API)"
108+
- name: SKYDIVE_AGENT_TOPOLOGY_RUNC_RUN_PATH
109+
value: /var/run/runc /var/run/runc-ctrs /var/run/containerd/runc
108110
envFrom:
109111
- configMapRef:
110112
name: skydive-agent-config
@@ -117,10 +119,12 @@ spec:
117119
mountPath: /host/run
118120
- name: ovsdb
119121
mountPath: /var/run/openvswitch/db.sock
120-
- mountPath: /var/run/runc
121-
name: runc
122-
- mountPath: /var/run/runc-ctrs
123-
name: runc-ctrs
122+
- name: runc
123+
mountPath: /var/run/runc
124+
- name: runc-ctrs
125+
mountPath: /var/run/runc-ctrs
126+
- name: containerd-runc
127+
mountPath: /var/run/containerd/runc
124128
volumes:
125129
- name: docker
126130
hostPath:
@@ -131,9 +135,12 @@ spec:
131135
- name: ovsdb
132136
hostPath:
133137
path: /var/run/openvswitch/db.sock
134-
- hostPath:
135-
path: /run/runc
136-
name: runc
137-
- hostPath:
138-
path: /run/runc-ctrs
139-
name: runc-ctrs
138+
- name: runc
139+
hostPath:
140+
path: /var/run/runc
141+
- name: runc-ctrs
142+
hostPath:
143+
path: /var/run/runc-ctrs
144+
- name: containerd-runc
145+
hostPath:
146+
path: /var/run/containerd/runc

contrib/openshift/skydive-template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ objects:
162162
value: ${SKYDIVE_LOGGING_LEVEL}
163163
- name: SKYDIVE_AGENT_TOPOLOGY_PROBES
164164
value: "ovsdb runc docker"
165-
- name: SKYDIVE_RUNC_PATH
165+
- name: SKYDIVE_AGENT_TOPOLOGY_RUNC_RUN_PATH
166166
value: "/run/containerd/runc /run/runc /run/runc-ctrs"
167167
image: skydive/skydive
168168
imagePullPolicy: Always

0 commit comments

Comments
 (0)