Skip to content

Commit f74e3cd

Browse files
authored
Merge pull request #1659 from hunchback/contrib-k8s-runc
Contrib k8s runc
2 parents 5af1a25 + a02ebfb commit f74e3cd

File tree

3 files changed

+38
-12
lines changed

3 files changed

+38
-12
lines changed

contrib/kubernetes/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Skydive Kubernetes
2+
3+
To install run:
4+
5+
```
6+
kubectl apply -f skydive.yaml
7+
```
8+
9+
To expose UI management port:
10+
11+
```
12+
kubectl port-forward service/skydive-analyzer 8082:8082
13+
```
14+
15+
To uninstall run:
16+
17+
```
18+
kubectl delete -f skydive.yaml
19+
```

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)