From 181d50b7b6634fc451fc1bd4c33ef9364d3010d7 Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Mon, 3 Jun 2019 15:57:08 +0300 Subject: [PATCH] Add Helm tester deployment spec To be deployed in kube-system namespace, uses tiller service account --- artifacts/helmtester/deployment.yaml | 57 ++++++++++++++++++++++++++++ artifacts/helmtester/service.yaml | 15 ++++++++ 2 files changed, 72 insertions(+) create mode 100644 artifacts/helmtester/deployment.yaml create mode 100644 artifacts/helmtester/service.yaml 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