Skip to content

Commit 99eda44

Browse files
committed
Like crane, kaniko is orders of magnitude faster when usinng
a port number with our local registry URLs, for reasons unclear to me.
1 parent 783603a commit 99eda44

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build:
77
gitCommit:
88
variant: CommitSha
99
artifacts:
10-
- image: builds-registry.ystack.svc.cluster.local/ystack-examples/example-server
10+
- image: builds-registry.ystack.svc.cluster.local:80/ystack-examples/example-server
1111
sync:
1212
infer: ["**/*"]
1313
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)