- Make a Packet account (or reuse an existing one)
- Make a new Project.
- Projects are tied to a payment method, so you may choose to use an existing one, just be aware that you shouldn't use the convenient
./provision packet delete --all
to decommission a cluster as it may remove other instances you care about it.
- Projects are tied to a payment method, so you may choose to use an existing one, just be aware that you shouldn't use the convenient
- Make (or re-use) a Packet API key: https://app.packet.net/portal#/api-keys
In a terminal, run the following commands to download KET, and configure the environment variables required for Packet.net.
You need to grab your Packet API Key and project's ID. The project ID will be part of the URL when you browse your project, and look like this: 12345678-1234-5678-90ab-cdef12345678
# Make a new directory for Kismatic and make it the working dir
mkdir ~/kismatic
cd ~/kismatic
# Download and unpack KET
wget -O - https://kismatic-installer.s3-accelerate.amazonaws.com/latest-darwin/kismatic.tar.gz | tar -zx
# Setup Packet.net environment variables
export PACKET_API_KEY=YOURAPIKEY
export PACKET_PROJECT_ID=YOURPROJECTID
- Create an SSH Keypair and copy the public key:
# Create a new SSH keypair
ssh-keygen -t rsa -f kismatic-packet.pem -N ""
# Copy public key to clipboard
cat kismatic-packet.pem.pub | pbcopy
-
Upload the public key to Packet.net on their new SSH key page
-
Set the path to the SSH private key
export PACKET_SSH_KEY_PATH=$(PWD)/kismatic-packet.pem
Set the path to the SSH private key
export PACKET_SSH_KEY_PATH=ABSOLUTE_PATH_TO_SSH_KEY
./provision packet create
./kismatic install apply -f kismatic-cluster.yaml
./provision packet delete --all