Skip to content

Commit e9080b0

Browse files
authored
Merge pull request #238 from Lemoncode/minor-fixes-eks-terraform
Minor fixes eks terraform
2 parents 8f032bd + e5800bd commit e9080b0

File tree

7 files changed

+25
-12
lines changed

7 files changed

+25
-12
lines changed

04-cloud/01-eks/04-deploy-solution/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Deploy Solutions Example
22

3-
## Creating bacckend services
3+
## Creating backend services
44

55
### Creating lc-age-service
66

04-cloud/01-eks/06-autoscalling-our-applications/01-scale-an-application-with-HPA.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ We will deploy the metrics server using [Kubernetes Metrics Server](https://gith
1212

1313
```bash
1414
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.4.1/components.yaml
15+
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.7.2/components.yaml
1516
```
1617

1718
Lets' verify the status of the metrics-server APIService (it could take a few minutes).

04-cloud/01-eks/06-autoscalling-our-applications/02-cluster-auto-scaler/01-scale-cluster-with-CA.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ kubectl -n kube-system logs -f deployment/cluster-autoscaler
7070
Confirm the autoscaling by visiting `EC2 AWS Management Console` or by using
7171

7272
```bash
73-
$ kubectl get nodes
73+
kubectl get nodes
7474
NAME STATUS ROLES AGE VERSION
7575
ip-192-168-2-232.eu-west-3.compute.internal Ready <none> 99s v1.18.9-eks-d1db3c
7676
ip-192-168-27-247.eu-west-3.compute.internal Ready <none> 107s v1.18.9-eks-d1db3c

04-cloud/01-eks/07-exposing-service/readme.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/cont
4343
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.8.2/deploy/static/provider/aws/deploy.yaml
4444
```
4545

46+
```bash
47+
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.12.0/deploy/static/provider/aws/deploy.yaml
48+
```
49+
4650
Create `apple.deploy.yaml`
4751

4852
```yaml
@@ -121,9 +125,10 @@ apiVersion: networking.k8s.io/v1
121125
kind: Ingress
122126
metadata:
123127
name: example-ingress
124-
annotations:
125-
kubernetes.io/ingress.class: "nginx"
128+
# annotations:
129+
# kubernetes.io/ingress.class: "nginx"
126130
spec:
131+
ingressClassName: nginx
127132
rules:
128133
- host: "jaimesalas.com"
129134
http:

05-iac/00-terraform/.start-app/main.tf

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,19 @@ resource "aws_instance" "nginx1" {
7474
vpc_security_group_ids = [aws_security_group.nginx-sg.id]
7575

7676
user_data = <<EOF
77-
#! /bin/bash
78-
sudo amazon-linux-extras install -y nginx1
79-
sudo service nginx start
80-
sudo rm /usr/share/nginx/html/index.html
81-
echo '<html><head><title>Lemon Land Server</title></head><body style=\"background-color:#1F778D\"><p style=\"text-align: center;\"><span style=\"color:#FFFFFF;\"><span style=\"font-size:28px;\">Welcome to &#127819; land</span></span></p></body></html>' | sudo tee /usr/share/nginx/html/index.html
82-
EOF
77+
#!/bin/bash
78+
# Update the system
79+
dnf update -y
80+
81+
# Install NGINX
82+
dnf install nginx -y
8383
84+
# Start NGINX service
85+
systemctl start nginx
86+
87+
# Enable NGINX to start on boot
88+
systemctl enable nginx
89+
sudo rm /usr/share/nginx/html/index.html
90+
echo '<html><head><title>Lemon Land Server</title></head><body style=\"background-color:#1F778D\"><p style=\"text-align: center;\"><span style=\"color:#FFFFFF;\"><span style=\"font-size:28px;\">You did it! Have a &#127790;</span></span></p></body></html>' | sudo tee /usr/share/nginx/html/index.html
91+
EOF
8492
}

05-iac/00-terraform/07-usando-funciones-looping/20-demo.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ Actualizamos `s3.tf`
4545

4646
```
4747

48-
4948
## Clean Up
5049

5150
```bash

05-iac/00-terraform/09-usando-recursos-existentes/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Trabajando conrecursos existentes
1+
# Trabajando con recursos existentes
22

33
## Introducción
44

0 commit comments

Comments
 (0)