The following sets up a local k3d cluster and deploys Postgres and Hasura GraphQL Engine.
NOTE: All data will be lost when containers restart
# Create the cluster mapping NodePorts to Host ports and set KUBECONFIG
k3d create --publish 5432:30032 --publish 8080:30080 --workers 2
export KUBECONFIG="$(k3d get-kubeconfig --name='k3s-default')"
# Deploy postgres
kubectl apply -f postgres.yaml
# Deploy graphql-engine
kubectl apply -f graphql-engine.yaml
# Check that it works
hasura console