Skip to content

Commit

Permalink
Minor fixes for day 6
Browse files Browse the repository at this point in the history
  • Loading branch information
lucabrunox committed Oct 2, 2024
1 parent 0427c9b commit 0e1e7e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 47 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ curl http://$(terraform output --raw experiments_nlb_dns_name)

### Day 6: Helm for the app

Commit: https://github.com/lucabrunox/experiments/tree/0427c9b777aaab

Planning to create multiple instances of the same app, so packaging it with helm.

Some notes:
- Created the helm with the default helm create scaffolding.
- Added container hostname to ALLOWED_HOSTS for the health checks.
Expand All @@ -138,5 +142,5 @@ Some notes:
kubectl apply -f k8s/ecr-credentials.yaml
helm install --set-string image=ACCOUNT_ID.dkr.ecr.eu-west-1.amazonaws.com/experiments-frontend:vTAG frontend ./frontend/k8s/chart

curl localhost:3000
curl http://$(terraform output --raw experiments_nlb_dns_name)
```
41 changes: 0 additions & 41 deletions frontend/k8s/manifest.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions tf/user_data/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ function update_system() {
yum update -y
}

function configure_etc_environment() {
echo 'PATH="$PATH:/usr/local/bin"' >> /etc/environment
}

function install_containerd() {
yum install containerd -y
systemctl enable containerd
Expand Down Expand Up @@ -64,7 +60,6 @@ function install_flannel() {
}

update_system
configure_etc_environment
install_containerd
configure_netfilter
install_kube_tools
Expand Down

0 comments on commit 0e1e7e9

Please sign in to comment.