mirror of
https://github.com/lucky-sideburn/kubeinvaders.git
synced 2026-04-05 18:06:56 +00:00
Merge pull request #37 from pittar-sandbox/pittar-improvements
Thank you!
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user