Status: IN PROGRESS
Implement voting system like that:
User voting-system votes-service H2 or PG
*/ +----+ +-------+ +----+
/| <----> | UI | <-----> | Store | <-----> | DB |
/ \ +----+ +-------+ +----+
HTTP RSocket R2DBC
Install k8s cluster with Rancher tools: k3d + k3s if you don't have DOcker for Mac or Windows:
# start docker...
brew reinstall k3d
k3d create --api-port 6551 --publish 80:80 --workers 2
# ...
export KUBECONFIG="$(k3d get-kubeconfig --name='k3s-default')"
# ...
k3d stop
k3d delete
Install and configure Kubernetes Dashboard if you need:
brew reinstall kubernetes-cli
- deploy k8s dashboard in k8s in Docker for Mac:
apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml
- copy token:
kubectl -n kube-system describe secrets kubernetes-dashboard-token-... | grep 'token:' | awk '{print $2}'
- start proxy
kubectl proxy
- open k8s dashboard and login using token from previous step:
http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/
brew reinstall skaffold
skaffold dev # or skaffold run --tail
# ...
skaffold delete
Before deploy to public cloud, you need build and push docker images...
./mvnw clean test jib:build
- https://github.com/daggerok/spring-5-examples/blob/0a4468ac5c0544b527c00246b0c3702e53651598/reactor-processors/flux-sink/src/main/java/daggerok/FluxSinkApplication.java
- https://www.jetbrains.com/help/idea/http-client-in-product-code-editor.html
- https://kubernetes.github.io/ingress-nginx/examples/
- YouTube: Dead Easy Kubernetes Workflow (Cloud Next '19)
- Docker k8s: part 1
- Docker k8s: part 2
- kubernetes/dashboard#2954 (comment)
- https://www.youtube.com/watch?v=rMB1YXU8vAc
- https://rominirani.com/tutorial-getting-started-with-kubernetes-with-docker-on-mac-7f58467203fd
- Official Apache Maven documentation
- Spring Boot Maven Plugin Reference Guide
- Spring Configuration Processor