SlideShare a Scribd company logo
從Google Cloud看
Kubernetes服務
Simon Su @ GCPUG.TW
Simon Su
var simon = {/** I am at GCPUG.TW **/};
simon.cloud_gde = true;
simon.blog = ‘http://peihsinsu.blogspot.com';
simon.slideshare = ‘http://slideshare.net/peihsinsu/';
simon.email = ‘simonsu.mail@gmail.com’;
simon.say(‘Good luck to everybody!');
Google Cloud Platform User Group
GCPUG.TW
GCPUG.TW
GCPUG.TW談Kubernetes… Meetup#27
Using Kubernetes to deploy Django in GCP / Walter Liu
● https://www.slideshare.net/walterliu7/using-kubernetes-to-deploy-django-in-gcp
深入Kubernetes Network,Calico Overlet Network介紹 / 光光 / Hiiir DevOps扛壩子
● https://www.slideshare.net/IsaacTseng/20170705-kubernetes-with-calico
從AWS轉移到GCP,一個新創團隊搬家的故事​ / 陳彥文
● https://www.slideshare.net/wenchen3/from-aws-to-gcp-tableapp-architecture-story
GCPUG.TW
GCPUG.TW談Kubernetes… Meetup #28
Running Workloads in K8S / Janet / K8S Developer
● https://speakerdeck.com/janetkuo/running-workloads-in-kubernetes
容器下高度客製的負載平衡方式​ / Jerry / Citrix SE
● https://drive.google.com/open?id=0B34e2qGHFGOQSTJ4djZxREc1SVk
FOSSASIA / FOSSASIA Summit及運用Kubernetes部署開源 / Noah / 社群雜工
● https://docs.google.com/presentation/d/1oMIfwQH9mQ3MRuMRzvTz751W
JEXNie-8cg3gpGwN-rU/edit#slide=id.g24215d6772_0_11
GCPUG.TW
GCPUG.TW談Kubernetes… Meetup #29
Kubernetes volume provisioning using Ceph distributed storage / Kyle /
InwinSTACK Architect
● https://drive.google.com/open?id=0B18kWCds9VWhZk5GWUh4N0lQXzA
跟DevOps有約 - GCE 上搭配 Cloud Storage 建置 Drone CICD / Gary / QNAP Senior
Engineer
● https://www.slideshare.net/ssuser567f65/gce-cloud-storage-drone-ci
輕輕鬆鬆做 MicroService之 Screenshot as a Service / Cage / QNAP Senior
Engineer
● https://kaichu.io/2017/09/09/screenshot-as-a-service/
今天跟大家輕鬆聊K8S…
不簡單的GKE… 很簡單的用...
Outline
● Google Container Engine簡介
● 透視Container Engine與Google Cloud Platform的結合
● GKE與Cloud Logging, Cloud Monitor, Stackdriver的整合與
● Google Cloud上GKE面向CICD的輔助服務
哪些事... 我的服務不想遇到...
Google Container Engine 簡介
● 繼承開源,完全相容Kuberbetes環境與操作
● 簡易管理,10個node以下master node由Google負責
● 結合雲端,與Global Load Balancer、Network Load Balancer 整合
● 無痛升級,無縫銜接最新版本
● 自動擴展,K8S資源依所需擴展
● 視圖整合,執行環境介面整合
● 輔助工具,CI/CD整合,Container Registry整合
Demo
話不多說...
開個GKE Cluster…
其實簡單der
….
….
https://console.cloud.google.com/freetrial
Google Container Engine簡介
深入了解,才能進階排除障礙...
GKE幫你做了哪些事情?
Firewall
Routing
Load
Balancer
IP address
GKE介面介紹 - Container Cluster
GKE介面介紹 - Workload
GKE介面介紹 - Discovery & Load Balancer
GKE介面介紹 - Configuration
GKE介面介紹 - Storage
連線GKE內建的K8S Portal
● 連線您的GKE集群
gcloud container clusters get-credentials [cluster_name] 
--zone [cluster_zone]--project [cluster_project]
● 連線了的GKE Dashboard
kubectl proxy
http://127.0.0.1:8001/
透視Container Engine與
Google Cloud Platform的結合
GKE建立之初
● Master node
● Routing
● IP
● Firewall
GCE instance(s) for GKE Cluster
Google代管
Master Node
透過Instance
Group封裝K8S
minion
Auto scale enabled
● Minion auto scale
● Scale metrics
○ CPU Usage
○ HTTP Load Balancing Usage
○ Stackdriver metric
○ Multiple metrics
Routing for PODs & SVCs
Firewalls
configured
● TCP 22 port for kubectl exec
● VM internal route
K8S Minion External IP Address
有了GKE… 再來個Demo
從第一個K8S應用說起...
kubectl run nginx --image nginx --port 80
kubectl expose nginx --type=LoadBalancer
與Global LB及Network LB整合
K8S Ingress
vs.
GCE HTTP(S) Load
Balancer
K8S Service
vs.
GCE Network
Load Balancer
與GCE Disk整合
● Integrate with K8S Volume
● Persistence Disk, SSD
● Migrate disj over K8S minions
雲端的IP、防火牆與路由
● IP apply & binding
● Firewall for service port
● Routing for all communications
Service Firewall
● Ingress firewall
● Port allow for all traffic
Service IP
看個複雜點的Demo
brew install kubernetes-helm
helm init
helm search wordpress
helm install stable/wordpress
看看HELM部屬的Wordpress架構
Wordpress
(deploy/pod)
MariaDB
(deploy/pod)
SVC
Firewall上的變化
Wordpress
(deploy/pod)
MariaDB
(deploy/pod)
SVC
監控SVC的
Healthcheck
● 整合GCE Healthcheck
SVC的外部IP
GKE與
- Cloud Logging
- Cloud Monitor
- Stackdriver
的整合與
GKE &
Cloud Logging
● Node log
● Cluster log
● Container log
● Customize your monitor
metrics by filter and regular
expressions
Cloud Monitor &
Custom Metrics
● Integrate with GCP store
services
○ BigQuery
○ Cloud Storage
○ Pub/Sub
Cloud Monitor Export
GKE 的 Stackdriver 監控
深入到 Pod 的監控
Google Cloud上GKE面向
CICD的輔助服務
● 私有的 source code 存放
● 可連結 Github, Bitbucket
● 整合線上 source code 檢視
Source Code Repository
Container Registry
● 私有的 Container Image 存放處
● GCE 環境存取快素
● 網頁視覺化 Image 管理介面
● 繼承 GCS 優勢
○ 無限量儲存
○ 高 SLA
Container Builder / Build Trigger
● 與版本控管(Cloud Repository)服務整合
● 每月免費 build server 額度
● Cloud init 腳本客製化
Build Histories
沒騙你... 用了就很簡單吧...
從Google cloud看kubernetes服務
從Google cloud看kubernetes服務

More Related Content

PDF
Kubernetes in kubernetes 搭建高可用環境
PPTX
Distributed tensorflow on kubernetes
PPTX
Distributed tensorflow on kubernetes
PDF
How to integrate Kubernetes in OpenStack: You need to know these project
PDF
利用K8S實現高可靠應用
PDF
AWS Summit Singapore 2019 | Autoscaling Your Kubernetes Workloads
PDF
From Code to Kubernetes
PDF
Kubernetes scheduling and QoS
Kubernetes in kubernetes 搭建高可用環境
Distributed tensorflow on kubernetes
Distributed tensorflow on kubernetes
How to integrate Kubernetes in OpenStack: You need to know these project
利用K8S實現高可靠應用
AWS Summit Singapore 2019 | Autoscaling Your Kubernetes Workloads
From Code to Kubernetes
Kubernetes scheduling and QoS

What's hot (20)

PPTX
Building Portable Applications with Kubernetes
PDF
Kubernetes stack reliability
PDF
K8s Pod Scheduling - Deep Dive. By Tsahi Duek.
PPTX
Integrate Kubernetes into CORD(Central Office Re-architected as a Datacenter)
PDF
MongoDB.local Austin 2018: MongoDB Ops Manager + Kubernetes
PDF
Defining & Enforcing Policies the GitOps Way
PPTX
Make stateful apps in Kubernetes a no brainer with Pure Storage and GitOps
PPTX
Securing and Automating Kubernetes with Kyverno
PDF
23 meetup rancher
PDF
Kubernetes Day 2017 - Build, Ship and Run Your APP, Production !!
PDF
Using source code management patterns to configure and secure your Kubernetes...
PDF
Openstack days sv building highly available services using kubernetes (preso)
PDF
Kubernetes Monitoring & Best Practices
PPTX
How Kubernetes scheduler works
PDF
Implementing Progressive Delivery with Your Team (by Leigh Capili)
PDF
MongoDB.local DC 2018: MongoDB Ops Manager + Kubernetes
PDF
Kubernetes and devops
PDF
OpenStack on Kubernetes (BOS Summit / May 2017 update)
PDF
PuppetConf 2017: Zero to Kubernetes -Scott Coulton, Puppet
PDF
How to manage Kubernetes at scale with just git
Building Portable Applications with Kubernetes
Kubernetes stack reliability
K8s Pod Scheduling - Deep Dive. By Tsahi Duek.
Integrate Kubernetes into CORD(Central Office Re-architected as a Datacenter)
MongoDB.local Austin 2018: MongoDB Ops Manager + Kubernetes
Defining & Enforcing Policies the GitOps Way
Make stateful apps in Kubernetes a no brainer with Pure Storage and GitOps
Securing and Automating Kubernetes with Kyverno
23 meetup rancher
Kubernetes Day 2017 - Build, Ship and Run Your APP, Production !!
Using source code management patterns to configure and secure your Kubernetes...
Openstack days sv building highly available services using kubernetes (preso)
Kubernetes Monitoring & Best Practices
How Kubernetes scheduler works
Implementing Progressive Delivery with Your Team (by Leigh Capili)
MongoDB.local DC 2018: MongoDB Ops Manager + Kubernetes
Kubernetes and devops
OpenStack on Kubernetes (BOS Summit / May 2017 update)
PuppetConf 2017: Zero to Kubernetes -Scott Coulton, Puppet
How to manage Kubernetes at scale with just git
Ad

Similar to 從Google cloud看kubernetes服務 (20)

PDF
Using Kubernetes to deploy Django in GCP
PDF
Cloud Native Use Cases / Case Studies - KubeCon 2019 San Diego - RECAP
PDF
Deploying WSO2 API Manager in Production-Grade Kubernetes
PDF
OSS Japan 2019 service mesh bridging Kubernetes and legacy
PPTX
Kochi Mulesoft Meetup #11 - Runtime Fabric on Google Kubernetes Engine (GKE)
PDF
Idea to Production - with Gitlab and Kubernetes
PPTX
GCP - Continuous Integration and Delivery into Kubernetes with GitHub, Travis...
PDF
Kubeadm Deep Dive (Kubecon Seattle 2018)
PDF
Yannis Zarkadas. Enterprise data science workflows on kubeflow
PDF
Yannis Zarkadas. Stefano Fioravanzo. Enterprise data science workflows on kub...
PDF
Powerup & GCP | Workshop on Google Kubernetes Engine
PDF
How our Cloudy Mindsets Approached Physical Routers
PPTX
Get started with Kubernetes on GKE
PDF
Run K8s on Local Environment
PDF
Deploy Prometheus - Grafana and EFK stack on Kubic k8s Clusters
PDF
KubeCon + CloudNativeCon Barcelona and Shanghai 2019 - Highlights
PDF
Enhance Your Kubernetes CI/CD Pipelines With GitLab & Open Source
PPTX
Spring Boot & Spring Cloud on k8s and PCF
PDF
Effective Building your Platform with Kubernetes == Keep it Simple
PDF
Jenkins x gitops
Using Kubernetes to deploy Django in GCP
Cloud Native Use Cases / Case Studies - KubeCon 2019 San Diego - RECAP
Deploying WSO2 API Manager in Production-Grade Kubernetes
OSS Japan 2019 service mesh bridging Kubernetes and legacy
Kochi Mulesoft Meetup #11 - Runtime Fabric on Google Kubernetes Engine (GKE)
Idea to Production - with Gitlab and Kubernetes
GCP - Continuous Integration and Delivery into Kubernetes with GitHub, Travis...
Kubeadm Deep Dive (Kubecon Seattle 2018)
Yannis Zarkadas. Enterprise data science workflows on kubeflow
Yannis Zarkadas. Stefano Fioravanzo. Enterprise data science workflows on kub...
Powerup & GCP | Workshop on Google Kubernetes Engine
How our Cloudy Mindsets Approached Physical Routers
Get started with Kubernetes on GKE
Run K8s on Local Environment
Deploy Prometheus - Grafana and EFK stack on Kubic k8s Clusters
KubeCon + CloudNativeCon Barcelona and Shanghai 2019 - Highlights
Enhance Your Kubernetes CI/CD Pipelines With GitLab & Open Source
Spring Boot & Spring Cloud on k8s and PCF
Effective Building your Platform with Kubernetes == Keep it Simple
Jenkins x gitops
Ad

More from inwin stack (20)

PDF
Migrating to Cloud Native Solutions
PDF
Cloud Native 下的應用網路設計
PDF
當電子發票遇見 Google Cloud Function
PDF
運用高效、敏捷全新平台極速落實雲原生開發
PDF
The last mile of digital transformation AI大眾化:數位轉型的最後一哩
PDF
整合Cloud Foundry 和 Kubernetes 技術打造企業級雲應用平台解決方案
PDF
An Open, Open source way to enable your Cloud Native Journey
PDF
維運Kubernetes的兩三事
PDF
Serverless framework on kubernetes
PDF
Train.IO 【第六期-OpenStack 二三事】
PDF
Web後端技術的演變
PDF
以 Kubernetes 部屬 Spark 大數據計算環境
PDF
Setup Hybrid Clusters Using Kubernetes Federation
PDF
基於 K8S 開發的 FaaS 專案 - riff
PPTX
使用 Prometheus 監控 Kubernetes Cluster
PDF
Extend the Kubernetes API with CRD and Custom API Server
PDF
Build your own kubernetes apiserver and resource type
PDF
Virtualization inside kubernetes
PDF
利用K8S實現高可靠應用
PDF
Build the Blockchain as service (BaaS) Using Ethereum on Kubernetes
Migrating to Cloud Native Solutions
Cloud Native 下的應用網路設計
當電子發票遇見 Google Cloud Function
運用高效、敏捷全新平台極速落實雲原生開發
The last mile of digital transformation AI大眾化:數位轉型的最後一哩
整合Cloud Foundry 和 Kubernetes 技術打造企業級雲應用平台解決方案
An Open, Open source way to enable your Cloud Native Journey
維運Kubernetes的兩三事
Serverless framework on kubernetes
Train.IO 【第六期-OpenStack 二三事】
Web後端技術的演變
以 Kubernetes 部屬 Spark 大數據計算環境
Setup Hybrid Clusters Using Kubernetes Federation
基於 K8S 開發的 FaaS 專案 - riff
使用 Prometheus 監控 Kubernetes Cluster
Extend the Kubernetes API with CRD and Custom API Server
Build your own kubernetes apiserver and resource type
Virtualization inside kubernetes
利用K8S實現高可靠應用
Build the Blockchain as service (BaaS) Using Ethereum on Kubernetes

Recently uploaded (20)

PDF
Encapsulation theory and applications.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Big Data Technologies - Introduction.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Empathic Computing: Creating Shared Understanding
PPT
Teaching material agriculture food technology
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Electronic commerce courselecture one. Pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
KodekX | Application Modernization Development
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Approach and Philosophy of On baking technology
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
Encapsulation theory and applications.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Advanced methodologies resolving dimensionality complications for autism neur...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Big Data Technologies - Introduction.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Digital-Transformation-Roadmap-for-Companies.pptx
MIND Revenue Release Quarter 2 2025 Press Release
Empathic Computing: Creating Shared Understanding
Teaching material agriculture food technology
Dropbox Q2 2025 Financial Results & Investor Presentation
Electronic commerce courselecture one. Pdf
Per capita expenditure prediction using model stacking based on satellite ima...
The AUB Centre for AI in Media Proposal.docx
KodekX | Application Modernization Development
Spectroscopy.pptx food analysis technology
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Approach and Philosophy of On baking technology
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Encapsulation_ Review paper, used for researhc scholars

從Google cloud看kubernetes服務