$30 off During Our Annual Pro Sale. View Details »

Rails Application w/ Kubernetes

Rails Application w/ Kubernetes

k.yanagimoto

July 18, 2019
Tweet

More Decks by k.yanagimoto

Other Decks in Technology

Transcript

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

    Koichi Yanagimoto

    View Slide

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

    View Slide

  3. Kubernetes
    !3

    View Slide

  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

    View Slide

  5. How to use?
    !5

    View Slide

  6. How to deploy K8S cluster
    !6

    View Slide

  7. Docker Image
    !7

    View Slide

  8. Docker Image

    View Slide

  9. Source Code Tree

    View Slide

  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

    View Slide

  11. Kiali

    View Slide

  12. Using Rails with…
    • Kubernetes

    • GitHub Enterprise

    • CircleCI

    • RSpec

    • Kaniko

    • kustomize

    • Artifactory

    • Istio

    • Elasticstack

    etc…

    View Slide