0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

redashをhelm chartでEKSにデプロイするレシピ(with https化)

Last updated at Posted at 2021-10-05

TL; DR

Redash公式のhelmチャートでデプロイする際、https化に躓いたため備忘として残します

手順

 1. AWS Load Balancer Controllerをセットアップする.
https://docs.aws.amazon.com/ja_jp/eks/latest/userguide/aws-load-balancer-controller.html

 2. helm install

$ helm repo add redash https://getredash.github.io/contrib-helm-chart/
$ helm install redash/redash --values values.yaml
values.yaml
ingress:
  enabled: true
  hosts:
  - host: "redash.example.com"
    paths:
    - /*
  annotations: {
    "kubernetes.io/ingress.class": "alb",
    "alb.ingress.kubernetes.io/certificate-arn": "arn:aws:acm:ap-northeast-1:111111111111:certificate/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # ACMのARN
    "alb.ingress.kubernetes.io/scheme": "internet-facing",
    "alb.ingress.kubernetes.io/target-type": "ip"
  }

 3. Route53の設定

Load Balancer ControllerによってIngressに対応するALBが作成されているので、Route53で redash.example.comとこのALBを紐付けるAレコードエイリアスを作成します

以上


当初はService LoadBalancerをTLS終端にしようとしていましたが、SAMLログインのリダイレクトURLが http://~となってしまう問題に直面しました。
Ingressであればnginx.confをいじる必要もなく、ALBがよしなにしてくれます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?