Skip to content

Commit

Permalink
[kots]: add proxy server configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Emms committed Sep 9, 2022
1 parent 08a7aa4 commit 6cd0c30
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion install/kots/manifests/gitpod-installer-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
containers:
- name: installer
# This will normally be the release tag
image: "eu.gcr.io/gitpod-core-dev/build/installer:sje-move-kots-bash-script.28"
image: "eu.gcr.io/gitpod-core-dev/build/installer:sje-installer-proxy-config.22"
volumeMounts:
- mountPath: /config-patch
name: config-patch
Expand Down
14 changes: 14 additions & 0 deletions install/kots/manifests/gitpod-proxy-server.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright (c) 2022 Gitpod GmbH. All rights reserved.
# Licensed under the MIT License. See License-MIT.txt in the project root for license information.

apiVersion: v1
kind: ConfigMap
metadata:
name: proxy-server # Name set in /install/installer/pkg/common/constants.go
labels:
app: gitpod
component: gitpod-installer
data:
httpProxy: repl{{ HTTPProxy | quote }}
httpsProxy: repl{{ HTTPProxy | quote }}
noProxy: '.{{repl ConfigOption "domain" }},{{repl NoProxy }}'
7 changes: 7 additions & 0 deletions install/kots/manifests/kots-preflight.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ spec:
- |
CONNECTION="error"
export http_proxy="{{repl HTTPProxy }}"
export HTTP_PROXY="{{repl HTTPProxy }}"
export https_proxy="{{repl HTTPSProxy }}"
export HTTPS_PROXY="{{repl HTTPSProxy }}"
export no_proxy="{{repl NoProxy }}"
export NO_PROXY="{{repl NoProxy }}"
if [ '{{repl HasLocalRegistry }}' = "true" ];
then
# Don't test for airgapped
Expand Down

0 comments on commit 6cd0c30

Please sign in to comment.