Skip to content

Commit c564c50

Browse files
authored
Merge pull request #29 from Yolean/in-cluster-build-performance
Fix Kaniko builds' poor performance with local registry
2 parents a26b4b7 + 99eda44 commit c564c50

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

bin/y-k3s-install

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,15 @@ mirrors:
1616
"builds-registry.ystack.svc.cluster.local":
1717
endpoint:
1818
- http://builds-registry.ystack.svc.cluster.local
19+
"builds-registry.ystack.svc.cluster.local:80":
20+
endpoint:
21+
- http://builds-registry.ystack.svc.cluster.local
1922
"prod-registry.ystack.svc.cluster.local":
2023
endpoint:
2124
- http://prod-registry.ystack.svc.cluster.local
25+
"prod-registry.ystack.svc.cluster.local:80":
26+
endpoint:
27+
- http://prod-registry.ystack.svc.cluster.local
2228
EOF
2329

2430
INSTALLER_REVISION=16c8554b5ca6636dbacaf5e00cee31dfea87e622

examples/in-cluster-build/k8s/example-server-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ spec:
1313
spec:
1414
containers:
1515
- name: busybox
16-
image: builds-registry.ystack.svc.cluster.local/ystack-examples/example-server
16+
image: builds-registry.ystack.svc.cluster.local:80/ystack-examples/example-server
1717
ports:
1818
- containerPort: 8080

examples/in-cluster-build/skaffold.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ kind: Config
33
metadata:
44
name: in-cluster-build
55
build:
6+
tagPolicy:
7+
gitCommit:
8+
variant: CommitSha
69
artifacts:
7-
- image: builds-registry.ystack.svc.cluster.local/ystack-examples/example-server
10+
- image: builds-registry.ystack.svc.cluster.local:80/ystack-examples/example-server
811
sync:
912
infer: ["**/*"]
1013
kaniko:

k3s/image/registries.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ mirrors:
22
"builds-registry.ystack.svc.cluster.local":
33
endpoint:
44
- http://builds-registry.ystack.svc.cluster.local
5+
"builds-registry.ystack.svc.cluster.local:80":
6+
endpoint:
7+
- http://builds-registry.ystack.svc.cluster.local
58
"prod-registry.ystack.svc.cluster.local":
69
endpoint:
710
- http://prod-registry.ystack.svc.cluster.local
11+
"prod-registry.ystack.svc.cluster.local:80":
12+
endpoint:
13+
- http://prod-registry.ystack.svc.cluster.local

0 commit comments

Comments
 (0)