Proxy work around for alpine collectd

Add Dockerfile for building an alpine image with collectd.

Published an image to dockerhub and reference it in collectd.yaml

Signed-off-by: David Lyle <dklyle0@gmail.com>
This commit is contained in:
David Lyle
2019-10-18 12:39:00 -05:00
committed by Obed N Munoz
parent 50553aa7bb
commit 9c01cbfacb
2 changed files with 7 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
FROM alpine:latest
RUN apk update && apk add collectd
CMD [ "collectd", "-f" ]
+2 -3
View File
@@ -19,7 +19,7 @@ spec:
terminationGracePeriodSeconds: 0
containers:
- name: collectd
image: alpine:latest
image: dklyle/alpine-collectd:1.0
imagePullPolicy: IfNotPresent
securityContext:
# Run a priv container so we really do measure what is happening on the
@@ -27,8 +27,7 @@ spec:
privileged: true
command: ["/bin/sh", "-c"]
args:
- apk update && apk add collectd;
collectd -f;
- collectd -f;
volumeMounts:
- name: collectd-config-volume
mountPath: /etc/collectd