Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitee06d4a

Browse files
Installing Codefresh runner behind proxy
1 parent9839a90 commitee06d4a

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

‎_docs/enterprise/codefresh-runner.md‎

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,60 @@ venona install --kube-namespace my-codefresh-runtime --verbose --kube-config-pat
120120

121121
To check the installation result type`venona status --verbose` and you will get a list of all installations.
122122

123+
###Installing behind a proxy
124+
125+
If you want to deploy the Codefresh runner on a Kubernetes cluster that doesn’t have direct access to`g.codefresh.io`, and has to go trough a proxy server to access`g.codefresh.io`, you will need to follow these additional steps:
126+
127+
*Step 1* - Follow the installation instructions of the previous section
128+
129+
*Step 2* - Run`kubectl edit deployment venona -ncodefresh-runtime` and add the proxy variables like this
130+
131+
{% highlight yaml %}
132+
{% raw %}
133+
spec:
134+
containers:
135+
- env:
136+
- name: HTTP_PROXY
137+
value:http://192.168.199.5:8080
138+
- name: HTTPS_PROXY
139+
value:http://192.168.199.5:8080
140+
- name: http_proxy
141+
value:http://192.168.199.5:8080
142+
- name: https_proxy
143+
value:http://192.168.199.5:8080
144+
- name: no_proxy
145+
value: localhost, 127.0.0.1, <local_ip_of_machine>
146+
- name: NO_PROXY
147+
value: localhost, 127.0.0.1, <local_ip_of_machine>
148+
{% endraw %}
149+
{% endhighlight %}
150+
151+
152+
*Step 3* - Add the following variables to your runtime.yaml, both under the`runtimeScheduler:` and under`dockerDaemonScheduler:` blocks inside the`envVars:` section
153+
154+
```
155+
HTTP_PROXY: http://192.168.199.5:8080
156+
http_proxy: http://192.168.199.5:8080
157+
HTTPS_PROXY: http://192.168.199.5:8080
158+
https_proxy: http://192.168.199.5:8080
159+
No_proxy: localhost, 127.0.0.1, <local_ip_of_machine>
160+
NO_PROXY: localhost, 127.0.0.1, <local_ip_of_machine>
161+
```
162+
163+
*Step 4* - Add`.firebaseio.com` to the allowed-sites of the proxy server
164+
165+
*Step 5* - Exec into the`dind` pod and run`ifconfig`
166+
167+
If the MTU value for`docker0` is higher than the MTU value of`eth0` (sometimes the`docker0` MTU is 1500, while`eth0` MTU is 1440 - you need to change this, the`docker0` MTU should be lower than`eth0` MTU
168+
169+
To fix this, edit the configmap in the codefresh-runtime namespace:
170+
171+
```
172+
kubectl edit cm codefresh-dind-config -ncodefresh-runtime
173+
```
174+
175+
And add this after one of the commas:
176+
`"mtu":1440,`
123177

124178
###Installing on Google Kubernetes Engine
125179

‎_docs/whats-new/whats-new.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Recent Codefresh updates:
1818
- Promotion board now supports Helm 3 -[documentation]({{site.baseurl}}/docs/new-helm/helm-environment-promotion/)
1919
- New pipeline Helm step -[documentation]({{site.baseurl}}/docs/new-helm/using-helm-in-codefresh-pipeline/#examples)
2020
- Both Helm 2 and Helm 3 clusters can be used at the same time
21+
- Installing the Codefresh runner behind proxy -[documentation]({{site.baseurl}}/docs/enterprise/codefresh-runner/#installing-behind-a-proxy)
2122

2223
###February 2020
2324

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp