You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
4.8 KiB

  1. Configurable Parameters in Kargo
  2. ================================
  3. #### Generic Ansible variables
  4. You can view facts gathered by Ansible automatically
  5. [here](http://docs.ansible.com/ansible/playbooks_variables.html#information-discovered-from-systems-facts).
  6. Some variables of note include:
  7. * *ansible_user*: user to connect to via SSH
  8. * *ansible_default_ipv4.address*: IP address Ansible automatically chooses.
  9. Generated based on the output from the command ``ip -4 route get 8.8.8.8``
  10. #### Common vars that are used in Kargo
  11. * *calico_version* - Specify version of Calico to use
  12. * *calico_cni_version* - Specify version of Calico CNI plugin to use
  13. * *docker_version* - Specify version of Docker to used (should be quoted
  14. string)
  15. * *etcd_version* - Specify version of ETCD to use
  16. * *ipip* - Enables Calico ipip encapsulation by default
  17. * *hyperkube_image_repo* - Specify the Docker repository where Hyperkube
  18. resides
  19. * *hyperkube_image_tag* - Specify the Docker tag where Hyperkube resides
  20. * *kube_network_plugin* - Sets k8s network plugin (default Calico)
  21. * *kube_proxy_mode* - Changes k8s proxy mode to iptables mode
  22. * *kube_version* - Specify a given Kubernetes hyperkube version
  23. * *searchdomains* - Array of DNS domains to search when looking up hostnames
  24. * *nameservers* - Array of nameservers to use for DNS lookup
  25. #### Addressing variables
  26. * *ip* - IP to use for binding services (host var)
  27. * *access_ip* - IP for other hosts to use to connect to. Often required when
  28. deploying from a cloud, such as OpenStack or GCE and you have separate
  29. public/floating and private IPs.
  30. * *ansible_default_ipv4.address* - Not Kargo-specific, but it is used if ip
  31. and access_ip are undefined
  32. * *loadbalancer_apiserver* - If defined, all hosts will connect to this
  33. address instead of localhost for kube-masters and kube-master[0] for
  34. kube-nodes. See more details in the
  35. [HA guide](https://github.com/kubernetes-incubator/kargo/blob/master/docs/ha-mode.md).
  36. * *loadbalancer_apiserver_localhost* - makes all hosts to connect to
  37. the apiserver internally load balanced endpoint. Mutual exclusive to the
  38. `loadbalancer_apiserver`. See more details in the
  39. [HA guide](https://github.com/kubernetes-incubator/kargo/blob/master/docs/ha-mode.md).
  40. #### Cluster variables
  41. Kubernetes needs some parameters in order to get deployed. These are the
  42. following default cluster paramters:
  43. * *cluster_name* - Name of cluster (default is cluster.local)
  44. * *domain_name* - Name of cluster DNS domain (default is cluster.local)
  45. * *kube_network_plugin* - Plugin to use for container networking
  46. * *kube_service_addresses* - Subnet for cluster IPs (default is
  47. 10.233.0.0/18). Must not overlap with kube_pods_subnet
  48. * *kube_pods_subnet* - Subnet for Pod IPs (default is 10.233.64.0/18). Must not
  49. overlap with kube_service_addresses.
  50. * *kube_network_node_prefix* - Subnet allocated per-node for pod IPs. Remainin
  51. bits in kube_pods_subnet dictates how many kube-nodes can be in cluster.
  52. * *dns_setup* - Enables dnsmasq
  53. * *dns_server* - Cluster IP for dnsmasq (default is 10.233.0.2)
  54. * *skydns_server* - Cluster IP for KubeDNS (default is 10.233.0.3)
  55. * *cloud_provider* - Enable extra Kubelet option if operating inside GCE or
  56. OpenStack (default is unset)
  57. * *kube_hostpath_dynamic_provisioner* - Required for use of PetSets type in
  58. Kubernetes
  59. Note, if cloud providers have any use of the ``10.233.0.0/16``, like instances'
  60. private addresses, make sure to pick another values for ``kube_service_addresses``
  61. and ``kube_pods_subnet``, for example from the ``172.18.0.0/16``.
  62. #### DNS variables
  63. By default, dnsmasq gets set up with 8.8.8.8 as an upstream DNS server and all
  64. other settings from your existing /etc/resolv.conf are lost. Set the following
  65. variables to match your requirements.
  66. * *upstream_dns_servers* - Array of upstream DNS servers configured on host in
  67. addition to Kargo deployed DNS
  68. * *nameservers* - Array of DNS servers configured for use in dnsmasq
  69. * *searchdomains* - Array of up to 4 search domains
  70. * *skip_dnsmasq* - Don't set up dnsmasq (use only KubeDNS)
  71. For more information, see [DNS
  72. Stack](https://github.com/kubernetes-incubator/kargo/blob/master/docs/dns-stack.md).
  73. #### Other service variables
  74. * *docker_options* - Commonly used to set
  75. ``--insecure-registry=myregistry.mydomain:5000``
  76. * *http_proxy/https_proxy/no_proxy* - Proxy variables for deploying behind a
  77. proxy
  78. * *kubelet_load_modules* - For some things, kubelet needs to load kernel modules. For example,
  79. dynamic kernel services are needed for mounting persistent volumes into containers. These may not be
  80. loaded by preinstall kubernetes processes. For example, ceph and rbd backed volumes. Set this variable to
  81. true to let kubelet load kernel modules.
  82. #### User accounts
  83. Kargo sets up two Kubernetes accounts by default: ``root`` and ``kube``. Their
  84. passwords default to changeme. You can set this by changing ``kube_api_pwd``.