Skip to content

Commit 54919b9

Browse files
authored
vdk-cicd: apply limit ranges for storage (#1815)
Changing the helm configuraiton did not seem to fix the issue (PR 1813) so instead I will try to apply limit ranges for the whole namespace Testing Done: apply them manually and verified frontend builds passing Signed-off-by: Antoni Ivanov <aivanov@vmware.com>
1 parent d882b46 commit 54919b9

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

support/gitlab-runners/install-runners.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ if [ -n "$IMAGE_PULL_DOCKER_USERNAME" ]; then
4949
--docker-server="https://index.docker.io/v1/" --namespace="$NAMESPACE"
5050
fi
5151

52+
echo "Apply limit ranges"
53+
kubectl apply -f limitranges.yaml --namespace="$NAMESPACE"
54+
5255
helm repo add gitlab https://charts.gitlab.io
5356

5457
# Before updating version, review changelog at https://docs.gitlab.com/runner/install/kubernetes.html .
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2023-2023 VMware, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
apiVersion: v1
5+
kind: LimitRange
6+
metadata:
7+
name: ephemeral-storage-limit
8+
spec:
9+
limits:
10+
- type: Container
11+
max:
12+
ephemeral-storage: "3Gi"
13+
min:
14+
ephemeral-storage: "100Mi"
15+
default:
16+
ephemeral-storage: "3Gi"
17+
defaultRequest:
18+
ephemeral-storage: "1Gi"

0 commit comments

Comments
 (0)