change user to glances

This commit is contained in:
ducoterra
2020-06-23 14:25:06 -04:00
parent 74db07bd92
commit d1476804f7
4 changed files with 20 additions and 8 deletions

View File

@@ -5,4 +5,7 @@ RUN pip install glances bottle statsd pysnmp
COPY glances.conf /etc/glances/glances.conf
RUN useradd -m glances
USER glances
CMD glances -w

View File

@@ -2,14 +2,23 @@ version: '3'
services:
web:
image: hub.ducoterra.net/ducoterra/temp:0.0.7
image: hub.ducoterra.net/ducoterra/temp:0.0.8
build: .
ports:
- 61208:61208
command: glances -w
volumes:
- web_tmp:/tmp
exporter:
image: hub.ducoterra.net/ducoterra/temp:0.0.7
command: glances --export statsd
image: hub.ducoterra.net/ducoterra/temp:0.0.8
command: glances -q --export statsd
volumes:
- exporter_tmp:/tmp
graphite-statsd:
image: hub.ducoterra.net/ducoterra/graphite:0.0.1
ports:
- 8080:80
volumes:
web_tmp:
exporter_tmp:

View File

@@ -20,8 +20,8 @@ spec:
memory: 1Mi
cpu: 1m
limits:
memory: 256Mi
cpu: "24"
memory: 512Mi
cpu: "48"
- name: {{ .Release.Name }}-exporter
image: {{ .Values.image }}
command: ["glances", "-q", "--export", "statsd"]
@@ -30,5 +30,5 @@ spec:
memory: 1Mi
cpu: 1m
limits:
memory: 256Mi
memory: 512Mi
cpu: 250m

View File

@@ -1 +1 @@
image: hub.ducoterra.net/ducoterra/temp:0.0.7
image: hub.ducoterra.net/ducoterra/temp:0.0.8