diff --git a/.gitignore b/.gitignore index fcd56f5..601a695 100644 --- a/.gitignore +++ b/.gitignore @@ -8,8 +8,4 @@ pkg/ .vs/ .idea .skaffold-*.yaml -.kubernetes-manifests-*/ -istio-1.*/ -install-istio.sh -mtls.yaml -istio.yaml \ No newline at end of file +.kubernetes-manifests-*/ \ No newline at end of file diff --git a/kubernetes-manifests/loadgenerator.yaml b/kubernetes-manifests/loadgenerator.yaml index 55d3a3d..53e947e 100644 --- a/kubernetes-manifests/loadgenerator.yaml +++ b/kubernetes-manifests/loadgenerator.yaml @@ -11,7 +11,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - apiVersion: apps/v1 kind: Deployment metadata: @@ -30,9 +29,6 @@ spec: spec: terminationGracePeriodSeconds: 5 restartPolicy: Always - env: - - name: FRONTEND_ADDR - value: "frontend:80" containers: - name: main image: loadgenerator @@ -47,4 +43,4 @@ spec: memory: 256Mi limits: cpu: 500m - memory: 512Mi + memory: 512Mi \ No newline at end of file diff --git a/src/loadgenerator/loadgen.sh b/src/loadgenerator/loadgen.sh index 9f7a15e..79cc132 100755 --- a/src/loadgenerator/loadgen.sh +++ b/src/loadgenerator/loadgen.sh @@ -18,7 +18,7 @@ set -e trap "exit" TERM -if [ -z "${FRONTEND_ADDR}" ]; then +if [[ -z "${FRONTEND_ADDR}" ]]; then echo >&2 "FRONTEND_ADDR not specified" exit 1 fi @@ -28,7 +28,7 @@ set -x # if one request to the frontend fails, then exit STATUSCODE=$(curl --silent --output /dev/stderr --write-out "%{http_code}" http://${FRONTEND_ADDR}) if test $STATUSCODE -ne 200; then - echo "Error: cannot reach frontend, exiting" + echo "Error: Could not reach frontend - Status code: ${STATUSCODE}" exit 1 fi