Skip to content

Instantly share code, notes, and snippets.

@emsesc
Created August 16, 2021 21:22
Show Gist options
  • Save emsesc/f8accadfb3971103d488a4920dc20c83 to your computer and use it in GitHub Desktop.
Save emsesc/f8accadfb3971103d488a4920dc20c83 to your computer and use it in GitHub Desktop.
Deploy tinyhats on K8s

You should save the access key ID and secret access key in a file named ~/.aws/credentials as follows:

[default]
aws_access_key_id=[access-key-id]
aws_secret_access_key=[secret-access-key]

Make sure you have kubectl and eksctl installed before you proceed

Next, create the cluster. Note: This may take awhile, so sit tight!

eksctl create cluster --region=us-east-2 --name=tinyhats

Once it finishes running, download the kube folder. Navigate to the directory where the kube folder is and run:

kubectl apply -f kube

Finally, run kubectl get pods --watch to see when everything is finished spinning up. To test, run kubectl get services and copy the URI corresponding to the gateway-service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment