Examples on Talos https://talos.autonomy.io/examples/ Recent content in Examples on Talos Hugo -- gohugo.io en-us Mon, 29 Oct 2018 19:40:55 -0700 AWS https://talos.autonomy.io/examples/aws/ Mon, 29 Oct 2018 19:40:55 -0700 https://talos.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/talos: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! Google Cloud https://talos.autonomy.io/examples/gcloud/ Mon, 01 Jan 0001 00:00:00 +0000 https://talos.autonomy.io/examples/gcloud/ First, create the Google Cloud compatible image: make image-gcloud Upload the image with: gsutil cp /path/to/talos/build/gcloud/talos.tar.gz gs://<gcloud bucket name> Create a custom google cloud image with: gcloud compute images create talos --source-uri=gs://<gcloud bucket name>/talos.tar.gz --guest-os-features=VIRTIO_SCSI_MULTIQUEUE Create an instance in google cloud, making sure to create a user-data key in the “Metadata” section, with a value of your full talos node configuration. Note: Further exploration is needed to see if we can use the “Startup script” section instead. KVM https://talos.autonomy.io/examples/kvm/ Mon, 29 Oct 2018 19:40:55 -0700 https://talos.autonomy.io/examples/kvm/ Creating a Master Node On the KVM host, install a master node to an available block device: docker run \ --rm \ --privileged \ --volume /dev:/dev \ autonomy/talos:latest image -b /dev/sdb -f -p bare-metal -u http://${IP}:8080/master.yaml Note: http://${IP}:8080/master.yaml should be reachable by the VM and contain a valid master configuration file. Now, create the VM: virt-install \ -n master \ --description "Kubernetes master node." \ --os-type=Linux \ --os-variant=generic \ --virt-type=kvm \ --cpu=host \ --vcpus=2 \ --ram=4096 \ --disk path=/dev/sdb \ --network bridge=br0,model=e1000,mac=52:54:00:A8:4C:E1 \ --graphics none \ --boot hd \ --rng /dev/random Creating a Worker Node On the KVM host, install a worker node to an available block device: Xen https://talos.autonomy.io/examples/xen/ Tue, 06 Nov 2018 06:25:46 -0800 https://talos.autonomy.io/examples/xen/ Creating a Master Node On Dom0, install Talos to an available block device: docker run \ --rm \ --privileged \ --volume /dev:/dev \ autonomy/talos:latest image -b /dev/sdb Save the following as /etc/xen/master.cfg name = "master" builder='hvm' bootloader = "/bin/pygrub" firmware_override = "/usr/lib64/xen/boot/hvmloader" vcpus=2 memory = 4096 serial = "pty" kernel = "/var/lib/xen/talos/vmlinuz" ramdisk = "/var/lib/xen/talos/initramfs.xz" disk = [ 'phy:/dev/sdb,xvda,w', ] vif = [ 'mac=52:54:00:A8:4C:E1,bridge=xenbr0,model=e1000', ] extra = "consoleblank=0 console=hvc0 console=tty0 console=ttyS0,9600 talos.