This is a simple tutorial to demonstrate how to use DevSpace to deploy a simple Go application to Kubernetes.
make createCluster
If you are done with the cluster, you can delete it with:
make deleteCluster
devspace build
devspace deploy
Port forward the service to access the application:
kubectl port-forward svc/mydemo-service 3333:8080
curl http://localhost:3333/articles
curl http://localhost:3333/article/{id}
curl -X POST http://localhost:3333/article -H "Content-Type: application/json" -d '{
"Id": "3",
"Title": "New Article",
"Desc": "New Article Description",
"Content": "New Article Content"
}'
curl -X DELETE http://localhost:3333/article/3
devspace dev
# in the new terminal
make debug
Now connect to the debugger remotely to localhost:2345 in your IDE.
Building the slides:
make slides