Rails Application w/ Kubernetes

Rails Application w/ Kubernetes

F726c60218757a2e4b82a09c491af75a?s=128

k.yanagimoto

July 18, 2019
Tweet

Transcript

  1. Rails Application w/ Kubernetes Nikotama.rb #3 Koichi Yanagimoto

  2. Koichi Yanagimoto / @kyanagimoto Rakuten, Inc. Organizer of Nikotama.rb !2

  3. Kubernetes !3

  4. K8S De Facto Standard of Container Orchestration Tool de:code 2019

    ͷ ࢓૊Έ͕Θ͔Δ Azure Kubernetes Serviceͱ͍͏ηογϣϯͷεϥΠυ͕͍͢͝Θ͔Γ΍͔ͬͨ͢Ͱ͢Αɻ https://www.microsoft.com/ja-jp/events/decode/2019/default.aspx?wt.mc_id=AID2402947_EML_6033620 !4
  5. How to use? !5

  6. How to deploy K8S cluster !6

  7. Docker Image !7

  8. Docker Image

  9. Source Code Tree

  10. Canary Deploy apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: SampleService namespace:

    sample-api spec: hosts: - "*" gateways: - sample-api-gateway http: - match: - uri: prefix: /hoge/fuga method: exact: "GET" route: - destination: host: sample-api subset: v1 port: number: 80 weight: 90 - destination: host: sapmpe-api subset: v2 port: number: 80 weight: 10
  11. Kiali

  12. Using Rails with… • Kubernetes • GitHub Enterprise • CircleCI

    • RSpec • Kaniko • kustomize • Artifactory • Istio • Elasticstack etc…