kubernetes/cluster/aws/templates
Eric Tune 9044177bb6 Generate a token for kube-proxy.
Tested on GCE.
Includes untested modifications for AWS and Vagrant.
No changes for any other distros.
Probably will work on other up-to-date providers
but beware.  Symptom would be that service proxying
stops working.

 1. Generates a token kube-proxy in AWS, GCE, and Vagrant setup scripts.
 1. Distributes the token via salt-overlay, and salt to /var/lib/kube-proxy/kubeconfig
 1. Changes kube-proxy args:
   - use the --kubeconfig argument
   - changes --master argument from http://MASTER:7080 to https://MASTER
     - http -> https
     - explicit port 7080 -> implied 443

Possible ways this might break other distros:

Mitigation: there is an default empty kubeconfig file.
If the distro does not populate the salt-overlay, then
it should get the empty, which parses to an empty
object, which, combined with the --master argument,
should still work.

Mitigation:
  - azure: Special case to use 7080 in
  - rackspace: way out of date, so don't care.
  - vsphere: way out of date, so don't care.
  - other distros: not using salt.
2015-04-27 08:59:57 -07:00
..
iam Update IAM permissions for minion, to allow EBS 2015-04-10 13:25:42 -07:00
common.sh Copy download-or-bust helper from gce to aws 2015-03-04 16:30:11 -05:00
create-dynamic-salt-files.sh Generate a token for kube-proxy. 2015-04-27 08:59:57 -07:00
download-release.sh Copy download-or-bust helper from gce to aws 2015-03-04 16:30:11 -05:00
format-disks.sh AWS: Move /var/lib/kubelet to /mnt 2015-04-17 06:46:08 -07:00
salt-master.sh AWS: master should download salt using SSL 2015-04-18 12:38:52 -07:00
salt-minion.sh AWS: Set hostname_override for minions, back to fully-qualified name 2015-04-22 11:28:53 -07:00