ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Kubernetes (Kubespray) Issue.

    IT Discussion
    kubernetes kubespray containers containerization docker
    6
    15
    1.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      devops1
      last edited by scottalanmiller

      Hello,
      I am trying to set up Kubernetes cluster using Kubespray but on the halfway installation the playbook exit out with this error. I appreciate If I get any valuable inputs. Thanks

      fatal: [minion01]: FAILED! => {
          "attempts": 2,
          "changed": false,
          "cmd": [
              "sh",
              "-c",
              "/usr/bin/docker rm -f etcdctl-binarycopy; /usr/bin/docker create --name etcdctl-binarycopy quay.io/coreos/etcd:v3.2.24 && /usr/bin/docker cp etcdctl-binarycopy:/usr/local/bin/etcdctl /usr/local/bin/etcdctl && /usr/bin/docker rm -f etcdctl-binarycopy"
          ],
          "delta": "0:00:15.312319",
          "end": "2018-11-12 17:36:21.077510",
          "invocation": {
              "module_args": {
                  "_raw_params": "sh -c \"/usr/bin/docker rm -f etcdctl-binarycopy; /usr/bin/docker create --name etcdctl-binarycopy quay.io/coreos/etcd:v3.2.24 && /usr/bin/docker cp etcdctl-binarycopy:/usr/local/bin/etcdctl /usr/local/bin/etcdctl && /usr/bin/docker rm -f etcdctl-binarycopy\"",
                  "_uses_shell": false,
                  "argv": null,
                  "chdir": null,
                  "creates": null,
                  "executable": null,
                  "removes": null,
                  "stdin": null,
                  "warn": true
              }
          },
          "msg": "non-zero return code",
          "rc": 1,
          "start": "2018-11-12 17:36:05.765191",
          ****"stderr": "Error: No such container: etcdctl-binarycopy\nUnable to find image 'quay.io/coreos/etcd:v3.2.24' locally\nError response from daemon: Get https://quay.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)",****
          "stderr_lines": [
              "Error: No such container: etcdctl-binarycopy",
              "Unable to find image 'quay.io/coreos/etcd:v3.2.24' locally",
              "Error response from daemon: Get https://quay.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
          ],
          "stdout": "",
          "stdout_lines": []
      
      1 Reply Last reply Reply Quote 3
      • scottalanmillerS
        scottalanmiller
        last edited by

        Added tags and stuff.

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          Looks like maybe Docker is not properly working?

          travisdh1T 1 Reply Last reply Reply Quote 1
          • travisdh1T
            travisdh1 @scottalanmiller
            last edited by

            @scottalanmiller said in Kubernetes (Kubespray) Issue.:

            Looks like maybe Docker is not properly working?

            Look at how surprised I am at Docker not working properly. /sarcasim

            1 Reply Last reply Reply Quote 1
            • DustinB3403D
              DustinB3403
              last edited by DustinB3403

              @devops1 are you able to manually create the directory using /usr/bin/docker create --name etcdctl-binarycopy quay.io/coreos/etcd:v3.2.24

              Is that path correct /usr/bin/docker ?

              D 1 Reply Last reply Reply Quote 1
              • F
                flaxking
                last edited by

                Sounds like you can't retrieve the docker image from the quay.io docker registry
                Does it fail when you try to pull it in Docker directly?
                Docker image pull quay.io/coreos/etcd:v3.2.24

                Are you behind a proxy? I think that's the common issue for people who experience this error.

                D 2 Replies Last reply Reply Quote 0
                • D
                  devops1 @flaxking
                  last edited by

                  @flaxking
                  I am behind a proxy. I did not try to pull directly from docker but I will do it and update it. Thanks for the response.

                  1 Reply Last reply Reply Quote 0
                  • D
                    devops1 @flaxking
                    last edited by

                    @flaxking So, If I am behind the proxy how to solve this error? Pulling the docker image directly will knock out this error?

                    F stacksofplatesS 2 Replies Last reply Reply Quote 0
                    • F
                      flaxking @devops1
                      last edited by

                      @devops1 said in Kubernetes (Kubespray) Issue.:

                      @flaxking So, If I am behind the proxy how to solve this error? Pulling the docker image directly will knock out this error?

                      No, I think you might have to tell Docker the address of your proxy server. Probably either as an environment variable on your system or in the docker config file

                      D 1 Reply Last reply Reply Quote 0
                      • F
                        flaxking
                        last edited by

                        I've never done it, I just remember something about that when I was looking up the same message when I was having issues when hosting my own docker registry.

                        1 Reply Last reply Reply Quote 0
                        • D
                          devops1 @flaxking
                          last edited by devops1

                          @flaxking We are downloading all the images and putting up everything in the J frog artifactory and creating the repos in /etc/yum.repos which is pointing to the J frog artifactory where all our yum repos and etc will be located.

                          So, manually download the image and set it up to the J frog ?

                          1 Reply Last reply Reply Quote 0
                          • D
                            devops1 @DustinB3403
                            last edited by

                            @DustinB3403
                            Yes, I checked the path and /usr/bin/docker and it is there. /usr/bin/docker - where docker is not a directory but seems like a Binary file.

                            I did not understood this part in your comment - (are you able to manually create the directory using /usr/bin/docker create --name etcdctl-binarycopy quay.io/coreos/etcd:v3.2.24) .

                            What do you want me to create exactly?

                            1 Reply Last reply Reply Quote 0
                            • stacksofplatesS
                              stacksofplates @devops1
                              last edited by stacksofplates

                              @devops1 said in Kubernetes (Kubespray) Issue.:

                              @flaxking So, If I am behind the proxy how to solve this error? Pulling the docker image directly will knock out this error?

                              You need to add the systemd unit proxy settings under /etc/systemd/system/docker.service.d/http-proxy.conf

                              [Service]
                              Environment="HTTP_PROXY=http://theproxy.com"
                              Environment="HTTPS_PROXY=http://theproxy.com"
                              Environment="http_proxy=http://theproxy.com"
                              Environment="https_proxy=http://theproxy.com"
                              
                              D 1 Reply Last reply Reply Quote 3
                              • D
                                devops1 @stacksofplates
                                last edited by

                                @stacksofplates Thank you very much It works.

                                stacksofplatesS 1 Reply Last reply Reply Quote 1
                                • stacksofplatesS
                                  stacksofplates @devops1
                                  last edited by

                                  @devops1 said in Kubernetes (Kubespray) Issue.:

                                  @stacksofplates Thank you very much It works.

                                  No problem!

                                  1 Reply Last reply Reply Quote 0
                                  • 1 / 1
                                  • First post
                                    Last post