kubecon eu 2016: chatops and automatic deployment on kubernetes
TRANSCRIPT
![Page 1: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/1.jpg)
![Page 2: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/2.jpg)
BACKING PROXIMITY
ChatOps and Automatic Deployment on k8s
Andreas Heim, Lead Platform Engineer [email protected]
@heim @unacast
![Page 3: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/3.jpg)
“Unacast is one of the top 10 global companies in the 3,5$ billion retail
analytics industry”
“Unacast: The Prototype for the New Advertising
Generation”
Winner of “Best new Nordic company”
BACKING PROXIMITY
The #1 platform connecting customers’ physical behaviour from beacons and other sensors to online marketing platforms Offices in Oslo, NYC, London and San Francisco
PROX Retargeting network: 46+
partners
Currently 1 000 000 sensors
connected to the
network
Proxbook directory: 285
members
![Page 4: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/4.jpg)
Why does Unacast Exist?
![Page 5: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/5.jpg)
BACKING PROXIMITY
The World is Being Sensored Up!
Source: Proxbook Q4 Report www.proxbook.com
![Page 6: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/6.jpg)
BACKING PROXIMITY
![Page 7: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/7.jpg)
Push notifications: In-store experience and
increased basket size
The traditional approach
Added opportunities with PROXRetargeting:
Leverage proximity data, get customers back to
store
BACKING PROXIMITY
![Page 8: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/8.jpg)
![Page 9: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/9.jpg)
BACKING PROXIMITY
![Page 10: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/10.jpg)
App Engine
Datastore
Pub/SubDataflow
BigQuery
Container Engine
Dataflow
![Page 11: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/11.jpg)
dev == prod
![Page 12: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/12.jpg)
ChatOps??!?11
![Page 13: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/13.jpg)
![Page 14: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/14.jpg)
• Copy the files from your computer to production fileshare • Send a jar to the sysadmin • Run a deploy-script from your local computer • Git push to production • Use Jenkins or a custom UI to do deployments • ChatOps
![Page 15: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/15.jpg)
Send jar via email
Local script
git push to production
Central UI
ChatOps
Repeatable Transparent Arena for discussion
![Page 16: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/16.jpg)
soft pipeline
![Page 17: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/17.jpg)
![Page 18: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/18.jpg)
![Page 19: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/19.jpg)
![Page 20: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/20.jpg)
![Page 21: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/21.jpg)
![Page 22: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/22.jpg)
![Page 23: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/23.jpg)
But hey, k8s what?
![Page 24: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/24.jpg)
Deploy scripts
• Check that dependencies are in present • Creating a Replication Controller if none exist • Updating the Replication Controller if exists • Performing rolling update
![Page 25: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/25.jpg)
Heaven passes info to our scripts
• Branch • Sha • Environment
![Page 26: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/26.jpg)
![Page 28: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/28.jpg)
Caveats
• None
![Page 29: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/29.jpg)
Future plans
• Shorten container build time • Automated canary releases • Manage infrastructure • Deployment API
![Page 30: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/30.jpg)
Emerging patterns
• nginx-ssl-proxies • certificates in secrets • discovery by dns
• environment discovery • one cluster per environment • building containers == slow
![Page 31: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/31.jpg)
Where to start
• Start with monitoring • Make stable deploy scripts that do not require a lot of
parameters • Test locally first • Slowly does it • Avoid channel spamming
![Page 32: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/32.jpg)
http://labs.unacast.com/
![Page 33: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/33.jpg)
![Page 34: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/34.jpg)
![Page 35: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/35.jpg)
![Page 36: KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes](https://reader031.vdocument.in/reader031/viewer/2022020314/5876fde01a28abf3398b6b59/html5/thumbnails/36.jpg)