新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: kiamol-ch12-memory
|
||||
labels:
|
||||
kiamol: ch12
|
||||
@@ -0,0 +1,8 @@
|
||||
apiVersion: v1
|
||||
kind: ResourceQuota
|
||||
metadata:
|
||||
name: memory-quota
|
||||
namespace: kiamol-ch12-memory
|
||||
spec:
|
||||
hard:
|
||||
limits.memory: 150Mi
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user