Skip to content
This repository was archived by the owner on May 27, 2019. It is now read-only.

Commit 0241013

Browse files
committed
feat(charts): Add helm charts for the router
1 parent 9a0d3c8 commit 0241013

6 files changed

Lines changed: 119 additions & 0 deletions

File tree

charts/router/Chart.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: router
2+
home: https://github.com/deis/router
3+
version: <Will be populated by the ci before publishing the chart>
4+
description: Edge router for Deis Workflow.
5+
maintainers:
6+
- name: Deis Team
7+
email: engineering@deis.com
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
apiVersion: extensions/v1beta1
2+
kind: Deployment
3+
metadata:
4+
name: deis-router
5+
labels:
6+
heritage: deis
7+
annotations:
8+
component.deis.io/version: {{ .Values.docker_tag }}
9+
{{- if not (empty .Values.platform_domain) }}
10+
router.deis.io/nginx.platformDomain: {{ .Values.platform_domain }}
11+
{{- end }}
12+
spec:
13+
replicas: 1
14+
strategy:
15+
rollingUpdate:
16+
maxSurge: 1
17+
maxUnavailable: 0
18+
type: RollingUpdate
19+
selector:
20+
matchLabels:
21+
app: deis-router
22+
template:
23+
metadata:
24+
labels:
25+
app: deis-router
26+
spec:
27+
serviceAccount: deis-router
28+
containers:
29+
- name: deis-router
30+
image: quay.io/{{.Values.org}}/router:{{.Values.docker_tag}}
31+
imagePullPolicy: {{.Values.pull_policy}}
32+
{{- if or (.Values.limits_cpu) (.Values.limits_memory)}}
33+
resources:
34+
limits:
35+
{{- if (.Values.limits_cpu) }}
36+
cpu: {{.Values.limits_cpu}}
37+
{{- end}}
38+
{{- if (.Values.limits_memory) }}
39+
memory: {{.Values.limits_memory}}
40+
{{- end}}
41+
{{- end}}
42+
env:
43+
- name: POD_NAMESPACE
44+
valueFrom:
45+
fieldRef:
46+
fieldPath: metadata.namespace
47+
ports:
48+
- containerPort: 8080
49+
hostPort: 80
50+
- containerPort: 6443
51+
hostPort: 443
52+
- containerPort: 2222
53+
hostPort: 2222
54+
- containerPort: 9090
55+
hostPort: 9090
56+
livenessProbe:
57+
httpGet:
58+
path: /healthz
59+
port: 9090
60+
initialDelaySeconds: 1
61+
timeoutSeconds: 1
62+
readinessProbe:
63+
httpGet:
64+
path: /healthz
65+
port: 9090
66+
initialDelaySeconds: 1
67+
timeoutSeconds: 1
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: deis-router-dhparam
5+
labels:
6+
heritage: deis
7+
type: Opaque
8+
data:
9+
dhparam: {{ if not (empty .Values.dhparam) }}{{ .Values.dhparam | b64enc}}{{ else }}LS0tLS1CRUdJTiBESCBQQVJBTUVURVJTLS0tLS0KTUlJQkNBS0NBUUVBNGJPMlpCOTRYVVh3YjlSL0QxM0xFZ2d6V1U2Y0hZSXJzakdseVhUSkZHZmdsaFl5TUtnUQpKRXFsTjd5RWs0UUNVV25iTEtDU2F4anZCTVNqbWlTR3VvajNWRDlYRTVDaGx2SzlGQVp6alFGMFZ2VzdkNDJmCnNkNmlmcUYwSUV0R2lxWDRpTzhtWmhYZVJrc3BYekZXYkhyTklaanBCdmc5VDhmczY0ZCtDU2l2SXBqWWRVQ1UKQWRhNTViRDdLeWJkTWdJMFZza21jL3RpclN5SkIwZDVmUnYraG1vMW9pOG92Rm9vUFp2cS9HWGxPOHlRRzRZTgppWXdWYmU5c29wQ3lYNzEzaUtlM0pBQ29JWnUxZXgrRjVhbU53U3E3Rk9xb2JqK3Z2cURRM0Q2WEJaanczT3NuClFRWmVhTWYyMDVwOERWbFpWLzRqQUtQeEpUQkxyejh6c3dJQkFnPT0KLS0tLS1FTkQgREggUEFSQU1FVEVSUy0tLS0tCg=={{ end }}
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-router
5+
labels:
6+
heritage: deis
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: deis-router
5+
labels:
6+
heritage: deis
7+
spec:
8+
type: LoadBalancer
9+
selector:
10+
app: deis-router
11+
ports:
12+
- name: http
13+
port: 80
14+
targetPort: 8080
15+
- name: https
16+
port: 443
17+
targetPort: 6443
18+
- name: builder
19+
port: 2222
20+
targetPort: 2222
21+
- name: healthz
22+
port: 9090
23+
targetPort: 9090

charts/router/values.yaml

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+
platform_domain: ""
5+
dhparam: ""
6+
# limits_cpu: "100m"
7+
# limits_memory: "50Mi"

0 commit comments

Comments
 (0)