CSCI-GA-2820-FA23-003 / promotions

NYU DevOps Promotions Service Fall 2023-003
Apache License 2.0
1 stars 0 forks source link

k8s withtout endpoint #75

Closed KAIwangke closed 9 months ago

KAIwangke commented 9 months ago

Please review the PR and see if this works on your computer:

Step 1 copypaste to terminal would make it ready for the kc

docker kill $(docker ps -q)
docker rm $(docker ps -aq)
docker system prune --volumes -f
docker volume rm $(docker volume ls -q)

minikube start
echo "127.0.0.1 cluster-registry.local" | sudo tee -a /etc/hosts &&
k3d cluster delete my-cluster &&
k3d cluster create my-cluster --registry-create cluster-registry.local:32000 &&
docker build -t promotions:1.0 . &&
docker tag promotions:1.0 cluster-registry.local:32000/promotions:1.0 &&
docker push cluster-registry.local:32000/promotions:1.0

Step 2 copypaste to terminal see if 2 pods working without complain

kubectl create secret generic postgres-creds --from-literal=POSTGRES_PASSWORD=bXlwYXNzd2Rmb3Jwcm9tb3Rpb250ZWFt --from-literal=uri=cG9zdGdyZXNxbDovL3Bvc3RncmVzOnBvc3RncmVzQHBvc3RncmVzOjY2NjYvcG9zdGdyZXM= &&
kubectl apply -f k8s/ &&
kc get all
codecov[bot] commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (9dfefb7) 96.64% compared to head (8424d2e) 96.66%. Report is 2 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #75 +/- ## ========================================== + Coverage 96.64% 96.66% +0.01% ========================================== Files 8 8 Lines 537 540 +3 ========================================== + Hits 519 522 +3 Misses 18 18 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.