增加一些k8s的应用
This commit is contained in:
11
Test/Kubernetes/nginx/nginx-poddisruptionbudget.yaml
Normal file
11
Test/Kubernetes/nginx/nginx-poddisruptionbudget.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: policy/v1beta1
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: zk-pdb
|
||||
namespace: nginx
|
||||
spec:
|
||||
minAvailable: 2 #最小可用实例数量
|
||||
maxUnavailable: 1 #最大不可用实例数量
|
||||
selector:
|
||||
matchLabels:
|
||||
app: zookeeper
|
||||
Reference in New Issue
Block a user