Skip to content

Commit a9e1d48

Browse files
committed
feat(charts): Add helm charts for registry proxy
1 parent 62ad655 commit a9e1d48

3 files changed

Lines changed: 68 additions & 0 deletions

File tree

charts/registry-proxy/Chart.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: registry-proxy
2+
home: https://github.com/deis/registry-proxy
3+
version: <Will be populated by the ci before publishing the chart>
4+
description: Deis Workflow Registry Proxy.
5+
maintainers:
6+
- name: Deis Team
7+
email: engineering@deis.com
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{{- if eq .Values.global.registry_location "on-cluster" }}
2+
apiVersion: extensions/v1beta1
3+
kind: DaemonSet
4+
metadata:
5+
name: deis-registry-proxy
6+
labels:
7+
heritage: deis
8+
annotations:
9+
component.deis.io/version: {{ .Values.docker_tag }}
10+
spec:
11+
selector:
12+
matchLabels:
13+
app: deis-registry-proxy
14+
heritage: deis
15+
template:
16+
metadata:
17+
name: deis-registry-proxy
18+
labels:
19+
heritage: deis
20+
app: deis-registry-proxy
21+
spec:
22+
containers:
23+
- name: deis-registry-proxy
24+
image: quay.io/{{.Values.org}}/registry-proxy:{{.Values.docker_tag}}
25+
imagePullPolicy: {{.Values.pull_policy}}
26+
{{- if or (.Values.limits_cpu) (.Values.limits_memory)}}
27+
resources:
28+
limits:
29+
{{- if (.Values.limits_cpu) }}
30+
cpu: {{.Values.limits_cpu}}
31+
{{- end}}
32+
{{- if (.Values.limits_memory) }}
33+
memory: {{.Values.limits_memory}}
34+
{{- end}}
35+
{{- end}}
36+
env:
37+
- name: REGISTRY_HOST
38+
value: $(DEIS_REGISTRY_SERVICE_HOST)
39+
- name: REGISTRY_PORT
40+
value: $(DEIS_REGISTRY_SERVICE_PORT)
41+
ports:
42+
- containerPort: 80
43+
hostPort: {{.Values.global.host_port}}
44+
{{- end }}

charts/registry-proxy/values.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
org: "deisci"
2+
pull_policy: "Always"
3+
docker_tag: canary
4+
limits_cpu: "100m"
5+
limits_memory: "50Mi"
6+
7+
global:
8+
# Set the location of Workflow's Registry
9+
#
10+
# Valid values are:
11+
# - on-cluster: Run registry within the Kubernetes cluster
12+
# - off-cluster: Use registry outside the Kubernetes cluster (example: dockerhub,quay.io,self-hosted)
13+
# - ecr: Use Amazon's ECR
14+
# - gcr: Use Google's GCR
15+
registry_location: "on-cluster"
16+
# The host port to which registry proxy binds to
17+
host_port: 5555

0 commit comments

Comments
 (0)