File tree Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ {{- if .Values.ingress.enabled }}
2+ apiVersion : networking.k8s.io/v1
3+ kind : Ingress
4+ metadata :
5+ name : {{ include "token-images.fullname" . }}
6+ namespace : {{ .Values.namespace }}
7+ labels :
8+ {{- include "token-images.labels" . | nindent 4 }}
9+ annotations :
10+ # AWS Load Balancer Controller annotations
11+ alb.ingress.kubernetes.io/scheme : internet-facing
12+ alb.ingress.kubernetes.io/target-type : ip
13+ alb.ingress.kubernetes.io/subnets : {{ .Values.ingress.subnets | quote }}
14+ # IMPORTANT: Comment out group.name to avoid creating separate ALB
15+ # alb.ingress.kubernetes.io/group.name: {{ .Values.ingress.groupName | default "default" }}
16+ # SSL/TLS settings
17+ alb.ingress.kubernetes.io/listen-ports : ' [{"HTTP": 80}, {"HTTPS": 443}]'
18+ alb.ingress.kubernetes.io/ssl-redirect : ' 443'
19+ # Health check settings
20+ alb.ingress.kubernetes.io/healthcheck-path : {{ .Values.ingress.healthCheckPath | default "/health" }}
21+ alb.ingress.kubernetes.io/healthcheck-port : {{ .Values.service.targetPort | quote }}
22+ spec :
23+ ingressClassName : {{ .Values.ingress.className | default "alb" }}
24+ rules :
25+ - host : {{ .Values.ingress.host }}
26+ http :
27+ paths :
28+ - path : {{ .Values.ingress.path | default "/" }}
29+ pathType : {{ .Values.ingress.pathType | default "Prefix" }}
30+ backend :
31+ service :
32+ name : {{ include "token-images.fullname" . }}
33+ port :
34+ number : {{ .Values.service.port }}
35+ {{- if .Values.ingress.tls }}
36+ tls :
37+ {{- toYaml .Values.ingress.tls | nindent 4 }}
38+ {{- end }}
39+ {{- end }}
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ service:
1212 type : ClusterIP
1313 port : 80
1414 targetPort : 4000
15+ # Option 2: Use ExternalName service to point to existing ALB
16+ useExternalName : false
17+ externalName : " eul-dev-lb-1234567890.eu-west-1.elb.amazonaws.com" # Replace with your ALB DNS name
1518
1619resources :
1720 limits :
@@ -34,3 +37,18 @@ secrets:
3437 name : " token-images-prd" # Matches managedSecret.name in DopplerSecret
3538 # Optional: specify if you want to use envFrom (mounts all secrets) or individual env vars
3639 useEnvFrom : true
40+
41+ # Ingress configuration for AWS ALB
42+ ingress :
43+ enabled : true
44+ className : " alb"
45+ groupName : " eul-dev-lb-group" # Group name for ALB sharing
46+ subnets : " subnet-0c1704842f6ef41d1, subnet-0e76b0603f950b3fa, subnet-0a2dac517ddd5c387"
47+ host : " tokens.eul.dev"
48+ path : " /"
49+ pathType : " Prefix"
50+ healthCheckPath : " /health" # Update this to match your app's health endpoint
51+ tls :
52+ - secretName : tokens-eul-dev-tls # Create this secret with your SSL certificate
53+ hosts :
54+ - tokens.eul.dev
You can’t perform that action at this time.
0 commit comments