-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Helm deployment and update configurations
Switch the deployment process to Helm by introducing a Helm release for the todoapp chart, including a dependency on MySQL. Update configuration details such as the DB_HOST, and ensure consistency with resource names by changing configMap and adding a mysql-service. Remove manual Kubernetes apply commands from the bootstrap script in favor of using Helm for deployment and management.
- Loading branch information
Showing
5 changed files
with
9 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,5 @@ | ||
#!/bin/bash | ||
kubectl apply -f .infrastructure/mysql/ns.yml | ||
kubectl apply -f .infrastructure/mysql/configMap.yml | ||
kubectl apply -f .infrastructure/mysql/secret.yml | ||
kubectl apply -f .infrastructure/mysql/service.yml | ||
kubectl apply -f .infrastructure/mysql/statefulSet.yml | ||
|
||
kubectl apply -f .infrastructure/app/ns.yml | ||
kubectl apply -f .infrastructure/app/pv.yml | ||
kubectl apply -f .infrastructure/app/pvc.yml | ||
kubectl apply -f .infrastructure/app/secret.yml | ||
kubectl apply -f .infrastructure/app/configMap.yml | ||
kubectl apply -f .infrastructure/app/clusterIp.yml | ||
kubectl apply -f .infrastructure/app/nodeport.yml | ||
kubectl apply -f .infrastructure/app/hpa.yml | ||
kubectl apply -f .infrastructure/app/deployment.yml | ||
kubectl taint nodes -l app=mysql app=mysql:NoSchedule | ||
|
||
# Install Ingress Controller | ||
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml | ||
# kubectl apply -f .infrastructure/ingress/ingress.yml | ||
helm install todoapp-release ./helm-chart/todoapp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters