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

InsecureRegistries present not correct setting in DOCKER_OPTS #11024

Closed
maohsiang opened this issue Mar 12, 2021 · 2 comments · Fixed by #11027
Closed

InsecureRegistries present not correct setting in DOCKER_OPTS #11024

maohsiang opened this issue Mar 12, 2021 · 2 comments · Fixed by #11027

Comments

@maohsiang
Copy link

maohsiang commented Mar 12, 2021

1. What kops version are you running? The command kops version, will display
this information.

1.19.1

2. What Kubernetes version are you running? kubectl version will print the
version if a cluster is running or provide the Kubernetes version specified as
a kops flag.

1.19.8

3. What cloud provider are you using?
aws

4. What commands did you run? What is the simplest way to reproduce this issue?
kop replace, kops create

5. What happened after the commands executed?
cat /etc/sysconfig/docker
DOCKER_OPTS=--insecure-registry=first.docker.registry, second.docker.registry

6. What did you expect to happen?
cat /etc/sysconfig/docker
DOCKER_OPTS=--insecure-registry=first.docker.registry --insecure-registry=second.docker.registry

9. Anything else do we need to know?
Docker ver: 20.10.3

apiVersion: kops/v1alpha2
kind: Cluster
metadata:
  name: {{env "FULL_NAME"}}
spec:
  docker:
    version: 20.10.3
    insecureRegistries:
    - first.docker.registry
    - second.docker.registry 
    registryMirrors:
    - http://docker.mirror
@hakman
Copy link
Member

hakman commented Mar 12, 2021

Hi @maohsiang. Sorry to be annoying, but kop replace, kops create is an actual way to reproduce the issue. Would you mind adding at least the docker config to the description?

@hakman hakman changed the title InsecureRegistries present not correct setting in DOCKER_OPS InsecureRegistries present not correct setting in DOCKER_OPTS Mar 12, 2021
@maohsiang
Copy link
Author

maohsiang commented Mar 12, 2021

Hi @maohsiang. Sorry to be annoying, but kop replace, kops create is an actual way to reproduce the issue. Would you mind adding at least the docker config to the description?

I updated the kops yaml in description.

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