Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New kustomize-deployment approach is super slow #4156

Closed
vdboor opened this issue Jun 5, 2019 · 1 comment · Fixed by #4159
Closed

New kustomize-deployment approach is super slow #4156

vdboor opened this issue Jun 5, 2019 · 1 comment · Fixed by #4159

Comments

@vdboor
Copy link

vdboor commented Jun 5, 2019

Is this a BUG REPORT or FEATURE REQUEST? bug

  • Kubernetes version: 1.14.1
  • Docker for Mac: edge, 2.0.4.1

What happened:

The new installation instructions use kustomize (cool), but this is really slow with large remote repositories: #1132 one of the contributors of kustomize doesn't recommend using this appoach.

The old approach took a few seconds:

kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.24.1/deploy/mandatory.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.24.1/deploy/provider/cloud-generic.yaml

Yet the equivalent strategy in kustomize takes minutes:

$ time kustomize build . >/dev/null

real	0m40.918s
user	0m9.473s
sys	0m5.607s

kustomization.yml:

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: ingress-nginx
bases:
- github.com/kubernetes/ingress-nginx/deploy/cluster-wide
- github.com/kubernetes/ingress-nginx/deploy/cloud-generic

This looks like the entire repository (10MB) is cloned multiple times, given the time it takes:

$ time git clone  https://github.com/kubernetes/ingress-nginx.git
Cloning into 'ingress-nginx'...
remote: Enumerating objects: 32, done.
remote: Counting objects: 100% (32/32), done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 76944 (delta 3), reused 6 (delta 1), pack-reused 76912
Receiving objects: 100% (76944/76944), 96.51 MiB | 9.92 MiB/s, done.
Resolving deltas: 100% (41260/41260), done.
Checking out files: 100% (4644/4644), done.

real	0m13.121s
user	0m4.330s
sys	0m2.126s

Expected:

Either:

  • kustomize is fixed to handle quick partial git pulls.
  • a smaller repository / submodule is used for deployments
  • the old approach is restored
@vdboor vdboor changed the title New deployment approach is super slow New kustomize-deployment approach is super slow Jun 5, 2019
@aledbf
Copy link
Member

aledbf commented Jun 5, 2019

@vdboor apologies for this issue. I am planning to restore the old approach until kustomize fixes this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants