docker run -d --name pg-image-metadata -e POSTGRES_USER=dbuser -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=image-metadata -p 5432:5432 postgres:13
mvn clean package
cd api/target
java -jar image-catalog-api-1.0.0-SNAPSHOT.jar
Available at: localhost:8080/v1/images
docker build -t novaslika .
docker images
docker run novaslika
docker tag novaslika prporso/novaslika
docker push prporso/novaslika
docker network ls
docker network rm rso
docker network create rso
docker run -d --name pg-image-metadata -e POSTGRES_USER=dbuser -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=image-metadata -p 5432:5432 --network rso postgres:13
docker inspect pg-image-metadata
docker run -p 8080:8080 --network rso -e KUMULUZEE_DATASOURCES0_CONNECTIONURL=jdbc:postgresql://pg-image-metadata:5432/image-metadata prporso/image-catalog:2022-11-14-12-45-13
kubectl version
kubectl --help
kubectl get nodes
kubectl create -f image-catalog-deployment.yaml
kubectl apply -f image-catalog-deployment.yaml
kubectl get services
kubectl get deployments
kubectl get pods
kubectl logs image-catalog-deployment-6f59c5d96c-rjz46
kubectl delete pod image-catalog-deployment-6f59c5d96c-rjz46
Kubernetes secrets configuration: https://kubernetes.io/docs/tasks/configmap-secret/managing-secret-using-kubectl/
kubectl create secret generic pg-pass --from-literal=password=mypassword
kubectl get secrets
kubectl describe secret pg-pass