Skip to content

Commit

Permalink
Updating linter as well for Ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
sofusalbertsen committed Sep 6, 2023
1 parent 36806d1 commit fc8674d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .test/lint_kube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
KUBERNETES_RESOURCE_FILES=$(find * -type f \( -iname '*.yml' -or -iname '*.yaml' \) -and ! \( -iname "helmfile.yaml" -or -iname "values-*.yaml" -or -iname "*docker-compose*" \))

excludes=(
deployments-loadbalancing/start/frontend-deployment.yaml
deployments-loadbalancing/start/backend-deployment.yaml
deployments-ingress/start/frontend-deployment.yaml
deployments-ingress/start/backend-deployment.yaml
manifests/start/frontend-pod.yaml
services/start/backend-svc.yaml
services/start/frontend-svc.yaml
Expand Down
2 changes: 1 addition & 1 deletion deployments-ingress.md
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ kubectl delete -f backend-svc.yaml
kubectl delete -f frontend-ingress.yaml
```

> :bulb: If you ever want to delete all resources from a particular directory, you can use a shell wildcard: `kubectl delete -f *.yaml` which will point at **all** `.yaml` files in that directory!
> :bulb: If you ever want to delete all resources from a particular directory, you can use: `kubectl delete -f .` which will point at **all** files in that directory!
# Extra Exercise

Expand Down
8 changes: 5 additions & 3 deletions deployments-ingress/done/frontend-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,22 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
#internet facing
# These annotations are required to use ALB Ingress Controller
alb.ingress.kubernetes.io/scheme: internet-facing
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":443}]'
name: frontend-ingress
spec:
rules:
- host: frontend-1.prosa.eficode.academy
# you need to change the host to match your own
- host: quotes-sal.prosa.eficode.academy
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
# change this to match your service name
name: frontend
port:
number: 80
number: 5000
5 changes: 3 additions & 2 deletions deployments-ingress/start/frontend-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
spec:
rules:
# you need to change the host to match your own
- host: frontend-<yourname>.<prefix>.eficode.academy
- host: quotes-<yourname>.<prefix>.eficode.academy
http:
paths:
- pathType: Prefix
Expand All @@ -20,4 +20,5 @@ spec:
# change this to match your service name
name: <name of the frontend service>
port:
number: 80
# this is the port your service is listening on
number: 5000

0 comments on commit fc8674d

Please sign in to comment.