Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Deploying a Containerized Application On GKE

hayashiki
December 23, 2017

Deploying a Containerized Application On GKE

hayashiki

December 23, 2017
Tweet

More Decks by hayashiki

Other Decks in Programming

Transcript

  1. self-introduction Software Engineer Framgia.Inc ɾ࠷ۙԬࢁҾͬӽ͖ͯͨ͠ ɾϑϧϦϞʔτϫʔΧʔ
 ɾ޷͖ͳٕज़ 
 - Frontend(react,

    redux, angular)
 - Infrastructure(GCP, AWS, Azure, VPS…)
 - GAS, Slack, Serverless… ୲౰ྖҬ͸͜ͷ΁Μ
  2. What’s Kubernetes ? Kubernetes is an open-source system for automating

    deployment, scaling, and management of containerized applications. ɾAutomatic binpacking ɾHorizontal scaling ɾAutomated rollouts and rollbacks ɾStorage orchestration ɾSelf-healing ɾService discovery and load balancing ɾSecret and configuration management ɾBatch execution
  3. How can I use Kubernetes ? ɾGCP (Compute Engine, Kubernetes

    Engine) ɾAWS (AmazonEC2, AmazonEKS new! ) ɾAzure(Azure Container Service) ɾIBM Blue Mix
 ɾetc… ϚωʔδυͰͳͯ͘ɺselfhost͢Δ͜ͱ΋Մೳɻ ͯͬͱΓ͹΍͘͸͡ΊΔʹ͸ύϒϦοΫΫϥ΢υΛ࢖ͬͨํָ͕ʹߏஙͰ͖Δ
  4. Pod / Deployment PodɿίϯςφΛάϧʔϐϯάԽͨ֓͠೦ Deployment: PodΛ্ཱͪ͛ͷఆ͚ٛͮΛͨ͠΋ͷ - template: Podఆٛ -

    replicas: Podͷಉ࣌ىಈ਺Λఆٛ and keep PodͷϨϓϦΧ਺্ݶ͸NodeͷεϖοΫʹґଘ͢Δ - image: docker image file 
 ӈͷྫͰ͸ɺnginxͷPodΛport:80Ͱ3ͭͨͪ͋͛ͯʔ 
 

  5. Container Registry / Cloud Container Builder 
 - KMSʹΑΔɺconfig/database.ymlͷෳ߹ -

    KMSʹΑΔɺconfig/secrets.ymlͷෳ߹ - migration - docker build and push GCR - kubectl set image - slack notifications