forked from HariSekhon/Kubernetes-configs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlimitrange.yaml
41 lines (37 loc) · 1.1 KB
/
limitrange.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# Author: Hari Sekhon
# Date: [% DATE # 2020-08-19 14:14:11 +0100 (Wed, 19 Aug 2020) %]
#
# vim:ts=2:sts=2:sw=2:et
# lint: k8s
# run: kubectl --namespace test create -f namespace_limits.yaml
#
# https://github.com/HariSekhon/Kubernetes-configs
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn
# and optionally send me feedback to help improve or steer this or other code I publish
#
# https://www.linkedin.com/in/HariSekhon
#
# ============================================================================ #
# N a m e s p a c e L i m i t R a n g e
# ============================================================================ #
# https://kubernetes.io/docs/concepts/policy/limit-range/
# https://kubernetes.io/docs/reference/kubernetes-api/policy-resources/limit-range-v1/
---
apiVersion: v1
kind: LimitRange
metadata:
name: NAME
namespace: NAMESPACE
spec:
limits:
- default:
cpu: 1
memory: 4Gi
defaultRequest:
cpu: 0.5
memory: 100Mi
type: Container