diff --git a/artifacts/loadtester/deployment.yaml b/artifacts/loadtester/deployment.yaml index b5e61e1d..c5f1004d 100644 --- a/artifacts/loadtester/deployment.yaml +++ b/artifacts/loadtester/deployment.yaml @@ -17,7 +17,7 @@ spec: spec: containers: - name: loadtester - image: weaveworks/flagger-loadtester:0.4.0 + image: weaveworks/flagger-loadtester:0.5.0 imagePullPolicy: IfNotPresent ports: - name: http diff --git a/kustomize/tester/deployment.yaml b/kustomize/tester/deployment.yaml new file mode 100644 index 00000000..c5f1004d --- /dev/null +++ b/kustomize/tester/deployment.yaml @@ -0,0 +1,67 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: flagger-loadtester + labels: + app: flagger-loadtester +spec: + selector: + matchLabels: + app: flagger-loadtester + template: + metadata: + labels: + app: flagger-loadtester + annotations: + prometheus.io/scrape: "true" + spec: + containers: + - name: loadtester + image: weaveworks/flagger-loadtester:0.5.0 + imagePullPolicy: IfNotPresent + ports: + - name: http + containerPort: 8080 + command: + - ./loadtester + - -port=8080 + - -log-level=info + - -timeout=1h + livenessProbe: + exec: + command: + - wget + - --quiet + - --tries=1 + - --timeout=4 + - --spider + - http://localhost:8080/healthz + timeoutSeconds: 5 + readinessProbe: + exec: + command: + - wget + - --quiet + - --tries=1 + - --timeout=4 + - --spider + - http://localhost:8080/healthz + timeoutSeconds: 5 + resources: + limits: + memory: "512Mi" + cpu: "1000m" + requests: + memory: "32Mi" + cpu: "10m" + securityContext: + readOnlyRootFilesystem: true + runAsUser: 10001 +# volumeMounts: +# - name: tests +# mountPath: /bats +# readOnly: true +# volumes: +# - name: tests +# configMap: +# name: flagger-loadtester-bats \ No newline at end of file diff --git a/kustomize/tester/kustomization.yaml b/kustomize/tester/kustomization.yaml new file mode 100644 index 00000000..1c928795 --- /dev/null +++ b/kustomize/tester/kustomization.yaml @@ -0,0 +1,7 @@ +namespace: test +resources: + - service.yaml + - deployment.yaml +images: + - name: weaveworks/flagger-loadtester + newTag: 0.5.0 diff --git a/kustomize/tester/service.yaml b/kustomize/tester/service.yaml new file mode 100644 index 00000000..772b20af --- /dev/null +++ b/kustomize/tester/service.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: flagger-loadtester + labels: + app: flagger-loadtester +spec: + type: ClusterIP + selector: + app: flagger-loadtester + ports: + - name: http + port: 80 + protocol: TCP + targetPort: http \ No newline at end of file