Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[helm] feat: support preheat function in kraken-proxy #320

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: kraken
description: P2P Docker registry capable of distributing TBs of data in seconds
version: 0.2.0
kubeVersion: ">=1.10.0"
version: 0.2.1
kubeVersion: "^1.10.0-0"
keywords:
- http
- docker
Expand Down
4 changes: 4 additions & 0 deletions helm/config/agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ extends: /etc/kraken/config/agent/base.yaml
{{ include "tls" . }}
{{ include "trackers" . }}
{{ include "build-index" . }}
{{- with .Values.agent.allowedCidrs }}
allowed_cidrs:
{{- toYaml . | nindent 2 }}
{{- end }}
6 changes: 6 additions & 0 deletions helm/templates/proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ spec:
- /usr/bin/kraken-proxy
- --config={{ .Values.proxy.config }}
- --port=80
- --server-port=81
volumeMounts:
- name: config
mountPath: /etc/config
Expand All @@ -55,3 +56,8 @@ spec:
- protocol: TCP
port: 80
targetPort: 80
name: proxy
- protocol: TCP
port: 81
targetPort: 81
name: proxy-server
11 changes: 11 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@ agent:
initContainers:
tolerations:
# - operator: "Exists"
# Override the list of IP address (ranges) allowed to access the agents
# Will be interpreted by NGINX allow statement.
#
# This can be useful e.g. when using AWS EKS with vpc-cni where the requests
# are made not from 127.0.0.1 but from the host IP
# default is:
# - 127.0.0.1
# - 172.17.0.1
allowedCidrs:
# - 192.168.178.1/24
# - 10.10.0.1
testfs:
enabled: true
annotations: