mirror of
https://github.com/clearlinux/cloud-native-setup.git
synced 2026-09-03 20:31:30 +00:00
- Send n requests for each of the running pods. - Measure response time to response. - Report response time percentiles: 5-25-50-75-95 %. - Refactor scaling/*.sh variables to scaling/common.bash. Signed-off-by: Antti Kervinen <antti.kervinen@intel.com>
37 lines
1018 B
Plaintext
37 lines
1018 B
Plaintext
# Copyright (c) 2017,2018,2019 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
apiVersion: apps/v1
|
|
# We use a deployment rather than a pod directly specifically so we can use it to
|
|
# generate more replicas by re-deploying it.
|
|
# The only downside might be, if containers go wrong or die etc., then the deployment
|
|
# is going to try and re-deploy them, and we may not notice or get stuck waiting for
|
|
# them, so we want to be careful in the test code to time out in such cases.
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
run: busybox
|
|
name: @DEPLOYMENT@
|
|
spec:
|
|
replicas: @REPLICAS@
|
|
selector:
|
|
matchLabels:
|
|
run: busybox
|
|
template:
|
|
metadata:
|
|
labels:
|
|
run: busybox
|
|
@LABEL@: @LABELVALUE@
|
|
spec:
|
|
terminationGracePeriodSeconds: @GRACE@
|
|
runtimeClassName: @RUNTIMECLASS@
|
|
automountServiceAccountToken: false
|
|
containers:
|
|
- name: bb
|
|
image: busybox
|
|
command: @PODCOMMAND@
|
|
stdin: true
|
|
tty: true
|
|
restartPolicy: Always
|