This commit is contained in:
2024-02-20 17:15:27 +08:00
committed by huty
parent 6706e1a633
commit 34158042ad
1529 changed files with 177765 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: kiamol-ch12-memory
labels:
kiamol: ch12

View File

@@ -0,0 +1,8 @@
apiVersion: v1
kind: ResourceQuota
metadata:
name: memory-quota
namespace: kiamol-ch12-memory
spec:
hard:
limits.memory: 150Mi

View File

@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: memory-allocator
namespace: kiamol-ch12-memory
labels:
kiamol: ch12
spec:
selector:
matchLabels:
app: memory-allocator
template:
metadata:
labels:
app: memory-allocator
spec:
containers:
- name: api
image: kiamol/ch12-memory-allocator
resources:
limits:
memory: 200Mi