You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

 

Prototype steps

On Nebula

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

On local host:

  • 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]
172.16.1.169

[etcd:children]
masters

[nodes]
172.16.1.170
172.16.1.171
172.16.1.172

  • 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 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)
  • ./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
  • No labels