@@ -69,8 +69,8 @@ The following implementations are provided:
6969``` sh
7070docker login --username ${DOCKER_USERNAME}
7171docker build -t fibonacci_rust:latest .
72- docker tag fibonacci_rust:latest ${DOCKER_USERNAME} /fibonacci_rust:v24
73- docker push ${DOCKER_USERNAME} /fibonacci_rust:v24
72+ docker tag fibonacci_rust:latest ${DOCKER_USERNAME} /fibonacci_rust:${DOCKER_TAG}
73+ docker push ${DOCKER_USERNAME} /fibonacci_rust:${DOCKER_TAG}
7474```
7575
7676## 1. Deploying the Application to Kubernetes via Terraform
@@ -90,7 +90,7 @@ terraform validate
9090```
9191
9292``` sh
93- terraform apply
93+ terraform apply -var= " docker_username=your_docker_username " -var= " docker_image_tag=your_docker_image_tag "
9494```
9595
9696- Once all resources are deployed you can start the minikube service to access the application.
@@ -133,7 +133,7 @@ imagePullSecrets:
133133> [!TIP]
134134> Navigate to the fibonacci/ directory and install the Helm chart for the first time:
135135` ` ` sh
136- helm install fibonacci .
136+ helm install fibonacci . --set image.repository=${DOCKER_USERNAME}/fibonacci_rust --set image.tag=${DOCKER_TAG}
137137```
138138> [ !WARNING]
139139> Do not execute helm install again as it will overwrite the existing deployment.
@@ -142,7 +142,7 @@ helm install fibonacci .
142142> If you already have the chart installed and want to upgrade it:
143143
144144``` sh
145- helm upgrade --install fibonacci .
145+ helm upgrade --install fibonacci . --set image.repository= ${DOCKER_USERNAME} /fibonacci_rust --set image.tag= ${DOCKER_TAG}
146146```
147147> [ !TIP]
148148> Check the deployment status:
0 commit comments