diff --git a/bookinfo.yaml b/bookinfo.yaml deleted file mode 100644 index 36adad5..0000000 --- a/bookinfo.yaml +++ /dev/null @@ -1,77 +0,0 @@ -apiVersion: "resiliencebench.io/v1" -kind: ResilientService -metadata: - name: productpage - annotations: - resiliencebench.io/library: resilience4j - resiliencebench.io/platform: resilience4j - resiliencebench.io/create-istio-virtualservice: true -spec: - selector: - matchLabels: - app: productpage ---- -apiVersion: "resiliencebench.io/v1" -kind: ResilientService -metadata: - name: details -spec: - selector: - matchLabels: - app: details ---- -apiVersion: "resiliencebench.io/v1" -kind: ResilientService -metadata: - name: ratings -spec: - selector: - matchLabels: - app: ratings ---- -apiVersion: "resiliencebench.io/v1" -kind: ResilientService -metadata: - name: ratings-v1 -spec: - selector: - matchLabels: - app: ratings-v1 ---- -apiVersion: "resiliencebench.io/v1" -kind: ResilientService -metadata: - name: reviews -spec: - selector: - matchLabels: - app: reviews ---- -apiVersion: "resiliencebench.io/v1" -kind: ResilientService -metadata: - name: reviews-v1 -spec: - selector: - matchLabels: - app: reviews-v1 ---- -apiVersion: "resiliencebench.io/v1" -kind: ResilientService -metadata: - name: reviews-v2 -spec: - selector: - matchLabels: - app: reviews-v2 ---- -apiVersion: "resiliencebench.io/v1" -kind: ResilientService -metadata: - name: reviews-v3 -spec: - selector: - matchLabels: - app: reviews-v3 - ---- diff --git a/istio-bookinfo.yaml b/istio-bookinfo.yaml deleted file mode 100644 index b639268..0000000 --- a/istio-bookinfo.yaml +++ /dev/null @@ -1,388 +0,0 @@ -# Copyright Istio Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# 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. - -################################################################################################## -# This file defines the services, service accounts, and deployments for the Bookinfo sample. -# -# To apply all 4 Bookinfo services, their corresponding service accounts, and deployments: -# -# kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml -# -# Alternatively, you can deploy any resource separately: -# -# kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml -l service=reviews # reviews Service -# kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml -l account=reviews # reviews ServiceAccount -# kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml -l app=reviews,version=v3 # reviews-v3 Deployment -################################################################################################## - -################################################################################################## -# Details service -################################################################################################## -apiVersion: v1 -kind: Service -metadata: - name: details - labels: - app: details - service: details -spec: - ports: - - port: 9080 - name: http - selector: - app: details ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - name: bookinfo-details - labels: - account: details ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: details-v1 - labels: - app: details - version: v1 -spec: - replicas: 1 - selector: - matchLabels: - app: details - version: v1 - template: - metadata: - labels: - app: details - version: v1 - spec: - serviceAccountName: bookinfo-details - containers: - - name: details - image: docker.io/istio/examples-bookinfo-details-v1:1.18.0 - imagePullPolicy: IfNotPresent - ports: - - containerPort: 9080 ---- -################################################################################################## -# Ratings service -################################################################################################## -apiVersion: v1 -kind: Service -metadata: - name: ratings - labels: - app: ratings - service: ratings -spec: - ports: - - port: 9080 - name: http - selector: - app: ratings ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - name: bookinfo-ratings - labels: - account: ratings ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: ratings-v1 - labels: - app: ratings - version: v1 -spec: - replicas: 1 - selector: - matchLabels: - app: ratings - version: v1 - template: - metadata: - labels: - app: ratings - version: v1 - spec: - serviceAccountName: bookinfo-ratings - containers: - - name: ratings - image: docker.io/istio/examples-bookinfo-ratings-v1:1.18.0 - imagePullPolicy: IfNotPresent - ports: - - containerPort: 9080 ---- -################################################################################################## -# Reviews service -################################################################################################## -apiVersion: v1 -kind: Service -metadata: - name: reviews - labels: - app: reviews - service: reviews -spec: - ports: - - port: 9080 - name: http - selector: - app: reviews ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - name: bookinfo-reviews - labels: - account: reviews ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: reviews-v1 - labels: - app: reviews - version: v1 -spec: - replicas: 1 - selector: - matchLabels: - app: reviews - version: v1 - template: - metadata: - labels: - app: reviews - version: v1 - spec: - serviceAccountName: bookinfo-reviews - containers: - - name: reviews - image: docker.io/istio/examples-bookinfo-reviews-v1:1.18.0 - imagePullPolicy: IfNotPresent - env: - - name: LOG_DIR - value: "/tmp/logs" - ports: - - containerPort: 9080 - volumeMounts: - - name: tmp - mountPath: /tmp - - name: wlp-output - mountPath: /opt/ibm/wlp/output - volumes: - - name: wlp-output - emptyDir: {} - - name: tmp - emptyDir: {} ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: reviews-v2 - labels: - app: reviews - version: v2 -spec: - replicas: 1 - selector: - matchLabels: - app: reviews - version: v2 - template: - metadata: - labels: - app: reviews - version: v2 - spec: - serviceAccountName: bookinfo-reviews - containers: - - name: reviews - image: docker.io/istio/examples-bookinfo-reviews-v2:1.18.0 - imagePullPolicy: IfNotPresent - env: - - name: LOG_DIR - value: "/tmp/logs" - ports: - - containerPort: 9080 - volumeMounts: - - name: tmp - mountPath: /tmp - - name: wlp-output - mountPath: /opt/ibm/wlp/output - volumes: - - name: wlp-output - emptyDir: {} - - name: tmp - emptyDir: {} ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: reviews-v3 - labels: - app: reviews - version: v3 -spec: - replicas: 1 - selector: - matchLabels: - app: reviews - version: v3 - template: - metadata: - labels: - app: reviews - version: v3 - spec: - serviceAccountName: bookinfo-reviews - containers: - - name: reviews - image: docker.io/istio/examples-bookinfo-reviews-v3:1.18.0 - imagePullPolicy: IfNotPresent - env: - - name: LOG_DIR - value: "/tmp/logs" - ports: - - containerPort: 9080 - volumeMounts: - - name: tmp - mountPath: /tmp - - name: wlp-output - mountPath: /opt/ibm/wlp/output - volumes: - - name: wlp-output - emptyDir: {} - - name: tmp - emptyDir: {} ---- -################################################################################################## -# Productpage services -################################################################################################## -apiVersion: v1 -kind: Service -metadata: - name: productpage - labels: - app: productpage - service: productpage -spec: - ports: - - port: 9080 - name: http - selector: - app: productpage ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - name: bookinfo-productpage - labels: - account: productpage ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: productpage-v1 - labels: - app: productpage - version: v1 -spec: - replicas: 1 - selector: - matchLabels: - app: productpage - version: v1 - template: - metadata: - annotations: - prometheus.io/scrape: "true" - prometheus.io/port: "9080" - prometheus.io/path: "/metrics" - labels: - app: productpage - version: v1 - spec: - serviceAccountName: bookinfo-productpage - containers: - - name: productpage - image: docker.io/istio/examples-bookinfo-productpage-v1:1.18.0 - imagePullPolicy: IfNotPresent - ports: - - containerPort: 9080 - volumeMounts: - - name: tmp - mountPath: /tmp - volumes: - - name: tmp - emptyDir: {} ---- - -apiVersion: networking.istio.io/v1alpha3 -kind: VirtualService -metadata: - name: productpage -spec: - hosts: - - productpage - http: - - route: - - destination: - host: productpage - subset: v1 ---- -apiVersion: networking.istio.io/v1alpha3 -kind: VirtualService -metadata: - name: reviews -spec: - hosts: - - reviews - http: - - route: - - destination: - host: reviews - subset: v1 ---- -apiVersion: networking.istio.io/v1alpha3 -kind: VirtualService -metadata: - name: ratings -spec: - hosts: - - ratings - http: - - route: - - destination: - host: ratings - subset: v1 ---- -apiVersion: networking.istio.io/v1alpha3 -kind: VirtualService -metadata: - name: details -spec: - hosts: - - details - http: - - route: - - destination: - host: details - subset: v1 ---- \ No newline at end of file diff --git a/resilience-bench/operator/.idea/.gitignore b/resilience-bench/operator/.idea/.gitignore deleted file mode 100644 index 26d3352..0000000 --- a/resilience-bench/operator/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/resilience-bench/operator/.idea/compiler.xml b/resilience-bench/operator/.idea/compiler.xml deleted file mode 100644 index 47309f4..0000000 --- a/resilience-bench/operator/.idea/compiler.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/resilience-bench/operator/.idea/encodings.xml b/resilience-bench/operator/.idea/encodings.xml deleted file mode 100644 index 63e9001..0000000 --- a/resilience-bench/operator/.idea/encodings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/resilience-bench/operator/.idea/inspectionProfiles/Project_Default.xml b/resilience-bench/operator/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index a627b66..0000000 --- a/resilience-bench/operator/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - \ No newline at end of file diff --git a/resilience-bench/operator/.idea/jarRepositories.xml b/resilience-bench/operator/.idea/jarRepositories.xml deleted file mode 100644 index 712ab9d..0000000 --- a/resilience-bench/operator/.idea/jarRepositories.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/resilience-bench/operator/.idea/jpa-buddy.xml b/resilience-bench/operator/.idea/jpa-buddy.xml deleted file mode 100644 index 966d5f5..0000000 --- a/resilience-bench/operator/.idea/jpa-buddy.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/resilience-bench/operator/.idea/misc.xml b/resilience-bench/operator/.idea/misc.xml deleted file mode 100644 index 82ab2cc..0000000 --- a/resilience-bench/operator/.idea/misc.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/resilience-bench/operator/.idea/uiDesigner.xml b/resilience-bench/operator/.idea/uiDesigner.xml deleted file mode 100644 index 2b63946..0000000 --- a/resilience-bench/operator/.idea/uiDesigner.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/resilience-bench/operator/.idea/vcs.xml b/resilience-bench/operator/.idea/vcs.xml deleted file mode 100644 index b2bdec2..0000000 --- a/resilience-bench/operator/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sample-2.yaml b/sample-2.yaml deleted file mode 100644 index 848af6a..0000000 --- a/sample-2.yaml +++ /dev/null @@ -1,45 +0,0 @@ -apiVersion: resiliencebench.io/v1 -kind: Benchmark -metadata: - name: example-benchmark -spec: - rounds: 5 - workload: example-workload - connections: - - - name: connection-1 - source: - patternConfig: - patternKey1: value1 - patternKey2: value2 - service: service-1 - target: - fault: - percentage: [10,20] - delay: - duration: 100 - - - name: connection-2 - source: - patternConfig: - patternKey3: value3 - patternKey4: value4 - service: service-2 - target: - fault: - percentage: [10] - delay: - duration: 200 - - - name: connection-3 - source: - patternConfig: - patternKey5: value5 - patternKey6: value6 - service: service-3 - target: - fault: - percentage: [10] - delay: - duration: 150 - diff --git a/sample.yaml b/sample.yaml deleted file mode 100644 index 5e7303e..0000000 --- a/sample.yaml +++ /dev/null @@ -1,98 +0,0 @@ -apiVersion: "resiliencebench.io/v1beta1" -kind: Workload -metadata: - name: stress-test -spec: - users: [10, 20, 30] - duration: 100 #seconds - targetUrl: "http://" - script: - configMap: - name: bookinfo-stress-test - file: bookinfo-stress-test.js - ---- - -apiVersion: "resiliencebench.io/v1beta1" -kind: ResilientService -metadata: - name: api-gateway - annotations: - resiliencebench.io/library: resilience4j -spec: - selector: - matchLabels: - com.petclinic.service: api-gateway ---- -apiVersion: "resiliencebench.io/v1beta1" -kind: ResilientService -metadata: - name: vets-service - annotations: - resiliencebench.io/library: resilience4j -spec: - selector: - matchLabels: - com.petclinic.service: vets-service ---- -apiVersion: "resiliencebench.io/v1beta1" -kind: ResilientService -metadata: - name: visits-service - annotations: - resiliencebench.io/library: resilience4j -spec: - selector: - matchLabels: - com.petclinic.service: visits-service ---- -apiVersion: "resiliencebench.io/v1beta1" -kind: ResilientService -metadata: - name: customers-service - annotations: - resiliencebench.io/library: resilience4j -spec: - selector: - matchLabels: - com.petclinic.service: customers-service - ---- - -apiVersion: resiliencebench.io/v1beta1 -kind: Benchmark -metadata: - name: example-benchmark - namespace: default -spec: - rounds: 5 - workload: stress-test - connections: - - name: connection-1 - source: - service: api-gateway - patternConfig: - - name: patternKey1 - value: value1 - - name: patternKey2 - value: value2 - target: - service: vets-service - fault: - percentage: [10, 20] - delay: - duration: 100 - - name: connection-2 - source: - service: api-gateway - patternConfig: - - name: patternKey3 - value: value3 - - name: patternKey4 - value: value4 - target: - service: visits-service - fault: - percentage: [10, 20] - abort: - httpStatus: 503 \ No newline at end of file