27 lines
540 B
YAML
27 lines
540 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: frontend
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: frontend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: frontend
|
|
spec:
|
|
containers:
|
|
- name: curl-loop
|
|
image: curlimages/curl:7.86.0
|
|
command: ["/bin/sh"]
|
|
args:
|
|
- "-c"
|
|
- |
|
|
while true; do
|
|
echo "=== Calling backend-service:80 ==="
|
|
curl -s backend-service:80
|
|
echo
|
|
sleep 5
|
|
done |