diff --git a/support/gitlab-runners/install-runners.sh b/support/gitlab-runners/install-runners.sh index da5ecf5f23..92b3017f07 100755 --- a/support/gitlab-runners/install-runners.sh +++ b/support/gitlab-runners/install-runners.sh @@ -49,6 +49,9 @@ if [ -n "$IMAGE_PULL_DOCKER_USERNAME" ]; then --docker-server="https://index.docker.io/v1/" --namespace="$NAMESPACE" fi +echo "Apply limit ranges" +kubectl apply -f limitranges.yaml --namespace="$NAMESPACE" + helm repo add gitlab https://charts.gitlab.io # Before updating version, review changelog at https://docs.gitlab.com/runner/install/kubernetes.html . diff --git a/support/gitlab-runners/limitranges.yaml b/support/gitlab-runners/limitranges.yaml new file mode 100644 index 0000000000..baf0ecbb32 --- /dev/null +++ b/support/gitlab-runners/limitranges.yaml @@ -0,0 +1,18 @@ +# Copyright 2023-2023 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 + +apiVersion: v1 +kind: LimitRange +metadata: + name: ephemeral-storage-limit +spec: + limits: + - type: Container + max: + ephemeral-storage: "3Gi" + min: + ephemeral-storage: "100Mi" + default: + ephemeral-storage: "3Gi" + defaultRequest: + ephemeral-storage: "1Gi"