This commit is contained in:
2021-02-18 23:08:00 +01:00
parent 38cac7a57f
commit 1ac9cc0b4c
2 changed files with 7 additions and 6 deletions

View File

@@ -18,10 +18,10 @@ data:
nodeResourceUtilizationThresholds: nodeResourceUtilizationThresholds:
thresholds: thresholds:
"cpu": 30 "cpu": 30
"memory": 30 "memory": 50
"pods": 10 "pods": 15
targetThresholds: targetThresholds:
"cpu": 70 "cpu": 70
"memory": 70 "memory": 70
"pods": 15 "pods": 16

View File

@@ -41,12 +41,13 @@ spec:
type: image type: image
steps: steps:
- name: build-binary - name: build-binary
image: docker.io/golang image: debian:stable-slim
script: script: |
#!/usr/bin/env bash #!/usr/bin/env bash
pwd
PKG_NAME=github.com/sapcc/mosquitto-exporter PKG_NAME=github.com/sapcc/mosquitto-exporter
BUILD_DIR=bin BUILD_DIR=bin
MOSQUITTO_EXPORTER_BINARY=${}BUILD_DIR}/mosquitto_exporter MOSQUITTO_EXPORTER_BINARY=${BUILD_DIR}/mosquitto_exporter
IMAGE=apcc/mosquitto-exporter IMAGE=apcc/mosquitto-exporter
VERSION=0.6.0 VERSION=0.6.0
LDFLAGS=-s -w -X main.Version=${VERSION} -X main.GITCOMMIT=`git rev-parse --short HEAD` LDFLAGS=-s -w -X main.Version=${VERSION} -X main.GITCOMMIT=`git rev-parse --short HEAD`