Kubernetes.

Slides:



Advertisements
Similar presentations
B. Ramamurthy 4/17/ Overview of EC2 Components (fig. 2.1) 10..* /17/20152.
Advertisements

Deploying an Application on the Cloud Chapter 4. Topics Your experience with Google App Engine and mine with Pop!World Web application Architecture Machine.
Source Control Repositories for Enabling Team Working Svetlin Nakov Telerik Corporation
Patterns & practices Symposium 2013 Introducing Git version control into your team Mark
Google AppEngine. Google App Engine enables you to build and host web apps on the same systems that power Google applications. App Engine offers fast.
Amazon EC2 Quick Start adapted from EC2_GetStarted.html.
Cloud Computing for the Enterprise November 18th, This work is licensed under a Creative Commons.
Model a Container Runtime environment on Your Mac with VMware AppCatalyst VMworld Fabio Rapposelli
 Replication is the process of copying database information  Replication is used for:  Backing up your database  Migrating to a new server  Mirroring.
Windows Azure Conference 2014 LAMP on Windows Azure.
1 e-Science AHM st Aug – 3 rd Sept 2004 Nottingham Distributed Storage management using SRB on UK National Grid Service Manandhar A, Haines K,
© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Docker Overview Automating.
Ansible and Ansible Tower 1 A simple IT automation platform November 2015 Leandro Fernandez and Blaž Zupanc.
#msitconf. Damien Caro Technical Evangelist Manager, Что будет, если приложение поместить в контейнер? What happens if the application.
Alfresco deployment with Docker Andrea Agili Software Engineer – Dr Wolf srl Tommaso Visconti DevOps – Dr Wolf srl.
GETTING STARTED WITH AWS AND PYTHON. OUTLINE  Intro to Boto  Installation and configuration  Working with AWS S3 using Bot  Working with AWS SQS using.
ROLLING DATABASE SNAPSHOTS David Cobb Daveslog.com.
1 Gaurav Kohli Xebia Breaking with DBMS and Dating with Relational Hbase.
Calgary Oracle User Group
Federated Cluster Selector
Job Scheduling and Runtime in DLWorkspace
Building ARM IaaS Application Environment
DevOps Cloud Native Microservices
INTRO TO Presenter: PhuongNQK.
Containers as a Service with Docker to Extend an Open Platform
Amazon Web Services RDS with SQL Server
@ Bucharest DevOps Hacker Meetup
Web application hosting with Openshift, and Docker images
Web application hosting with Openshift, and Docker images
Accelerate your DevOps with OpenShift by Red Hat
Docker Birthday #3.
MANAGE AWS INFRASTRUCTURE AS CODE USING TERRAFORM
Modernizing Application Delivery with Containers & Kubernetes
Continuous Deployment tool
Andrew Pruski SQL Server & Containers
Amazon Web Services RDS with SQL Server
9/20/ :55 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Event driven Microservices with VERT.X & Kubernetes
Kubernetes Container Orchestration
OpenStack Octavia, Kubernetes, and Terraform
Introduction to Docker
Using docker containers
Kubernetes intro.
Confidential – Oracle Internal/Restricted/Highly Restricted
Container technology. Let’s dive into the world of docker and kubernetes Bjarte Brandt, DevOps Architect TV2.
Intro to Docker Containers and Orchestration in the Cloud
Getting Started with Kubernetes and Rancher 2.0
Intro about Contanier and Docker Technology
From Source to Production: The Latest in Container Dev
Module P3 Practical: Building a webapp in nodejs and
Deploying Your First Full Stack Application to the Cloud
4/5/2019 2:30 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS.
Introduction to Docker
Inside SQL Server Containers
Testing inside of Kubernetes and Openshift
Oracle Container Cloud Service made easy HROUG Conference 2018
OpenShift as a cloud for Data Science
Kubernetes.
Architecture Agnostic Docker Build Systems
OpenStack Summit Berlin – November 14, 2018
SQL Server 2019: What’s new? Eugene Meidinger
Amazon Web Services RDS with SQL Server
Data Science Infrastructure as Code
Sql Server 2019: what’s new?.
Docker for DBAs SQL Saturday 8/17/2019.
SQL Server Devops with production data
The Future of Database Development (with containers)
SQL Server on Containers
The real Benefits of IBM - C exam. IBM - C : Cloud Solutions Certification Provider:IBM Exam Code:C Exam Name:IBM Cloud Private.
Presentation transcript:

Kubernetes

About me ... DevOps Architect at TV2 Bjarte Brandt DevOps Architect at TV2 Board member: Oracle User Group Norway (OUGN) Developer @Vizrt 1999 2006 2012 2017 Windows 2000, XP, Borland, Java, Oracle Database Developer, DBA, Broadcast, Sports, Elections Windows/Linux Oracle Database, Developer, python, SQL, PLSQL Linux, Oracle Database,Exadata, Exalogic, PLSQL, Storage, Network, OVM, Weblogic, Ansible Linux, Elasticsearch, Docker, Jenkins, Kafka, Rabbit MQ, Ansible, SaltStack, Terraform, Kubernetes ... Application Engineer @Hydro Oracle Database Administrator @BKK DevOps Architect @TV2

Let’s prepare for our live demo ... Source in our AWS environment $. ./00_environment.sh (don’t forget the «.») Delete github repo kube-app (myblog) $./delete_repo.sh Create kubernetes cluster in AWS $./01_create_cluster.sh

#. /bin/bash # create s3 bucket #!/bin/bash # create s3 bucket. This is where the cluster configuration is stored. aws s3api create-bucket \ --bucket ${CLUSTER_FULL_NAME}-state \ --region eu-central-1 \ --create-bucket-configuration LocationConstraint=eu-central-1 # enable snapshot #aws s3api put-bucket-versioning --bucket ${CLUSTER_FULL_NAME}-state --versioning-configuration Status=Enabled # we need to reference the s3 bucket export KOPS_STATE_STORE="s3://${CLUSTER_FULL_NAME}-state" kops create cluster \ --name=${CLUSTER_FULL_NAME} \ --zones=${CLUSTER_AWS_AZ} \ --master-size="t2.medium" \ --node-size="t2.medium" \ --node-count="2" \ --dns-zone=${DOMAIN_NAME} \ --ssh-public-key="~/.ssh/id_rsa.pub" \ --kubernetes-version="1.10.1" --yes

Container technology. Let’s dive into the world of docker.

Shipping code to the server is too hard. Why containers? Shipping code to the server is too hard.

The combination of namespace and cgroup enables container technology! Ten years ago.... Linux Kernel Namespace: isolation, Much like FreeBSD Jails, Solaris Zones. Started in 2002 ns:mnt,pid,net,ipc,uts,user. Look into /proc/pid/ns Cgroup (control group): resource management, resource accounting. Started in 2006 (Google). Merged into kernel in 2008 (2.6.24) Look at /proc/pid/cgroup (process), /proc/cgroup The combination of namespace and cgroup enables container technology!

Wait!! We forgot CoW! Filesystem Property CoW: Copy On Write. When container starts, image (storage,libs,apps,etc) is availabe. Just mount. This is fast! Storage keeps track of what has changed. AUFS,overlay (file level) look into /var/lib/docker/…. DeviceMapper (RHEL) (block level) BTRFS, ZFS (FS level)

Container Deployment

$git push hook

Kubernetes

Kubernetes can help us ... Where are my containers running? I need an overview. (labels) How much resources are my containers consuming? We want to focus on the application side of our service, not infrastructure. And a lot more ... (deployment,scale,operations,monitoring,health)

What is Kubernetes?

Basic Concepts – API Objects Pods – one or more containers Labels / Selectors – labels are queried by selectors Replication Controllers / ReplicaSets Deployments - bring up Pods and RelicaSets Services - NodePort,LoadBalancer,External StatefulSet DaemonSet All resources can be expressed as YAML or JSON files.

1. 2. 3. 4. 5. Demo: Our blog site Create some blog content $ hugo new site kube-app $ hugo new posts/handy-bash-one-liners.md $ hugo new posts/kubectl.md 2. 3. 4. 5.