Skip to content

Commit 80af9c3

Browse files
committed
feat(charts): Add helm charts for workflow-manager
1 parent cd04285 commit 80af9c3

6 files changed

Lines changed: 97 additions & 1 deletion

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
rootfs/bin/boot
22
vendor/
3-
workflow-manager
43
coverage.txt

charts/workflow-manager/Chart.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: workflow-manager
2+
home: https://github.com/deis/workflow-manager
3+
version: <Will be populated by the ci before publishing the chart>
4+
description: "Deis Workflow Manager: Cluster First Aid"
5+
maintainers:
6+
- name: Deis Team
7+
email: engineering@deis.com
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
apiVersion: extensions/v1beta1
2+
kind: Deployment
3+
metadata:
4+
name: deis-workflow-manager
5+
labels:
6+
heritage: deis
7+
annotations:
8+
component.deis.io/version: {{ .Values.docker_tag }}
9+
spec:
10+
replicas: 1
11+
strategy:
12+
rollingUpdate:
13+
maxSurge: 1
14+
maxUnavailable: 0
15+
type: RollingUpdate
16+
selector:
17+
matchLabels:
18+
app: deis-workflow-manager
19+
template:
20+
metadata:
21+
labels:
22+
app: deis-workflow-manager
23+
spec:
24+
serviceAccount: deis-workflow-manager
25+
containers:
26+
- name: deis-workflow-manager
27+
image: quay.io/{{.Values.org}}/workflow-manager:{{.Values.docker_tag}}
28+
imagePullPolicy: {{.Values.pull_policy}}
29+
{{- if or (.Values.limits_cpu) (.Values.limits_memory)}}
30+
resources:
31+
limits:
32+
{{- if (.Values.limits_cpu) }}
33+
cpu: {{.Values.limits_cpu}}
34+
{{- end}}
35+
{{- if (.Values.limits_memory) }}
36+
memory: {{.Values.limits_memory}}
37+
{{- end}}
38+
{{- end}}
39+
env:
40+
- name: POD_NAMESPACE
41+
valueFrom:
42+
fieldRef:
43+
fieldPath: metadata.namespace
44+
- name: PORT
45+
value: "8080"
46+
- name: VERSIONS_API_URL
47+
value: {{.Values.versions_api_url}}
48+
- name: DOCTOR_API_URL
49+
value: {{.Values.doctor_api_url}}
50+
- name: POLL_INTERVAL_SEC
51+
value: "43200"
52+
- name: CHECK_VERSIONS
53+
value: "true"
54+
- name: API_VERSION
55+
value: "v2"
56+
- name: DEIS_NAMESPACE
57+
valueFrom:
58+
fieldRef:
59+
fieldPath: metadata.namespace
60+
ports:
61+
- containerPort: 8080
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: v1
2+
kind: ServiceAccount
3+
metadata:
4+
name: deis-workflow-manager
5+
labels:
6+
heritage: deis
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: deis-workflow-manager
5+
labels:
6+
heritage: deis
7+
router.deis.io/routable: "true"
8+
annotations:
9+
router.deis.io/domains: deis-workflow-manager
10+
spec:
11+
selector:
12+
app: deis-workflow-manager
13+
ports:
14+
- name: http
15+
port: 80
16+
targetPort: 8080
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
org: "deisci"
2+
pull_policy: "Always"
3+
docker_tag: canary
4+
versions_api_url: https://versions-staging.deis.com
5+
doctor_api_url: https://doctor-staging.deis.com
6+
# limits_cpu: "100m"
7+
# limits_memory: "50Mi"

0 commit comments

Comments
 (0)