Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gailo22/payment-service
Spring boot java, kubernetes
https://github.com/gailo22/payment-service
hacktoberfest hacktoberfest2020 hactoberfest2023 kubernetes microservices mongodb sprintboot
Last synced: 16 days ago
JSON representation
Spring boot java, kubernetes
- Host: GitHub
- URL: https://github.com/gailo22/payment-service
- Owner: gailo22
- Created: 2019-10-25T04:45:27.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-01T15:04:32.000Z (about 1 year ago)
- Last Synced: 2024-10-19T07:53:26.248Z (2 months ago)
- Topics: hacktoberfest, hacktoberfest2020, hactoberfest2023, kubernetes, microservices, mongodb, sprintboot
- Language: Java
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Payment Service application
### Build jar
```
$ ./gradlew build```
### Run mongodb service
```
$ openssl rand -base64 741 > key.txt$ kubectl create secret generic shared-bootstrap-data --from-file=internal-auth-mongodb-keyfile=key.txt
$ kubectl exec -it mongod-0 -c mongod-container bash
$ mongo
```
### Build docker image
```
$ eval $(minikube docker-env)$ docker build -t payment-service .
$ docker run -v ${PWD}/tmp:/tmp -p 9090:8080 payment-service
```
### Deploy to Kubernetes
```
$ kubectl run payment-service --image=payment-service --replicas=1$ kubectl apply -f workloads.yml
$ kubectl apply -f services.yml
or
$ kubectl expose deployment payment --type=NodePort
```### Access service via minikube
```
$ minikube service payment --url
http://192.168.99.100:30230$ curl http://192.168.99.100:30230/pay/123
```