Skip to content
  1. Nov 23, 2017
    • Bogdan Dobrelya's avatar
      Defaults for apiserver_loadbalancer_domain_name (#1993) · 8aafe643
      Bogdan Dobrelya authored
      
      
      * Defaults for apiserver_loadbalancer_domain_name
      
      When loadbalancer_apiserver is defined, use the
      apiserver_loadbalancer_domain_name with a given default value.
      
      Fix unconsistencies for checking if apiserver_loadbalancer_domain_name
      is defined AND using it with a default value provided at once.
      
      Signed-off-by: default avatarBogdan Dobrelya <bogdando@mail.ru>
      
      * Define defaults for LB modes in common defaults
      
      Adjust the defaults for apiserver_loadbalancer_domain_name and
      loadbalancer_apiserver_localhost to come from a single source, which is
      kubespray-defaults. Removes some confusion and simplefies the code.
      
      Signed-off-by: default avatarBogdan Dobrelya <bogdando@mail.ru>
      8aafe643
  2. Nov 14, 2017
  3. Nov 07, 2017
    • Chad Swenson's avatar
      Support for disabling apiserver insecure port · 0c7e1889
      Chad Swenson authored
      This allows `kube_apiserver_insecure_port` to be set to 0 (disabled). It's working, but so far I have had to:
      
      1. Make the `uri` module "Wait for apiserver up" checks use `kube_apiserver_port` (HTTPS)
      2. Add apiserver client cert/key to the "Wait for apiserver up" checks
      3. Update apiserver liveness probe to use HTTPS ports
      4. Set `kube_api_anonymous_auth` to true to allow liveness probe to hit apiserver's /healthz over HTTPS (livenessProbes can't use client cert/key unfortunately)
      5. RBAC has to be enabled. Anonymous requests are in the `system:unauthenticated` group which is granted access to /healthz by one of RBAC's default ClusterRoleBindings. An equivalent ABAC rule could allow this as well.
      
      Changes 1 and 2 should work for everyone, but 3, 4, and 5 require new coupling of currently independent configuration settings. So I also added a new settings check.
      
      Options:
      
      1. The problem goes away if you have both anonymous-auth and RBAC enabled. This is how kubeadm does it. This may be the best way to go since RBAC is already on by default but anonymous auth is not.
      2. Include conditional templates to set a different liveness probe for possible combinations of `kube_apiserver_insecure_port = 0`, RBAC, and `kube_api_anonymous_auth` (won't be possible to cover every case without a guaranteed authorizer for the secure port)
      3. Use basic auth headers for the liveness probe (I really don't like this, it adds a new dependency on basic auth which I'd also like to leave independently configurable, and it requires encoded passwords in the apiserver manifest)
      
      Option 1 seems like the clear winner to me, but is there a reason we wouldn't want anonymous-auth on by default? The apiserver binary defaults anonymous-auth to true, but kubespray's default was false.
      0c7e1889
  4. Nov 05, 2017
  5. Nov 03, 2017
    • Günther Grill's avatar
      Workaround ansible bug where access var via dict doesn't get real value (#1912) · 01957255
      Günther Grill authored
      * Change deprecated vagrant ansible flag 'sudo' to 'become'
      
      * Workaround ansible bug where access var via dict doesn't get real value
      
      When accessing a variable via it's name "{{ foo }}" its value is
      retrieved. But when the variable value is retrieved via the vars-dict
      "{{ vars['foo'] }}" this doesn't resolve the expression of the variable
      any more due to a bug. So e.g. a expression foo="{{ 1 == 1 }}" isn't
      longer resolved but just returned as string "1 == 1".
      
      * Make file yamllint complient
      01957255
  6. Nov 02, 2017
  7. Oct 30, 2017
  8. Oct 27, 2017
  9. Oct 26, 2017
    • abelgana's avatar
      Sysctl reload if needed after IP forward enabling · d9160f19
      abelgana authored
      Add reload yes to reload sysctl if the value of net.ipv4.ip_forward changes.
      
      - name: Enable ip forwarding
        sysctl:
          sysctl_file: "{{sysctl_file_path}}"
          name: net.ipv4.ip_forward
          value: 1
          state: present
          reload: yes
        tags:
          - bootstrap-os
      d9160f19
  10. Oct 20, 2017
  11. Oct 18, 2017
    • pmontanari's avatar
      Update main.yml (#1822) · 20d80311
      pmontanari authored
      * Update main.yml
      
      Needs to set up resolv.conf before updating Yum cache otherwise no name resolution available (resolv.conf empty).
      
      * Update main.yml
      
      Removing trailing spaces
      20d80311
  12. Oct 17, 2017
  13. Oct 16, 2017
  14. Oct 11, 2017
    • Vijay Katam's avatar
      Rename dns_server, add var for selinux. (#1572) · 27ed73e3
      Vijay Katam authored
      * Rename dns_server to dnsmasq_dns_server so that it includes role prefix
      as the var name is generic and conflicts when integrating with existing ansible automation.
      *  Enable selinux state to be configurable with new var preinstall_selinux_state
      27ed73e3
    • Matthew Mosesohn's avatar
      Improve proxy (#1771) · eb0dcf60
      Matthew Mosesohn authored
      * Set no_proxy to all local ips
      
      * Use proxy settings on all necessary tasks
      eb0dcf60
  15. Oct 06, 2017
  16. Oct 05, 2017
  17. Oct 04, 2017
  18. Sep 29, 2017
  19. Sep 27, 2017
  20. Sep 25, 2017
  21. Sep 13, 2017
    • Matthew Mosesohn's avatar
      kubeadm support (#1631) · 67447260
      Matthew Mosesohn authored
      * kubeadm support
      
      * move k8s master to a subtask
      * disable k8s secrets when using kubeadm
      * fix etcd cert serial var
      * move simple auth users to master role
      * make a kubeadm-specific env file for kubelet
      * add non-ha CI job
      
      * change ci boolean vars to json format
      
      * fixup
      
      * Update create-gce.yml
      
      * Update create-gce.yml
      
      * Update create-gce.yml
      67447260
  22. Sep 10, 2017
  23. Aug 28, 2017
  24. Aug 24, 2017
    • Brad Beam's avatar
      Adding yamllinter to ci steps (#1556) · 8b151d12
      Brad Beam authored
      * Adding yaml linter to ci check
      
      * Minor linting fixes from yamllint
      
      * Changing CI to install python pkgs from requirements.txt
      
      - adding in a secondary requirements.txt for tests
      - moving yamllint to tests requirements
      8b151d12
  25. Aug 20, 2017
  26. Jul 20, 2017
  27. Jul 17, 2017
  28. Jun 30, 2017
  29. Jun 16, 2017
  30. Apr 26, 2017
  31. Apr 20, 2017
  32. Mar 17, 2017
  33. Mar 15, 2017
  34. Mar 06, 2017
Loading