update at 2024-04-10 14:40:13
parent
fee6a51c93
commit
b0043bbf9a
|
@ -0,0 +1,18 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: ab
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: ab
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: ab
|
||||
spec:
|
||||
containers:
|
||||
- image: imroc/ab:latest
|
||||
name: ab
|
||||
command: ["sleep", "infinity"]
|
|
@ -0,0 +1,18 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: hey
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLheyels:
|
||||
app: hey
|
||||
template:
|
||||
metadata:
|
||||
lheyels:
|
||||
app: hey
|
||||
spec:
|
||||
containers:
|
||||
- image: imroc/hey:latest
|
||||
name: hey
|
||||
command: ["sleep", "infinity"]
|
|
@ -0,0 +1,33 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: httpbin
|
||||
name: httpbin
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: httpbin
|
||||
type: ClusterIP
|
||||
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: httpbin
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: httpbin
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: httpbin
|
||||
spec:
|
||||
containers:
|
||||
- image: kennethreitz/httpbin:latest
|
||||
name: httpbin
|
|
@ -0,0 +1,33 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: nginx
|
||||
name: nginx
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: nginx
|
||||
type: ClusterIP
|
||||
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: nginx
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nginx
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nginx
|
||||
spec:
|
||||
containers:
|
||||
- image: nginx:latest
|
||||
name: nginx
|
|
@ -0,0 +1,18 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: wrk
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLwrkels:
|
||||
app: wrk
|
||||
template:
|
||||
metadata:
|
||||
lwrkels:
|
||||
app: wrk
|
||||
spec:
|
||||
containers:
|
||||
- image: imroc/wrk:latest
|
||||
name: wrk
|
||||
command: ["sleep", "infinity"]
|
|
@ -0,0 +1,29 @@
|
|||
# 测试服务
|
||||
|
||||
## 压测客户端
|
||||
|
||||
<Tabs>
|
||||
<TabItem value="hey" label="hey">
|
||||
<FileBlock showLineNumbers file="test/hey.yaml" />
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="wrk" label="wrk">
|
||||
<FileBlock showLineNumbers file="test/wrk.yaml" />
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="ab" label="ab">
|
||||
<FileBlock showLineNumbers file="test/ab.yaml" />
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## 测试服务端
|
||||
|
||||
<Tabs>
|
||||
<TabItem value="nginx" label="nginx">
|
||||
<FileBlock showLineNumbers file="test/nginx.yaml" />
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="httpbin" label="httpbin">
|
||||
<FileBlock showLineNumbers file="test/httpbin.yaml" />
|
||||
</TabItem>
|
||||
</Tabs>
|
|
@ -586,6 +586,7 @@ const sidebars: SidebarsConfig = {
|
|||
slug: '/appendix/yaml'
|
||||
},
|
||||
items: [
|
||||
'appendix/yaml/test',
|
||||
'appendix/yaml/rbac',
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue