Giter Site home page Giter Site logo

githubixx / ansible-role-kubernetes-controller Goto Github PK

View Code? Open in Web Editor NEW
22.0 5.0 7.0 141 KB

Ansible role for installing Kubernetes Controller Cluster

Home Page: https://www.tauceti.blog/post/kubernetes-the-not-so-hard-way-with-ansible-control-plane/

License: GNU General Public License v3.0

Jinja 100.00%
ansible kubernetes-controller kubernetes kubernetes-scheduler kubernetes-api ansible-role control-plane k8s

ansible-role-kubernetes-controller's People

Contributors

fjmulero avatar githubixx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ansible-role-kubernetes-controller's Issues

Fails at the 8080 port check

Hey there, I've updated my cluster recently and it seems to get stuck on this:

- name: Wait for kube-apiserver to listen on port 8080 on the host
  wait_for:
    port: 8080
    delay: 5
    host: "{{hostvars[inventory_hostname]['ansible_' + k8s_interface].ipv4.address}}"
  run_once: true
  delegate_to: "{{groups.k8s_controller|first}}"

I wonder if this has anything to do with

removed deprecated kube-apiserver parameter insecure-bind-address (see: #59018)

from your blog post changelog.
kube-apiserver seems to be binding :8080 to localhost for me, so this check is never successful.

error invalid configuration kind "EncryptionConfiguration" provided

In the task TASK [ansible-role-kubernetes-controller : Apply kube-apiserver-to-kubelet ClusterRole]
I am getting

fatal: [scw1.vpn -> scw1.kisiel.net.pl]: FAILED! => {
"changed": true,
"cmd": "kubectl apply --kubeconfig /var/lib/kubernetes/admin.kubeconfig -f /tmp/kube-apiserver-to-kubelet_cluster_role.yaml",
"delta": "0:00:00.157014",
"end": "2019-01-15 22:16:29.965552",
"invocation": {
"module_args": {
"_raw_params": "kubectl apply --kubeconfig /var/lib/kubernetes/admin.kubeconfig -f /tmp/kube-apiserver-to-kubelet_cluster_role.yaml",
"_uses_shell": true,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"warn": true
}
},
"msg": "non-zero return code",
"rc": 1,
"start": "2019-01-15 22:16:29.808538",
"stderr": "error: unable to recognize "/tmp/kube-apiserver-to-kubelet_cluster_role.yaml": Get https://10.18.0.111:6443/api?timeout=32s: dial tcp 10.18.0.111:6443: connect: connection refused",
"stderr_lines": [
"error: unable to recognize "/tmp/kube-apiserver-to-kubelet_cluster_role.yaml": Get https://10.18.0.111:6443/api?timeout=32s: dial tcp 10.18.0.111:6443: connect: connection refused"
],
"stdout": "",
"stdout_lines": []
}

Please help
What could have gone wrong?
I mean I can see that tcp 10.18.0.111:6443 is failing
and yes, there is nothing listening on 6443
the host is pingable on 10.18.0.111

Question about scheduler and controller-manager binding

So as you might have guessed, I'm facing this problem.

screen shot 2018-05-14 at 17 25 32

What if I care about not binding my cluster on all interfaces? Is this only a kubectl status display issue or will this prevent nominal operations going further?

FYI, I have installed k8s v1.9.7 (didn't want to deviate too much from the versions in the tutorials). I'll try the 1.10.x branch later while trying to update my cluster. So I don't know if the problem is fixed in v1.10.x but I guess not since it is still opened.

Thanks again for all the great work and documentation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.