This is an example of how to configure and deploy a development environment that includes polyglot microservices, an AWS SQS queue, and an S3 bucket. This sample uses LocalStack to mock the AWS interface, to keep costs down and keep it simple.
- Okteto CLI 2.19 or newer
- A Kubernetes cluster
If you don't have access to a Kubernetes cluster, you can also run this sample in the free tier of Okteto Just run
okteto context use https://cloud.okteto.com
$ git clone https://github.com/rberrelleza/tacoshop
$ cd tacoshop
$ okteto context use $YOUR_KUBERNETES_CONTEXT
$ okteto deploy
By default, the services use ClusterIPs. To access them, you can use kubectl port-forward
, `kubefwd``, or your favorite tool.
If you're using kubefwd
, run sudo -E kubefwd svc -n default
. The services will be available in the following URLs:
$ okteto up menu
$ okteto up kitchen
$ okteto up check
This isn't an example of a properly architected perfectly designed distributed app... it's a simple example of the various types of pieces and languages you might see (queues, persistent data, etc), and how to deal with them using okteto.