Skip to content

Commit

Permalink
migrate to eks
Browse files Browse the repository at this point in the history
  • Loading branch information
tk-hap committed Apr 10, 2024
1 parent 0832fa9 commit 1d9536d
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 6 deletions.
2 changes: 1 addition & 1 deletion helm/redis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ sentinel:
## IMPORTANT: this will disable the master and replicas services and
## create a single Redis® service exposing both the Redis and Sentinel ports
##
enabled: true
enabled: false
## Bitnami Redis® Sentinel image version
## ref: https://hub.docker.com/r/bitnami/redis-sentinel/tags/
## @param sentinel.image.registry [default: REGISTRY_NAME] Redis® Sentinel image registry
Expand Down
4 changes: 2 additions & 2 deletions helm/vid-recipe-gen-chart/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ kind: ConfigMap
metadata:
name: {{ .Release.Name }}-vid-recipe-gen-flask-config
data:
REDISHOST: {{ .Values.config.redisHost }}
REDISPORT: {{ .Values.config.redisPort | quote}}
REDIS_HOST: {{ .Values.config.redisHost }}
REDIS_PORT: {{ .Values.config.redisPort | quote}}
REQUEST_LIMIT: {{ .Values.config.requestLimit | quote }}
REQUEST_TIMEOUT_SECS: {{ .Values.config.requestTimeoutSecs | quote }}
MAX_VIDEO_LENGTH: {{ .Values.config.maxVideoLength }}
Expand Down
21 changes: 21 additions & 0 deletions helm/vid-recipe-gen-chart/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Release.Name }}-vid-recipe-gen-flask
annotations:
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/healthcheck-path: /
alb.ingress.kubernetes.io/certificate-arn: {{ .Values.ingress.certificateArn }}
spec:
ingressClassName: alb
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ .Release.Name }}-vid-recipe-gen-flask
port:
number: 443
11 changes: 11 additions & 0 deletions helm/vid-recipe-gen-chart/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-vid-recipe-gen-flask
spec:
selector:
app: vid-recipe-gen-flask
ports:
- protocol: TCP
port: 443
targetPort: 8080
8 changes: 5 additions & 3 deletions helm/vid-recipe-gen-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ image:
repository: ghcr.io/tk-hap/video-recipe-gen-flask
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "148ac16ecba809972c933a2e6827dae7713ed83b"
tag: "9e5619c197711159fdc6b5210c0cb652624ca2cb"

imagePullSecrets: []
nameOverride: ""
Expand All @@ -20,8 +20,8 @@ service:
targetPort: 8080

config:
redisHost : "redis-sentinel.default.svc.cluster.local" #K8s Service
redisPort : 26379 #Redis Sentinel
redisHost : "redis-master.tk.svc.cluster.local" #K8s Service
redisPort : 6379
requestLimit : 5
requestTimeoutSecs : 86400
maxVideoLength: "PT45M"
Expand All @@ -31,3 +31,5 @@ apiKeys:
openAiApiKey: ""
youtubeApiKey: ""

ingress:
certificateArn: "arn:aws:acm:ap-southeast-2:223061654492:certificate/dd6bfe6f-2002-49cc-a8e0-fddb57b18b6c"

0 comments on commit 1d9536d

Please sign in to comment.