diff --git a/artifacts/helmtester/deployment.yaml b/artifacts/helmtester/deployment.yaml new file mode 100644 index 00000000..9df3f130 --- /dev/null +++ b/artifacts/helmtester/deployment.yaml @@ -0,0 +1,57 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: flagger-helmtester + labels: + app: flagger-helmtester +spec: + selector: + matchLabels: + app: flagger-helmtester + template: + metadata: + labels: + app: flagger-helmtester + annotations: + prometheus.io/scrape: "true" + spec: + serviceAccountName: tiller + containers: + - name: helmtester + image: weaveworks/flagger-loadtester:0.4.0-beta.2 + 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" diff --git a/artifacts/helmtester/service.yaml b/artifacts/helmtester/service.yaml new file mode 100644 index 00000000..8903069b --- /dev/null +++ b/artifacts/helmtester/service.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: flagger-helmtester + labels: + app: flagger-helmtester +spec: + type: ClusterIP + selector: + app: flagger-helmtester + ports: + - name: http + port: 80 + protocol: TCP + targetPort: http \ No newline at end of file