Skip to content

Commit

Permalink
It's my life and it's now or never
Browse files Browse the repository at this point in the history
  • Loading branch information
chzbrgr71 committed Apr 12, 2021
1 parent 1224591 commit cc931cb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export QUAKES_API_ROOT=http://localhost:3012/
### Docker Images

```bash
export IMAGE_TAG=v2.0
export IMAGE_TAG=v1.5

docker build -t chzbrgr71/data-api:$IMAGE_TAG ./app/data-api
docker push chzbrgr71/data-api:$IMAGE_TAG
Expand All @@ -39,19 +39,24 @@ docker push chzbrgr71/service-tracker-ui:$IMAGE_TAG
### Deploy in Kubernetes

```bash
kubectl apply -f ./k8s/mongodb.yaml
kubectl apply -f ./k8s/data-api.yaml
kubectl apply -f ./k8s/flights-api.yaml
kubectl apply -f ./k8s/quakes-api.yaml
kubectl apply -f ./k8s/weather-api.yaml
kubectl apply -f ./k8s/service-tracker-ui.yaml
kubectl apply -f ./k8s/mongodb.yaml -n tracker
kubectl apply -f ./k8s/data-api.yaml -n tracker
kubectl apply -f ./k8s/flights-api.yaml -n tracker
kubectl apply -f ./k8s/quakes-api.yaml -n tracker
kubectl apply -f ./k8s/weather-api.yaml -n tracker
kubectl apply -f ./k8s/service-tracker-ui.yaml -n tracker

kubectl delete -f ./k8s/mongodb.yaml
kubectl delete -f ./k8s/data-api.yaml
kubectl delete -f ./k8s/flights-api.yaml
kubectl delete -f ./k8s/quakes-api.yaml
kubectl delete -f ./k8s/weather-api.yaml
kubectl delete -f ./k8s/service-tracker-ui.yaml

kubectl run my-shell -n tracker --rm -i --tty --image ubuntu -- bash
kubectl run my-shell --rm -i --tty --image ubuntu -- bash
apt-get update
apt-get install dnsutils
```

### Hydra
Expand Down
4 changes: 2 additions & 2 deletions k8s/data-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
app: data-api
spec:
containers:
- image: chzbrgr71/data-api:v1.1
- image: chzbrgr71/data-api:v1.5
#- image: docker.pkg.github.com/chzbrgr71/service-tracker/data-api:v1.1
imagePullPolicy: Always
name: data-api
Expand All @@ -38,7 +38,7 @@ spec:
- name: MONGODB_PASSWORD
value: "dbpassword"
- name: MONGODB_IP
value: "mongodb"
value: "mongodb.tracker.svc.cluster.local"
- name: MONGODB_PORT
value: "27017"
ports:
Expand Down

0 comments on commit cc931cb

Please sign in to comment.