diff --git a/CHANGELOG.md b/CHANGELOG.md index b58dded17449..4ac3a3a4c758 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,8 +7,20 @@ This document contains a historical list of changes between releases. Only changes that impact end-user behavior are listed; changes to documentation or internal API changes are not present. -Main (unreleased) ------------------ +v0.27.1 (2022-09-09) +------------------------- + +> **NOTE**: ARMv6 Docker images are no longer being published. +> +> We have stopped publishing Docker images for ARMv6 platforms. +> This is due to the new Ubuntu base image we are using that does not support ARMv6. +> The new Ubuntu base image has less reported CVEs, and allows us to provide more +> secure Docker images. We will still continue to publish ARMv6 release binaries and +> deb/rpm packages. + +### Other Changes + + - Switch docker image base from debian to ubuntu. (@captncraig) v0.27.0 (2022-09-01) ------------------------- diff --git a/Makefile b/Makefile index e535aff128d1..3abfdcdbce5a 100644 --- a/Makefile +++ b/Makefile @@ -135,7 +135,7 @@ seego = docker run --init --rm $(DOCKER_OPTS) $(MOD_MOUNT) -v "$(CURDIR):$(CURDI docker-build = docker build $(DOCKER_BUILD_FLAGS) ifeq ($(CROSS_BUILD),true) DOCKERFILE = Dockerfile.buildx -docker-build = docker buildx build --push --platform linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7,linux/ppc64le $(DOCKER_BUILD_FLAGS) +docker-build = docker buildx build --push --platform linux/amd64,linux/arm64,linux/arm/v7,linux/ppc64le $(DOCKER_BUILD_FLAGS) endif # we want to override the default seego behavior. Drone always builds locally inside seego and if build in container is false then use diff --git a/cmd/agent-operator/Dockerfile b/cmd/agent-operator/Dockerfile index 416e08aa0c4f..4bc8f80f9e1a 100644 --- a/cmd/agent-operator/Dockerfile +++ b/cmd/agent-operator/Dockerfile @@ -6,7 +6,7 @@ ARG IMAGE_TAG RUN make clean && make IMAGE_TAG=${IMAGE_TAG} RELEASE_BUILD=${RELEASE_BUILD} BUILD_IN_CONTAINER=false agent-operator -FROM debian:bullseye-slim +FROM ubuntu:jammy RUN apt-get update && \ apt-get install -qy tzdata ca-certificates && \ diff --git a/cmd/agent-operator/Dockerfile.buildx b/cmd/agent-operator/Dockerfile.buildx index 9473d07d4365..e6ccdf463b09 100644 --- a/cmd/agent-operator/Dockerfile.buildx +++ b/cmd/agent-operator/Dockerfile.buildx @@ -19,7 +19,7 @@ ARG IMAGE_TAG RUN make clean && make IMAGE_TAG=${IMAGE_TAG} RELEASE_BUILD=${RELEASE_BUILD} BUILD_IN_CONTAINER=false DRONE=true agent-operator -FROM debian:bullseye-slim +FROM ubuntu:jammy RUN apt-get update && \ apt-get install -qy tzdata ca-certificates && \ diff --git a/cmd/agent/Dockerfile b/cmd/agent/Dockerfile index 63e0a63a85d6..5d5fca567b26 100644 --- a/cmd/agent/Dockerfile +++ b/cmd/agent/Dockerfile @@ -13,13 +13,9 @@ RUN apt-get update && apt-get install -qy libbpfcc-dev RUN make clean && make IMAGE_TAG=${IMAGE_TAG} RELEASE_BUILD=${RELEASE_BUILD} BUILD_IN_CONTAINER=false agent -FROM debian:bullseye-slim +FROM ubuntu:jammy -# Backports repo required to get a libsystemd version 246 or newer which is required to handle journal +ZSTD compression -# plus the libbpfcc library for running the eBPF integration. -RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list -RUN apt-get update && apt-get install -t bullseye-backports -qy libsystemd-dev && \ - apt-get install -qy tzdata ca-certificates && \ +RUN apt-get update && apt-get install -qy libsystemd-dev tzdata ca-certificates && \ if [ `uname -m` = "x86_64" ]; then apt-get install -qy libbpfcc; fi && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* diff --git a/cmd/agent/Dockerfile.buildx b/cmd/agent/Dockerfile.buildx index 5b03dc8bcf09..cbef5244f5a1 100644 --- a/cmd/agent/Dockerfile.buildx +++ b/cmd/agent/Dockerfile.buildx @@ -22,13 +22,9 @@ ARG IMAGE_TAG RUN make clean && IMAGE_TAG=${IMAGE_TAG} RELEASE_BUILD=${RELEASE_BUILD} BUILD_IN_CONTAINER=false DRONE=true make agent -FROM debian:bullseye-slim +FROM ubuntu:jammy -# Backports repo required to get a libsystemd version 246 or newer which is required to handle journal +ZSTD compression -# plus the libbpfcc library for running the eBPF integration. -RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list -RUN apt-get update && apt-get install -t bullseye-backports -qy libsystemd-dev && \ - apt-get install -qy tzdata ca-certificates && \ +RUN apt-get update && apt-get install -qy libsystemd-dev tzdata ca-certificates && \ if [ `uname -m` = "x86_64" ]; then apt-get install -qy libbpfcc; fi && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* diff --git a/cmd/agentctl/Dockerfile b/cmd/agentctl/Dockerfile index de7f8fecb732..0e8042aa5c4a 100644 --- a/cmd/agentctl/Dockerfile +++ b/cmd/agentctl/Dockerfile @@ -13,12 +13,9 @@ RUN apt-get update && apt-get install -qy libbpfcc-dev RUN make clean && make IMAGE_TAG=${IMAGE_TAG} RELEASE_BUILD=${RELEASE_BUILD} BUILD_IN_CONTAINER=false agentctl -FROM debian:bullseye-slim +FROM ubuntu:jammy -# Backports repo required to get a libsystemd version 246 or newer which is required to handle journal +ZSTD compression -# plus the libbpfcc library for running the eBPF integration. -RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list -RUN apt-get update && apt-get install -t bullseye-backports -qy libsystemd-dev && \ +RUN apt-get update && apt-get install -qy libsystemd-dev && \ apt-get install -qy tzdata ca-certificates && \ if [ `uname -m` = "x86_64" ]; then apt-get install -qy libbpfcc; fi && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* diff --git a/cmd/agentctl/Dockerfile.buildx b/cmd/agentctl/Dockerfile.buildx index 5fd00f07222e..ba982683d592 100644 --- a/cmd/agentctl/Dockerfile.buildx +++ b/cmd/agentctl/Dockerfile.buildx @@ -23,16 +23,11 @@ ARG IMAGE_TAG # Makefile. RUN make clean && IMAGE_TAG=${IMAGE_TAG} RELEASE_BUILD=${RELEASE_BUILD} BUILD_IN_CONTAINER=false DRONE=true make agentctl -FROM debian:bullseye-slim +FROM ubuntu:jammy -# Backports repo required to get a libsystemd version 246 or newer which is required to handle journal +ZSTD compression -# plus the libbpfcc library for running the eBPF integration. -RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list -RUN apt-get update && apt-get install -t bullseye-backports -qy libsystemd-dev && \ - apt-get install -qy tzdata ca-certificates && \ +RUN apt-get update && apt-get install -qy libsystemd-dev tzdata ca-certificates && \ if [ `uname -m` = "x86_64" ]; then apt-get install -qy libbpfcc; fi && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* - COPY --from=build /src/agent/cmd/agentctl/agentctl /bin/agentctl ENTRYPOINT ["/bin/agentctl"] diff --git a/docs/sources/configuration/integrations/node-exporter-config.md b/docs/sources/configuration/integrations/node-exporter-config.md index 9643128240be..fab3b927a14c 100644 --- a/docs/sources/configuration/integrations/node-exporter-config.md +++ b/docs/sources/configuration/integrations/node-exporter-config.md @@ -28,7 +28,7 @@ docker run \ -v "/proc:/host/proc:ro,rslave" \ -v /tmp/agent:/etc/agent \ -v /path/to/config.yaml:/etc/agent-config/agent.yaml \ - grafana/agent:v0.27.0 \ + grafana/agent:v0.27.1 \ --config.file=/etc/agent-config/agent.yaml ``` @@ -67,7 +67,7 @@ metadata: name: agent spec: containers: - - image: grafana/agent:v0.27.0 + - image: grafana/agent:v0.27.1 name: agent args: - --config.file=/etc/agent-config/agent.yaml diff --git a/docs/sources/configuration/integrations/process-exporter-config.md b/docs/sources/configuration/integrations/process-exporter-config.md index 740677e6a955..510b19495432 100644 --- a/docs/sources/configuration/integrations/process-exporter-config.md +++ b/docs/sources/configuration/integrations/process-exporter-config.md @@ -20,7 +20,7 @@ docker run \ -v "/proc:/proc:ro" \ -v /tmp/agent:/etc/agent \ -v /path/to/config.yaml:/etc/agent-config/agent.yaml \ - grafana/agent:v0.27.0 \ + grafana/agent:v0.27.1 \ --config.file=/etc/agent-config/agent.yaml ``` @@ -37,7 +37,7 @@ metadata: name: agent spec: containers: - - image: grafana/agent:v0.27.0 + - image: grafana/agent:v0.27.1 name: agent args: - --config.file=/etc/agent-config/agent.yaml diff --git a/docs/sources/operator/custom-resource-quickstart.md b/docs/sources/operator/custom-resource-quickstart.md index 8fe7830fdbe1..16d06c07c266 100644 --- a/docs/sources/operator/custom-resource-quickstart.md +++ b/docs/sources/operator/custom-resource-quickstart.md @@ -45,7 +45,7 @@ metadata: labels: app: grafana-agent spec: - image: grafana/agent:v0.27.0 + image: grafana/agent:v0.27.1 logLevel: info serviceAccountName: grafana-agent metrics: diff --git a/docs/sources/operator/getting-started.md b/docs/sources/operator/getting-started.md index 2f60f27c6b91..b15b4a3634c8 100644 --- a/docs/sources/operator/getting-started.md +++ b/docs/sources/operator/getting-started.md @@ -74,7 +74,7 @@ spec: serviceAccountName: grafana-agent-operator containers: - name: operator - image: grafana/agent-operator:v0.27.0 + image: grafana/agent-operator:v0.27.1 args: - --kubelet-service=default/kubelet --- diff --git a/docs/sources/set-up/install-agent-docker.md b/docs/sources/set-up/install-agent-docker.md index 8071f0393ef8..bf14b024d4c6 100644 --- a/docs/sources/set-up/install-agent-docker.md +++ b/docs/sources/set-up/install-agent-docker.md @@ -21,7 +21,7 @@ Install Grafana Agent and get it up and running on Docker. docker run \ -v /tmp/agent:/etc/agent/data \ -v /path/to/config.yaml:/etc/agent/agent.yaml \ - grafana/agent:v0.27.0 + grafana/agent:v0.27.1 ``` 2. Replace `/tmp/agent` with the folder you want to store WAL data in. diff --git a/pkg/operator/defaults.go b/pkg/operator/defaults.go index 932670235ca2..207b80c29152 100644 --- a/pkg/operator/defaults.go +++ b/pkg/operator/defaults.go @@ -29,6 +29,7 @@ var ( "v0.26.0", "v0.26.1", "v0.27.0", + "v0.27.1", // NOTE(rfratto): when performing an upgrade, add the newest version above instead of changing the existing reference. } diff --git a/production/grafanacloud-install.sh b/production/grafanacloud-install.sh index a0336edab906..2d398fe4e47b 100755 --- a/production/grafanacloud-install.sh +++ b/production/grafanacloud-install.sh @@ -50,7 +50,7 @@ PACKAGE_SYSTEM=${PACKAGE_SYSTEM:=} # # Global constants. # -RELEASE_VERSION="0.27.0" +RELEASE_VERSION="0.27.1" RELEASE_URL="https://github.com/grafana/agent/releases/download/v${RELEASE_VERSION}" DEB_URL="${RELEASE_URL}/grafana-agent-${RELEASE_VERSION}-1.${ARCH}.deb" diff --git a/production/kubernetes/agent-bare.yaml b/production/kubernetes/agent-bare.yaml index 46030cd45e12..426b2e2494f0 100644 --- a/production/kubernetes/agent-bare.yaml +++ b/production/kubernetes/agent-bare.yaml @@ -84,7 +84,7 @@ spec: valueFrom: fieldRef: fieldPath: spec.nodeName - image: grafana/agent:v0.27.0 + image: grafana/agent:v0.27.1 imagePullPolicy: IfNotPresent name: grafana-agent ports: diff --git a/production/kubernetes/agent-loki.yaml b/production/kubernetes/agent-loki.yaml index 9d214019316e..457a68cd5dc5 100644 --- a/production/kubernetes/agent-loki.yaml +++ b/production/kubernetes/agent-loki.yaml @@ -66,7 +66,7 @@ spec: valueFrom: fieldRef: fieldPath: spec.nodeName - image: grafana/agent:v0.27.0 + image: grafana/agent:v0.27.1 imagePullPolicy: IfNotPresent name: grafana-agent-logs ports: diff --git a/production/kubernetes/agent-traces.yaml b/production/kubernetes/agent-traces.yaml index 54a775fd068c..956d00d1d2de 100644 --- a/production/kubernetes/agent-traces.yaml +++ b/production/kubernetes/agent-traces.yaml @@ -111,7 +111,7 @@ spec: valueFrom: fieldRef: fieldPath: spec.nodeName - image: grafana/agent:v0.27.0 + image: grafana/agent:v0.27.1 imagePullPolicy: IfNotPresent name: grafana-agent-traces ports: diff --git a/production/kubernetes/build/lib/version.libsonnet b/production/kubernetes/build/lib/version.libsonnet index f041bd0d245d..8322cf589f73 100644 --- a/production/kubernetes/build/lib/version.libsonnet +++ b/production/kubernetes/build/lib/version.libsonnet @@ -1 +1 @@ -'grafana/agent:v0.27.0' +'grafana/agent:v0.27.1' diff --git a/production/kubernetes/build/templates/operator/main.jsonnet b/production/kubernetes/build/templates/operator/main.jsonnet index eef730c8a8d8..cb23896a0f16 100644 --- a/production/kubernetes/build/templates/operator/main.jsonnet +++ b/production/kubernetes/build/templates/operator/main.jsonnet @@ -23,8 +23,8 @@ local ksm = import 'kube-state-metrics/kube-state-metrics.libsonnet'; local this = self, _images:: { - agent: 'grafana/agent:v0.27.0', - agent_operator: 'grafana/agent-operator:v0.27.0', + agent: 'grafana/agent:v0.27.1', + agent_operator: 'grafana/agent-operator:v0.27.1', ksm: 'registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.5.0' }, diff --git a/production/kubernetes/install-bare.sh b/production/kubernetes/install-bare.sh index 28b7b277056f..533df2bd132b 100644 --- a/production/kubernetes/install-bare.sh +++ b/production/kubernetes/install-bare.sh @@ -25,7 +25,7 @@ check_installed() { check_installed curl check_installed envsubst -MANIFEST_BRANCH=v0.27.0 +MANIFEST_BRANCH=v0.27.1 MANIFEST_URL=${MANIFEST_URL:-https://raw.githubusercontent.com/grafana/agent/${MANIFEST_BRANCH}/production/kubernetes/agent-bare.yaml} NAMESPACE=${NAMESPACE:-default} diff --git a/production/operator/templates/agent-operator.yaml b/production/operator/templates/agent-operator.yaml index 647d4d78cb4e..1dc4d111924a 100644 --- a/production/operator/templates/agent-operator.yaml +++ b/production/operator/templates/agent-operator.yaml @@ -372,7 +372,7 @@ spec: containers: - args: - --kubelet-service=default/kubelet - image: grafana/agent-operator:v0.27.0 + image: grafana/agent-operator:v0.27.1 imagePullPolicy: IfNotPresent name: grafana-agent-operator serviceAccount: grafana-agent-operator @@ -436,7 +436,7 @@ metadata: name: grafana-agent namespace: ${NAMESPACE} spec: - image: grafana/agent:v0.27.0 + image: grafana/agent:v0.27.1 integrations: selector: matchLabels: diff --git a/production/tanka/grafana-agent/v1/main.libsonnet b/production/tanka/grafana-agent/v1/main.libsonnet index 40fa963edfc2..5fbc41955124 100644 --- a/production/tanka/grafana-agent/v1/main.libsonnet +++ b/production/tanka/grafana-agent/v1/main.libsonnet @@ -15,8 +15,8 @@ local service = k.core.v1.service; (import './lib/traces.libsonnet') + { _images:: { - agent: 'grafana/agent:v0.27.0', - agentctl: 'grafana/agentctl:v0.27.0', + agent: 'grafana/agent:v0.27.1', + agentctl: 'grafana/agentctl:v0.27.1', }, // new creates a new DaemonSet deployment of the grafana-agent. By default, diff --git a/production/tanka/grafana-agent/v2/internal/base.libsonnet b/production/tanka/grafana-agent/v2/internal/base.libsonnet index b34038b94f67..dbc03bbb6469 100644 --- a/production/tanka/grafana-agent/v2/internal/base.libsonnet +++ b/production/tanka/grafana-agent/v2/internal/base.libsonnet @@ -11,8 +11,8 @@ function(name='grafana-agent', namespace='') { local this = self, _images:: { - agent: 'grafana/agent:v0.27.0', - agentctl: 'grafana/agentctl:v0.27.0', + agent: 'grafana/agent:v0.27.1', + agentctl: 'grafana/agentctl:v0.27.1', }, _config:: { name: name, diff --git a/production/tanka/grafana-agent/v2/internal/syncer.libsonnet b/production/tanka/grafana-agent/v2/internal/syncer.libsonnet index f7f4dd2b6f6c..34c04d91a2b1 100644 --- a/production/tanka/grafana-agent/v2/internal/syncer.libsonnet +++ b/production/tanka/grafana-agent/v2/internal/syncer.libsonnet @@ -14,7 +14,7 @@ function( ) { local _config = { api: error 'api must be set', - image: 'grafana/agentctl:v0.27.0', + image: 'grafana/agentctl:v0.27.1', schedule: '*/5 * * * *', configs: [], } + config,