Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

Kubernetes !3

Slide 4

Slide 4 text

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

Slide 5

Slide 5 text

How to use? !5

Slide 6

Slide 6 text

How to deploy K8S cluster !6

Slide 7

Slide 7 text

Docker Image !7

Slide 8

Slide 8 text

Docker Image

Slide 9

Slide 9 text

Source Code Tree

Slide 10

Slide 10 text

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

Slide 11

Slide 11 text

Kiali

Slide 12

Slide 12 text

Using Rails with… • Kubernetes • GitHub Enterprise • CircleCI • RSpec • Kaniko • kustomize • Artifactory • Istio • Elasticstack etc…