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/)
|
||||
* Pre and post handle with the API request
|
||||
* 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
|
||||
|
||||
## Get started
|
||||
|
@ -25,6 +25,8 @@ Install it via [hd](https://github.com/LinuxSuRen/http-downloader) or download f
|
|||
hd install atest
|
||||
```
|
||||
|
||||
or, you can install it in Kubernetes. See also the [manifests](sample/manifest.yaml).
|
||||
|
||||
see the following usage:
|
||||
|
||||
```shell
|
||||
|
|
|
@ -8,16 +8,28 @@ metadata:
|
|||
name: api-testing
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 1
|
||||
maxUnavailable: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: api-testing
|
||||
strategy: {}
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
app: api-testing
|
||||
spec:
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
- podAffinityTerm:
|
||||
labelSelector:
|
||||
matchLabels:
|
||||
app: api-testing
|
||||
topologyKey: kubernetes.io/hostname
|
||||
weight: 5
|
||||
containers:
|
||||
- image: ghcr.io/linuxsuren/api-testing
|
||||
name: server
|
||||
|
@ -28,7 +40,6 @@ spec:
|
|||
requests:
|
||||
cpu: "100m"
|
||||
memory: 100m
|
||||
status: {}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
|
Loading…
Reference in New Issue