TritonDataCenter / triton-kubernetes

Kubernetes on Triton
Mozilla Public License 2.0
183 stars 44 forks source link

Allow node creation via config and add --non-interactive flag #79

Closed nimajalali closed 6 years ago

nimajalali commented 6 years ago

Allow users to specify --non-interactive, which will exit if a required parameter is not given in the config file.

Allow users to create nodes via config. Example yaml below:

cluster_manager: test

cluster_cloud_provider: triton
name: test
k8s_plane_isolation: required
private_registry: ""
k8s_registry: ""
triton_account: nima@jalali.net
triton_key_path: ~/.ssh/id_rsa
triton_key_id: 68:9f:9a:c4:76:3a:f4:62:77:47:3e:47:d4:34:4a:b7
triton_url: https://us-east-1.api.joyent.com

nodes:
  - node_count: 3
    rancher_host_label: etcd
    hostname: test-etcd
    triton_network_names:
      - Joyent-SDC-Public
    triton_image_name: ubuntu-certified-16.04
    triton_image_version: 20180109
    triton_ssh_user: ubuntu
    triton_machine_package: k4-highcpu-kvm-1.75G
  - node_count: 3
    rancher_host_label: orchestration
    hostname: test-orch
    triton_network_names:
      - Joyent-SDC-Public
    triton_image_name: ubuntu-certified-16.04
    triton_image_version: 20180109
    triton_ssh_user: ubuntu
    triton_machine_package: k4-highcpu-kvm-1.75G
  - node_count: 1
    rancher_host_label: compute
    hostname: test-compute
    triton_network_names:
      - Joyent-SDC-Public
    triton_image_name: ubuntu-certified-16.04
    triton_image_version: 20180109
    triton_ssh_user: ubuntu
    triton_machine_package: k4-highcpu-kvm-1.75G

@fayazg