Examples on Dianemo https://dianemo.autonomy.io/examples/ Recent content in Examples on Dianemo Hugo -- gohugo.io en-us Mon, 29 Oct 2018 19:40:55 -0700 AWS https://dianemo.autonomy.io/examples/aws/ Mon, 29 Oct 2018 19:40:55 -0700 https://dianemo.autonomy.io/examples/aws/ First, create the AMI: docker run \ --rm \ --volume $HOME/.aws/credentials:/root/.aws/credentials \ --env AWS_DEFAULT_PROFILE=${PROFILE} \ --env AWS_DEFAULT_REGION=${REGION} \ autonomy/dianemo:latest ami -var regions=${COMMA_SEPARATED_LIST_OF_REGIONS} Once the AMI is created, you can now start an EC2 instance using the AMI ID. Provide the proper configuration as the instance’s user data. An official Terraform module is currently being developed, stay tuned! KVM https://dianemo.autonomy.io/examples/kvm/ Mon, 29 Oct 2018 19:40:55 -0700 https://dianemo.autonomy.io/examples/kvm/ Install the Master Node On the KVM host, install a master node to an available block device: docker run \ --rm \ --privileged \ --volume /dev:/dev \ autonomy/dianemo:latest image -b /dev/sda -f -p bare-metal -u http://${IP}:8080/master.yaml http://${IP}:8080/master.yaml should be reachable by the VM and contain a valid master configuration file. virt-install \ -n master \ --description "Kubernetes master node." \ --os-type=Linux \ --os-variant=generic \ --virt-type=kvm \ --cpu=host \ --ram=4096 \ --vcpus=2 \ --disk path=/dev/sdc \ --network bridge=br0,model=e1000,mac=52:54:00:A8:4C:E1 \ --graphics none \ --boot hd \ --rng /dev/random Install a Worker Node Similarly, install a worker node to an available block device: