LoginSignup
1
0

More than 5 years have passed since last update.

最小構成の Airflow で DB を切り替える

Last updated at Posted at 2019-03-07

はじめに

  • 最小構成の Airflow を GKE に deploy する を LocalExecutor を利用するため DB を MySQL に変更します

  • kubernetes のドキュメントにおいて v1.10 を参照しているのは Google Kubernetes Engine で利用しているバージョンと合わせています

Deploy MySQL

ハマりどころ

  • API Reference で目的のものが見つけづらく komposer を利用して docker-compose の YAML を変換し参考にした

    • ただし komposer は v2.1 が対応していなかったり、一部の記述が対応していなかったので 2 に書き換えたり、コメントアウトして変換を行った
  • GKE では PersistentVolume は基本的に不要だった

  • Lost+Found directory 問題

    • log に --initialize specified but the data directory has files in it. Aborting. が出力される
    • /var/lib/mysql directory に loast+found が含まれてしまうため
    • mysqld 起動時に --ignore-db-dir=lost+found を指定する
    • https://github.com/docker-library/mysql/issues/186

docker image の更新について

実装

1
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
1
0