Skip to content

Commit 06e23e9

Browse files
authored
Merge pull request #7622 from ameukam/aks-resources
azure: Define resources for the build cluster
2 parents f8b07a0 + 502516a commit 06e23e9

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2024 The Kubernetes Authors All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
apiVersion: v1
15+
kind: Namespace
16+
metadata:
17+
name: test-pods
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v1
2+
kind: LimitRange
3+
metadata:
4+
name: cpu-limit-range
5+
namespace: test-pods
6+
spec:
7+
limits:
8+
- defaultRequest:
9+
cpu: 250m
10+
type: Container
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v1
2+
kind: LimitRange
3+
metadata:
4+
name: mem-limit-range
5+
namespace: test-pods
6+
spec:
7+
limits:
8+
- defaultRequest:
9+
memory: 1Gi
10+
type: Container
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright 2020 The Kubernetes Authors All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# The purpose of the PodDisruptionBudget here is to never allow evicting pods created by prow.
16+
# Eviction of pods can happen for one of two reasons:
17+
# * Cluster autoscaler downscaling
18+
# * Someome/Something using `kubectl drain`
19+
#
20+
# It is still possible to delete the pods via a normal delete call. See https://kubernetes.io/docs/tasks/administer-cluster/safely-drain-node/#the-eviction-api
21+
22+
apiVersion: policy/v1
23+
kind: PodDisruptionBudget
24+
metadata:
25+
name: prow-pods
26+
namespace: test-pods
27+
spec:
28+
maxUnavailable: 0
29+
selector:
30+
matchLabels:
31+
created-by-prow: "true"

0 commit comments

Comments
 (0)