mirror of
https://github.com/clearlinux/cloud-native-setup.git
synced 2026-09-05 21:31:28 +00:00
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:
@@ -0,0 +1,5 @@
|
||||
FROM alpine:latest
|
||||
|
||||
RUN apk update && apk add collectd
|
||||
|
||||
CMD [ "collectd", "-f" ]
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user