Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Create 4 instances; r1.medium; CloudCore835CoreOSAlpha
  • Associate key
  • Enable ssh, k8 nodeport
  • Associate floating IPs with all nodes

...

  • Local host must have git, ansible client
  • Enable authorized_keys on each node
  • ssh-keygen
  • For each node
    • edit /etc/hosts, add localhost entry
    • scp key core@node:/tmp
    • ssh core@node update-ssh-keys -a name /tmp/key
  • https://github.com/kubernetes/contrib
  • cd contrib/ansible
  • Edit inventory – by default, only works with a single master config due to limitation in ./roles/kubernetes/tasks/gen_certs.yml

[masters]
172192.16168.1100.16963

[etcd:children]
masters

[nodes]
172192.16168.1100.17064
172192.16168.1100.17165
172192.16168.1100.17266

  • Edit group_vars/all.yml, change the following settings:
    • ansible_ssh_user: core
    • ansible_python_interpreter: "PATH=/opt/bin:$PATH python"
    • kube-ui: true?
    • kube-dash: true?
    • Change Might need to change flannel default network, if on NDSLabs Dev project
  • ./setup.sh
  • git clone https://github.com/craig-willis/ndslabs-startup
  • cd ndslabs-startup
  • Edit ndslabs/apiserver.yaml
    • Change latest > dev (this build has token authentication support for API server)
    • Change etcd port to 2379
    • Change k8 port to 443
  • ./ndslabs-startup.sh
    • Change prompted IP address to IP of one node (since we don't have LB)
  • Open browser to 
    • IP address of some node :30000