Presented at AI NEXTCon Seattle 1/17-20, 2018
http://aisea18.xnextcon.com
join our free online AI group with 50,000+ tech engineers to learn and practice AI technology, including: latest AI news, tech articles/blogs, tech talks, tutorial videos, and hands-on workshop/codelabs, on machine learning, deep learning, data science, etc..
31. 31Google Cloud Platform
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: web
spec:
replicas: 12
template:
metadata:
labels:
name: web
color: blue
experimental: 'true'
Labels
32. 32Google Cloud Platform
App: Nifty
Phase: Dev
Role: FE
App: Nifty
Phase: Test
Role: FE
App: Nifty
Phase: Dev
Role: BE
App: Nifty
Phase: Test
Role: BE
Labels
33. 33Google Cloud Platform
App: Nifty
Phase: Dev
Role: FE
App: Nifty
Phase: Test
Role: FE
App: Nifty
Phase: Dev
Role: BE
App: Nifty
Phase: Test
Role: BE
Labels
App = Nifty
34. 34Google Cloud Platform
App: Nifty
Phase: Dev
Role: FE
App: Nifty
Phase: Test
Role: FE
App: Nifty
Phase: Dev
Role: BE
App: Nifty
Phase: Test
Role: BE
Labels
Role = BE
35. 35Google Cloud Platform
App: Nifty
Phase: Dev
Role: FE
App: Nifty
Phase: Test
Role: FE
App: Nifty
Phase: Dev
Role: BE
App: Nifty
Phase: Test
Role: BE
Labels
Phase = Dev
36. 36Google Cloud Platform
App: Nifty
Phase: Dev
Role: FE
App: Nifty
Phase: Test
Role: FE
App: Nifty
Phase: Dev
Role: BE
App: Nifty
Phase: Test
Role: BE
Labels
Phase = Dev
Role = FE
45. 45Google Cloud Platform
Readiness → Is the app ready to start serving traffic?
● Won’t be added to a service endpoint until it passes
● Required for a “production app” in my opinion
Liveness → Is the app still running?
● Default is “process is running”
● Possible that the process can be running but not working correctly
● Good to define, might not be 100% necessary
These can sometimes be the same endpoint, but not always
Health Checks