基于ab的压力测试
# ##########################################################################
# #Author: mt
# #QQ: **
# #Date: 2021-10-11
# #FileName: apache-test.yaml
# #URL: https://www.cnblogs.com/mtmm/
# #Description: The test script
# #Copyright (C): 2021 All rights reserved
# ###########################################################################
kind: Deployment
apiVersion: apps/v1
metadata:
name: apache
namespace: default
labels:
name: apache
spec:
#replicas: 3 #起的pod数
selector:
matchLabels:
name: apache
template:
metadata:
labels:
name: apache
spec:
containers:
- name: apache
image: httpd #使用镜像
command: ["ab","-c 30","-n 100000"] #执行命令
args: ["https://www.baidu.com/"] #压测域名
ports:
- name: http
containerPort: 80
转载自:https://www.cnblogs.com/zisefeizhu/p/13426862.html

浙公网安备 33010602011771号