Skip to content

Commit

Permalink
set registry port to 443
Browse files Browse the repository at this point in the history
Signed-off-by: pixiake <[email protected]>
  • Loading branch information
pixiake committed Jun 30, 2022
1 parent b0ad4a5 commit 25288d5
Show file tree
Hide file tree
Showing 4 changed files with 651 additions and 85 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ LDFLAGS="-X github.com/kubesphere/kubekey/version.version=${VERSION}
-X github.com/kubesphere/kubekey/version.gitCommit=${GIT_COMMIT}
-X github.com/kubesphere/kubekey/version.gitTreeState=${GIT_DIRTY}"

if [ -n "$1" ]; then
if [ -n "$1" ]; then
if [ "$1" == "-p" ] || [ "$1" == "--proxy" ]; then
# Using the most trusted Go module proxy in China
GO111MODULE=on GOPROXY=https://goproxy.cn CGO_LDFLAGS="-Wl,-z,relro,-z,now,-z,noexecstack" CGO_ENABLED=1 go build -ldflags "$LDFLAGS -s -w -linkmode=external" -trimpath -buildmode=pie -o output/kk ./cmd/main.go
GO111MODULE=on GOPROXY=https://goproxy.cn CGO_LDFLAGS="-Wl,-z,relro,-z,now,-z,noexecstack" CGO_ENABLED=1 go build -tags='containers_image_openpgp' -ldflags "$LDFLAGS -s -w -linkmode=external" -trimpath -buildmode=pie -o output/kk ./cmd/main.go
else
echo "The option should be '-p' or '--proxy'"
fi
else
GO111MODULE=on GOARCH=arm64 CGO_LDFLAGS="-Wl,-z,relro,-z,now,-z,noexecstack" CGO_ENABLED=1 go build -ldflags "$LDFLAGS -s -w -linkmode=external" -trimpath -buildmode=pie -o output/kk ./cmd/main.go
GO111MODULE=on GOARCH=arm64 CGO_LDFLAGS="-Wl,-z,relro,-z,now,-z,noexecstack" CGO_ENABLED=1 go build -tags='containers_image_openpgp' -ldflags "$LDFLAGS -s -w -linkmode=external" -trimpath -buildmode=pie -o output/kk ./cmd/main.go
fi
2 changes: 1 addition & 1 deletion pkg/bootstrap/registry/templates/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ storage:
filesystem:
rootdirectory: /mnt/registry
http:
addr: :5000
addr: :443
tls:
certificate: /etc/ssl/registry/ssl/{{ .Certificate }}
key: /etc/ssl/registry/ssl/{{ .Key }}
Expand Down
2 changes: 1 addition & 1 deletion pkg/loadbalancer/templates/haproxyConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ backend kube_api_backend
{{- end }}
frontend registry_frontend
bind 127.0.0.1:5000
bind 127.0.0.1:443
mode tcp
option tcplog
default_backend registry_backend
Expand Down
Loading

0 comments on commit 25288d5

Please sign in to comment.