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

bugfix: make infra image configurable #1159

Merged

Conversation

YaoZengzeng
Copy link
Contributor

Signed-off-by: YaoZengzeng [email protected]

Ⅰ. Describe what this PR did

If we want to use other images of infra container other than default "k8s.gcr.io/pause-amd64:3.0",

we should specify pouchd's configuration like "pouchd --enable-cri --sandbox-image XXX"

Ⅱ. Does this pull request fix one issue?

fixes #1158

Ⅲ. Describe how you did it

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@pouchrobot pouchrobot added kind/bug This is bug report for project size/S labels Apr 18, 2018
main.go Outdated
@@ -78,6 +78,7 @@ func setupFlags(cmd *cobra.Command) {
flagSet.StringVar(&cfg.CriConfig.Listen, "listen-cri", "/var/run/pouchcri.sock", "Specify listening address of CRI")
flagSet.StringVar(&cfg.CriConfig.NetworkPluginBinDir, "cni-bin-dir", "/opt/cni/bin", "The directory for putting cni plugin binaries.")
flagSet.StringVar(&cfg.CriConfig.NetworkPluginConfDir, "cni-conf-dir", "/etc/cni/net.d", "The directory for putting cni plugin configuration files.")
flagSet.StringVar(&cfg.CriConfig.SandboxImage, "sandbox-image", "k8s.gcr.io/pause-amd64:3.0", "The image used by sandbox container.")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we change the default image to a better image which is easier to access in China?
I think that would be more user-friendly.

@codecov-io
Copy link

codecov-io commented Apr 18, 2018

Codecov Report

Merging #1159 into master will decrease coverage by 0.49%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #1159     +/-   ##
=========================================
- Coverage   16.06%   15.57%   -0.5%     
=========================================
  Files         173      172      -1     
  Lines        9930     9781    -149     
=========================================
- Hits         1595     1523     -72     
+ Misses       8218     8148     -70     
+ Partials      117      110      -7
Impacted Files Coverage Δ
daemon/mgr/cri.go 0% <0%> (ø) ⬆️
client/client.go 39.39% <0%> (-19.56%) ⬇️
pkg/kernel/kernel.go 72.72% <0%> (-6.23%) ⬇️
pkg/utils/utils.go 78.15% <0%> (-0.08%) ⬇️
cli/command.go 0% <0%> (ø) ⬆️
cli/common_flags.go 0% <0%> (ø) ⬆️
cli/info.go 0% <0%> (ø) ⬆️
daemon/mgr/container_types.go 15.38% <0%> (ø) ⬆️
cli/cli.go 0% <0%> (ø) ⬆️
daemon/mgr/system.go 0% <0%> (ø) ⬆️
... and 42 more

@allencloud
Copy link
Collaborator

LGTM

@pouchrobot pouchrobot added the LGTM one maintainer or community participant agrees to merge the pull reuqest. label Apr 18, 2018
@allencloud allencloud merged commit 28d36b0 into AliyunContainerService:master Apr 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug This is bug report for project LGTM one maintainer or community participant agrees to merge the pull reuqest. size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] pouch not support --pod-infra-container-image
4 participants