Skip to content

Commit

Permalink
fix: updates
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Kalashnykov <[email protected]>
  • Loading branch information
AndriyKalashnykov committed Nov 17, 2023
1 parent 3bef559 commit 1eb4f33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion k8s/golang-hello-world-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:

containers:
- name: golang-hello-world-web
image: fabianlee/docker-golang-hello-world-web:1.0.0
image: ghcr.io/andriykalashnykov/golang-web:v0.0.1
env:
# default variables available to be overridden
- name: APP_CONTEXT
Expand Down
4 changes: 3 additions & 1 deletion scripts/kind-deploy-app-golang-hello-world-web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ fi

cd $SCRIPT_PARENT_DIR

kind load docker-image ghcr.io/andriykalashnykov/golang-web:v0.0.1

echo "deploying golang-hello-world-web"
kubectl apply -f ./k8s/golang-hello-world-web.yaml

Expand All @@ -21,7 +23,7 @@ kubectl wait deployment -n default golang-hello-world-web --for condition=Availa

echo "waiting for golang-hello-world-web service to get External-IP"
until kubectl get service/golang-hello-world-web-service -n default --output=jsonpath='{.status.loadBalancer}' | grep "ingress"; do : ; done
service_ip=$(kubectl get services golang-hello-world-web-service -n default -o jsonpath="{.status.loadBalancer.ingress[0].ip}")
service_ip=$(kubectl get services golang-hello-world-web-service -n default -o jsonpath="{.status.loadloadBalancer.ingress[0].ip}")

curl -s ${service_ip}:8080/myhello/
curl -s ${service_ip}:8080/healthz
Expand Down

0 comments on commit 1eb4f33

Please sign in to comment.