Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antoniogamiz/microservice-basic-example
Basic example for the first touch of a micro service project.
https://github.com/antoniogamiz/microservice-basic-example
Last synced: 6 days ago
JSON representation
Basic example for the first touch of a micro service project.
- Host: GitHub
- URL: https://github.com/antoniogamiz/microservice-basic-example
- Owner: antoniogamiz
- License: gpl-3.0
- Created: 2021-06-29T18:55:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-05T17:56:25.000Z (over 3 years ago)
- Last Synced: 2024-10-30T01:39:49.260Z (about 2 months ago)
- Language: JavaScript
- Size: 230 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# microservice-basic-example
Basic example for the first touch of a micro service project.~~~
kubectl apply -f posts.yaml
kubectl get pods
kubectl exec -it [pod_name] [cmd]
kubectl logs [pod_name]
kubectl delete pod [pod_name]
kubectl apply -f [config file name]
kubectl desscribe pod [pod_name]kubectl get deployments
kubectl descripe deployment [depl name]
kubectl apply -f [config file name]
kubectl applt -f .
kubectl delete deployment [depl name]kubectl rollout restart deployment [depl name]
~~~Recommended alias:
~~~
alias k = kubectl
alias dps="docker ps"
~~~You will need this command to be run in every terminal you open: ([+info](https://minikube.sigs.k8s.io/docs/commands/docker-env/))
~~~
minikube start
eval $(minikube docker-env)
minikube ip
~~~**Important:** you need to build the container _after_ running that command _and_ from the same terminal.