Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.