-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(aws-eks-tutorial): use alb ingress instead
- Loading branch information
1 parent
d932300
commit a79d3f9
Showing
8 changed files
with
61 additions
and
97 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
47 changes: 47 additions & 0 deletions
47
aws-eks-tutorial/components/helm-chart/templates/api_alb.tpl
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ include "common.fullname" . }}-api | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "common.apiLabels" . | nindent 4 }} | ||
annotations: | ||
alb.ingress.kubernetes.io/scheme: internet-facing | ||
alb.ingress.kubernetes.io/target-type: ip | ||
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP":80}]' | ||
{{- /* | ||
alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":443}]' | ||
alb.ingress.kubernetes.io/certificate-arn: {{ .Values.api.nlbs.public_domain_certificate }} | ||
alb.ingress.kubernetes.io/aws-load-balancer-ssl-ports: https | ||
*/}} | ||
alb.ingress.kubernetes.io/healthcheck-path: /livez | ||
external-dns.alpha.kubernetes.io/hostname: {{ .Values.api.nlbs.public_domain }} | ||
spec: | ||
ingressClassName: alb | ||
rules: | ||
- http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: {{ include "common.fullname" . }}-api | ||
port: | ||
name: http | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "common.fullname" . }}-api | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "common.apiLabels" . | nindent 4 }} | ||
spec: | ||
selector: | ||
{{- include "common.apiSelectorLabels" . | nindent 4 }} | ||
type: ClusterIP | ||
ports: | ||
- name: http | ||
port: 8080 | ||
targetPort: http |
15 changes: 0 additions & 15 deletions
15
aws-eks-tutorial/components/helm-chart/templates/api_certificate.tpl
This file was deleted.
Oops, something went wrong.
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
27 changes: 0 additions & 27 deletions
27
aws-eks-tutorial/components/helm-chart/templates/api_ingress.tpl
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
aws-eks-tutorial/components/helm-chart/templates/api_nlbs.tpl
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
aws-eks-tutorial/components/helm-chart/templates/api_service.tpl
This file was deleted.
Oops, something went wrong.
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