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

failed to install in China #16

Closed
pahud opened this issue Jan 25, 2021 · 2 comments · Fixed by #18
Closed

failed to install in China #16

pahud opened this issue Jan 25, 2021 · 2 comments · Fixed by #18

Comments

@pahud
Copy link

pahud commented Jan 25, 2021

snap install eks fails in China and It keeps failing to get the pause image.

http://canonical/eks-snap

sandbox_image = "k8s.gcr.io/pause:3.1"

Is it possible to override this sandbox_image argument with another custom image to get it around?

WX20210125-155830@2x

eks inspect

# eks inspect
Inspecting Certificates
Inspecting services
  Service snap.eks.daemon-cluster-agent is running
  Service snap.eks.daemon-containerd is running
  Service snap.eks.daemon-apiserver is running
  Service snap.eks.daemon-apiserver-kicker is running
  Service snap.eks.daemon-control-plane-kicker is running
  Service snap.eks.daemon-proxy is running
  Service snap.eks.daemon-kubelet is running
  Service snap.eks.daemon-scheduler is running
  Service snap.eks.daemon-controller-manager is running
  Copy service arguments to the final report tarball
Inspecting AppArmor configuration
Gathering system information
  Copy processes list to the final report tarball
  Copy snap list to the final report tarball
  Copy VM name (or none) to the final report tarball
  Copy disk usage information to the final report tarball
  Copy memory usage information to the final report tarball
  Copy server uptime to the final report tarball
  Copy current linux distribution to the final report tarball
  Copy openSSL information to the final report tarball
  Copy network configuration to the final report tarball
Inspecting kubernetes cluster
  Inspect kubernetes cluster
Inspecting juju
/snap/eks/3/inspect.sh: line 285: store_juju_info: command not found
Inspecting kubeflow
/snap/eks/3/inspect.sh: line 288: store_kubeflow_info: command not found

Building the report tarball
  Report tarball is at /var/snap/eks/3/inspection-report-20210125_075140.tar.gz
@ktsakalozos
Copy link
Member

Hi @pahud.

You can edit /var/snap/eks/current/args/containerd-template.toml and update the sandbox_image with the pause image appropriate for your case. Then you should restart the snap with sudo eks.stop and sudo eks.start.

We would be changing the pause container soon to public.ecr.aws/eks-distro/kubernetes/pause:v1.18.9-eks-1-18-1 . We will however need to push the rest of our images (eg calico cni) to a registry that is available within China. Any recommendations there?

@pahud
Copy link
Author

pahud commented Jan 28, 2021

Hi,

China can access public.ecr.aws with no issue. Please upload all images to public ecr whenever possible.

I am the maintainer of cdk-eksdistro and this cdk library leverages eks snap under the hood. Would be great to see the pause container moving to public ecr so we can close https://github.com/pahud/cdk-eksdistro/issues/2

Thanks.

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