docs: improve the k8s manifests about podAntiAffinity (#80)
This commit is contained in:
parent
09b58601c6
commit
73f8555d0e
|
@ -14,7 +14,7 @@ This is a API testing tool.
|
||||||
* Validate the response body with [JSON schema](https://json-schema.org/)
|
* Validate the response body with [JSON schema](https://json-schema.org/)
|
||||||
* Pre and post handle with the API request
|
* Pre and post handle with the API request
|
||||||
* Output reference between TestCase
|
* Output reference between TestCase
|
||||||
* Run in server mode, and provide the gRPC endpoint
|
* Run in server mode, and provide the [gRPC endpoint](pkg/server/server.proto)
|
||||||
* [VS Code extension](https://github.com/LinuxSuRen/vscode-api-testing) support
|
* [VS Code extension](https://github.com/LinuxSuRen/vscode-api-testing) support
|
||||||
|
|
||||||
## Get started
|
## Get started
|
||||||
|
@ -25,6 +25,8 @@ Install it via [hd](https://github.com/LinuxSuRen/http-downloader) or download f
|
||||||
hd install atest
|
hd install atest
|
||||||
```
|
```
|
||||||
|
|
||||||
|
or, you can install it in Kubernetes. See also the [manifests](sample/manifest.yaml).
|
||||||
|
|
||||||
see the following usage:
|
see the following usage:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|
|
@ -8,16 +8,28 @@ metadata:
|
||||||
name: api-testing
|
name: api-testing
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 1
|
||||||
|
maxUnavailable: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: api-testing
|
app: api-testing
|
||||||
strategy: {}
|
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
labels:
|
labels:
|
||||||
app: api-testing
|
app: api-testing
|
||||||
spec:
|
spec:
|
||||||
|
affinity:
|
||||||
|
podAntiAffinity:
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- podAffinityTerm:
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app: api-testing
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
|
weight: 5
|
||||||
containers:
|
containers:
|
||||||
- image: ghcr.io/linuxsuren/api-testing
|
- image: ghcr.io/linuxsuren/api-testing
|
||||||
name: server
|
name: server
|
||||||
|
@ -28,7 +40,6 @@ spec:
|
||||||
requests:
|
requests:
|
||||||
cpu: "100m"
|
cpu: "100m"
|
||||||
memory: 100m
|
memory: 100m
|
||||||
status: {}
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
Loading…
Reference in New Issue