Merge pull request #37 from pittar-sandbox/pittar-improvements

Thank you!
This commit is contained in:
Eugenio Marzo
2021-04-20 18:26:11 +02:00
committed by GitHub
2 changed files with 3 additions and 12 deletions

View File

@@ -1,5 +1,8 @@
#!/bin/sh
# Source the service account token from the container directly.
export TOKEN="$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)"
redis-server /etc/redis/redis.conf &
sed -i "s/ENDPOINT_PLACEHOLDER/$ENDPOINT/g" /var/www/html/kubeinvaders.js

View File

@@ -24,14 +24,7 @@ parameters:
value: kubeinvaders
- description: A namespaces to stress with KubeInvaders.
name: TARGET_NAMESPACE
- description: Secret of the serviceAccount that can kill PODs in specific namespace.
name: KUBEINVADERS_SECRET
objects:
- apiVersion: v1
kind: ServiceAccount
metadata:
name: kubeinvaders
namespace: ${NAMESPACE}
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
@@ -91,11 +84,6 @@ objects:
value: "15"
- name: HITSLIMIT
value: "0"
- name: TOKEN
valueFrom:
secretKeyRef:
name: "${KUBEINVADERS_SECRET}"
key: token
name: kubeinvaders
image: ${IMAGE_KUBEINVADERS}
imagePullPolicy: Always