新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
14
learn/learn-kubernetes-master/kiamol/ch19/pi/hpa-cpu.yaml
Normal file
14
learn/learn-kubernetes-master/kiamol/ch19/pi/hpa-cpu.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
apiVersion: autoscaling/v1
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: pi-cpu
|
||||
labels:
|
||||
kiamol: ch19
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: pi-web
|
||||
minReplicas: 1
|
||||
maxReplicas: 5
|
||||
targetCPUUtilizationPercentage: 75
|
||||
Reference in New Issue
Block a user