added kubernetes (k3s) setup and docs and monitoring
This commit is contained in:
38
kubernetes/resource-limits/resource-limits.yaml
Normal file
38
kubernetes/resource-limits/resource-limits.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: apps
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: LimitRange
|
||||
metadata:
|
||||
name: apps-limits
|
||||
namespace: apps
|
||||
spec:
|
||||
limits:
|
||||
- type: Container
|
||||
default:
|
||||
cpu: "200m"
|
||||
memory: "256Mi"
|
||||
defaultRequest:
|
||||
cpu: "50m"
|
||||
memory: "64Mi"
|
||||
max:
|
||||
cpu: "500m"
|
||||
memory: "512Mi"
|
||||
min:
|
||||
cpu: "10m"
|
||||
memory: "16Mi"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ResourceQuota
|
||||
metadata:
|
||||
name: apps-quota
|
||||
namespace: apps
|
||||
spec:
|
||||
hard:
|
||||
requests.cpu: "1"
|
||||
requests.memory: "768Mi"
|
||||
limits.cpu: "1.5"
|
||||
limits.memory: "1.5Gi"
|
||||
pods: "10"
|
||||
Reference in New Issue
Block a user