Skip to content

Commit

Permalink
Version 1 of the Keptn NeoLoad Service
Browse files Browse the repository at this point in the history
  • Loading branch information
NeotysLab committed Jun 24, 2019
1 parent be7ae81 commit 68cc919
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 36 deletions.
66 changes: 30 additions & 36 deletions config/neoloadexecutor/k8s-neoload-service-manifes.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,38 @@
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: neoload-service
namespace: keptn
metadata:
name: neoload-service
namespace: keptn
spec:
runLatest:
configuration:
build:
apiVersion: build.knative.dev/v1alpha1
kind: Build
revisionTemplate:
metadata:
name: service-builder
namespace: keptn
annotations:
# Disable scale to zero with a minScale of 1.
autoscaling.knative.dev/minScale: "1"
spec:
serviceAccountName: build-bot
source:
git:
url: https://github.com/keptn-contrib/neoload-service.git
revision: master
template:
name: neotys
arguments:
- name: IMAGE
value: docker.io/hrexed/keptn_neoload:latest
env:
loging-level: DEBUG
container:
image: docker.io/hrexed/keptn_neoload:latest
env:
loging-level: DEBUG
---

# Subscription from the GcpPubSubSource's output Channel to the Knative Service below.

apiVersion: eventing.knative.dev/v1alpha1
kind: Subscription
metadata:
name: neoload-keptn-teststarted-subscription
namespace: keptn
spec:
channel:
apiVersion: eventing.knative.dev/v1alpha1
kind: Channel
name: deployment-finished
subscriber:
ref:
apiVersion: serving.knative.dev/v1alpha1
kind: Service
name: neoload-service

---
apiVersion: eventing.knative.dev/v1alpha1
kind: Subscription
metadata:
name: github-new-artefact-subscription
namespace: keptn
spec:
channel:
apiVersion: eventing.knative.dev/v1alpha1
kind: Channel
name: deployment-finished
subscriber:
ref:
apiVersion: serving.knative.dev/v1alpha1
kind: Service
name: neoload-service
9 changes: 9 additions & 0 deletions installer/uninstallNeoLoadService.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
kubectl delete secret neoload -n keptn --ignore-not-found

# Create dynatrace-service
NL_SERVICE_RELEASE="0.0.1"

print_info "Delete neoload-service $NL_SERVICE_RELEASE"
# to update the link
kubectl delete -f https://raw.githubusercontent.com/keptn-contrib/neoload-service/$NL_SERVICE_RELEASE/config/neoloadexecutor/k8s-neoload-service-manifes.yml --ignore-not-found

0 comments on commit 68cc919

Please sign in to comment.