{"id":6400,"date":"2014-10-23T11:43:08","date_gmt":"2014-10-23T09:43:08","guid":{"rendered":"http:\/\/blog.zhaw.ch\/icclab\/?p=6400"},"modified":"2014-10-23T12:56:48","modified_gmt":"2014-10-23T10:56:48","slug":"setup-a-kubernetes-cluster-on-openstack-with-heat","status":"publish","type":"post","link":"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/","title":{"rendered":"Setup a Kubernetes Cluster on OpenStack with Heat"},"content":{"rendered":"<p>In this post we take a look at\u00a0Kubernetes and help you setup a Kubernetes Cluster on your existing OpenStack Cloud using its Orchestration Service Heat. This Kubernetes Cluster should only\u00a0be used as a Proof of Concept.<\/p>\n<p>Technology involved:<br \/>\nKubernetes: <a href=\"https:\/\/github.com\/GoogleCloudPlatform\/kubernetes\" target=\"_blank\">https:\/\/github.com\/GoogleCloudPlatform\/kubernetes<\/a><br \/>\nCoreOS:\u00a0<a href=\"https:\/\/coreos.com\/\" target=\"_blank\">https:\/\/coreos.com\/<\/a><br \/>\netcd:\u00a0<a href=\"https:\/\/github.com\/coreos\/etcd\" target=\"_blank\">https:\/\/github.com\/coreos\/etcd<br \/>\n<\/a>fleet:\u00a0<a href=\"https:\/\/github.com\/coreos\/fleet\" target=\"_blank\">https:\/\/github.com\/coreos\/fleet<\/a><br \/>\nflannel:\u00a0<a href=\"https:\/\/github.com\/coreos\/flannel\" target=\"_blank\">https:\/\/github.com\/coreos\/flannel<br \/>\n<\/a>kube-register:\u00a0<a href=\"https:\/\/github.com\/kelseyhightower\/kube-register\" target=\"_blank\">https:\/\/github.com\/kelseyhightower\/kube-register<\/a><\/p>\n<p>The Heat Template used in this Post is available on <a href=\"https:\/\/github.com\/icclab\/kubernetes-on-openstack-demo\" target=\"_blank\">Github<\/a>.<\/p>\n<p><strong>What is Kubernetes?<\/strong><\/p>\n<p>Kubernetes allows the management of docker containers at scale. Its core concepts are covered in this <a href=\"https:\/\/docs.google.com\/presentation\/d\/17LyzmCLtTWlJd7L9a-RpI0y_3OIuxRL0n1C247zkwIs\/edit?usp=sharing\" target=\"_blank\">presentation<\/a>, held at the recent <a title=\"8th Swiss Openstack meetup\" href=\"http:\/\/blog.zhaw.ch\/icclab\/8th-swiss-openstack-meetup\/\" target=\"_blank\">OpenStack&amp;Docker Usergroup meetups<\/a>.<\/p>\n<p>A complete\u00a0overview of\u00a0Kubernetes is found on the <a href=\"https:\/\/github.com\/GoogleCloudPlatform\/kubernetes\/blob\/master\/DESIGN.md\" target=\"_blank\">Kubernetes Repo<\/a>.<\/p>\n<p><strong>Architecture<\/strong><\/p>\n<p>The provisioned Cluster consists of 5 VMs. The first one, discovery,\u00a0is a dedicated etcd host. This allows easy etcd discovery thanks to a static IP-Address.<\/p>\n<p>A\u00a0Kubernetes Master host is setup with the Kubernetes components <a href=\"https:\/\/github.com\/GoogleCloudPlatform\/kubernetes\/blob\/master\/DESIGN.md#kubernetes-api-server\" target=\"_blank\">apiserver<\/a>, <a href=\"https:\/\/github.com\/GoogleCloudPlatform\/kubernetes\/blob\/master\/DESIGN.md#kubernetes-api-server\" target=\"_blank\">scheduler<\/a>, <a href=\"https:\/\/github.com\/kelseyhightower\/kube-register#kube-register\" target=\"_blank\">kube-register<\/a>, <a href=\"https:\/\/github.com\/GoogleCloudPlatform\/kubernetes\/blob\/master\/DESIGN.md#kubernetes-api-server\" target=\"_blank\">controller-manager<\/a> as well as <a href=\"https:\/\/github.com\/GoogleCloudPlatform\/kubernetes\/blob\/master\/DESIGN.md#kubernetes-proxy\" target=\"_blank\">proxy<\/a>. This machine\u00a0also gets a floating IP assined and acts as a access point to your Kubernetes cluster.<\/p>\n<p>Three Kubernetes Minion hosts are setup with the Kubernetes components <a href=\"https:\/\/github.com\/GoogleCloudPlatform\/kubernetes\/blob\/master\/DESIGN.md#kubelet\" target=\"_blank\">kubelet<\/a> and <a href=\"https:\/\/github.com\/GoogleCloudPlatform\/kubernetes\/blob\/master\/DESIGN.md#kubernetes-proxy\" target=\"_blank\">proxy<\/a>.<\/p>\n<p><strong>HowTo<\/strong><\/p>\n<p>Follow the instructions on the Github repo to get your Kubernetes cluster up and running:<\/p>\n<p><a href=\"https:\/\/github.com\/icclab\/kubernetes-on-openstack-demo\" target=\"_blank\">https:\/\/github.com\/icclab\/kubernetes-on-openstack-demo\u00a0<\/a><\/p>\n<p><strong>Examples<\/strong><\/p>\n<p>Two examples are provided in the repo:<\/p>\n<ul>\n<li>a slightly modified version of the <a href=\"https:\/\/github.com\/icclab\/kubernetes-on-openstack-demo\/tree\/master\/examples\/guestbook\" target=\"_blank\">guestbook<\/a> example from the <a href=\"https:\/\/github.com\/GoogleCloudPlatform\/kubernetes\" target=\"_blank\">Kubernetes repo<\/a><\/li>\n<li>a simple\u00a0<a href=\"https:\/\/github.com\/icclab\/kubernetes-on-openstack-demo\/tree\/master\/examples\/nginx\" target=\"_blank\">nginx<\/a> setup<\/li>\n<\/ul>\n<div class=\"pt-sm\">Schlagw\u00f6rter: <a href=\"https:\/\/blog.zhaw.ch\/icclab\/tag\/docker\/\">docker<\/a>, <a href=\"https:\/\/blog.zhaw.ch\/icclab\/tag\/kubernetes\/\">kubernetes<\/a>, <a href=\"https:\/\/blog.zhaw.ch\/icclab\/tag\/openstack\/\">openstack<\/a><br><\/div>","protected":false},"excerpt":{"rendered":"<p>In this post we take a look at\u00a0Kubernetes and help you setup a Kubernetes Cluster on your existing OpenStack Cloud using its Orchestration Service Heat. This Kubernetes Cluster should only\u00a0be used as a Proof of Concept. Technology involved: Kubernetes: https:\/\/github.com\/GoogleCloudPlatform\/kubernetes CoreOS:\u00a0https:\/\/coreos.com\/ etcd:\u00a0https:\/\/github.com\/coreos\/etcd fleet:\u00a0https:\/\/github.com\/coreos\/fleet flannel:\u00a0https:\/\/github.com\/coreos\/flannel kube-register:\u00a0https:\/\/github.com\/kelseyhightower\/kube-register The Heat Template used in this Post is available on [&hellip;]<\/p>\n","protected":false},"author":163,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[5,15,21],"tags":[484,483,240],"features":[],"class_list":["post-6400","post","type-post","status-publish","format-standard","hentry","category-articles","category-howtos","category-openstack-2","tag-docker","tag-kubernetes","tag-openstack"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Setup a Kubernetes Cluster on OpenStack with Heat - Service Engineering (ICCLab &amp; SPLab)<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setup a Kubernetes Cluster on OpenStack with Heat\" \/>\n<meta property=\"og:description\" content=\"In this post we take a look at\u00a0Kubernetes and help you setup a Kubernetes Cluster on your existing OpenStack Cloud using its Orchestration Service Heat. This Kubernetes Cluster should only\u00a0be used as a Proof of Concept. Technology involved: Kubernetes: https:\/\/github.com\/GoogleCloudPlatform\/kubernetes CoreOS:\u00a0https:\/\/coreos.com\/ etcd:\u00a0https:\/\/github.com\/coreos\/etcd fleet:\u00a0https:\/\/github.com\/coreos\/fleet flannel:\u00a0https:\/\/github.com\/coreos\/flannel kube-register:\u00a0https:\/\/github.com\/kelseyhightower\/kube-register The Heat Template used in this Post is available on [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/\" \/>\n<meta property=\"og:site_name\" content=\"Service Engineering (ICCLab &amp; SPLab)\" \/>\n<meta property=\"article:published_time\" content=\"2014-10-23T09:43:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-10-23T10:56:48+00:00\" \/>\n<meta name=\"author\" content=\"Michael Erne\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Erne\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/\"},\"author\":{\"name\":\"Michael Erne\",\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/#\/schema\/person\/df902139508f138bb44a5cdc7641e762\"},\"headline\":\"Setup a Kubernetes Cluster on OpenStack with Heat\",\"datePublished\":\"2014-10-23T09:43:08+00:00\",\"dateModified\":\"2014-10-23T10:56:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/\"},\"wordCount\":253,\"commentCount\":0,\"keywords\":[\"docker\",\"kubernetes\",\"openstack\"],\"articleSection\":[\"Articles\",\"HowTos\",\"OpenStack\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/\",\"url\":\"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/\",\"name\":\"Setup a Kubernetes Cluster on OpenStack with Heat - Service Engineering (ICCLab &amp; SPLab)\",\"isPartOf\":{\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/#website\"},\"datePublished\":\"2014-10-23T09:43:08+00:00\",\"dateModified\":\"2014-10-23T10:56:48+00:00\",\"author\":{\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/#\/schema\/person\/df902139508f138bb44a5cdc7641e762\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\/\/blog.zhaw.ch\/icclab\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setup a Kubernetes Cluster on OpenStack with Heat\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/#website\",\"url\":\"https:\/\/blog.zhaw.ch\/icclab\/\",\"name\":\"Service Engineering (ICCLab &amp; SPLab)\",\"description\":\"A Blog of the ZHAW Zurich University of Applied Sciences\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.zhaw.ch\/icclab\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/blog.zhaw.ch\/icclab\/#\/schema\/person\/df902139508f138bb44a5cdc7641e762\",\"name\":\"Michael Erne\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/d5302c9f51c99673b7fce48118450863055aa694b7035caa1b7df5e6399eabd7?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d5302c9f51c99673b7fce48118450863055aa694b7035caa1b7df5e6399eabd7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d5302c9f51c99673b7fce48118450863055aa694b7035caa1b7df5e6399eabd7?s=96&d=mm&r=g\",\"caption\":\"Michael Erne\"},\"url\":\"https:\/\/blog.zhaw.ch\/icclab\/author\/ernm\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Setup a Kubernetes Cluster on OpenStack with Heat - Service Engineering (ICCLab &amp; SPLab)","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/","og_locale":"en_US","og_type":"article","og_title":"Setup a Kubernetes Cluster on OpenStack with Heat","og_description":"In this post we take a look at\u00a0Kubernetes and help you setup a Kubernetes Cluster on your existing OpenStack Cloud using its Orchestration Service Heat. This Kubernetes Cluster should only\u00a0be used as a Proof of Concept. Technology involved: Kubernetes: https:\/\/github.com\/GoogleCloudPlatform\/kubernetes CoreOS:\u00a0https:\/\/coreos.com\/ etcd:\u00a0https:\/\/github.com\/coreos\/etcd fleet:\u00a0https:\/\/github.com\/coreos\/fleet flannel:\u00a0https:\/\/github.com\/coreos\/flannel kube-register:\u00a0https:\/\/github.com\/kelseyhightower\/kube-register The Heat Template used in this Post is available on [&hellip;]","og_url":"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/","og_site_name":"Service Engineering (ICCLab &amp; SPLab)","article_published_time":"2014-10-23T09:43:08+00:00","article_modified_time":"2014-10-23T10:56:48+00:00","author":"Michael Erne","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Michael Erne","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/#article","isPartOf":{"@id":"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/"},"author":{"name":"Michael Erne","@id":"https:\/\/blog.zhaw.ch\/icclab\/#\/schema\/person\/df902139508f138bb44a5cdc7641e762"},"headline":"Setup a Kubernetes Cluster on OpenStack with Heat","datePublished":"2014-10-23T09:43:08+00:00","dateModified":"2014-10-23T10:56:48+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/"},"wordCount":253,"commentCount":0,"keywords":["docker","kubernetes","openstack"],"articleSection":["Articles","HowTos","OpenStack"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/","url":"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/","name":"Setup a Kubernetes Cluster on OpenStack with Heat - Service Engineering (ICCLab &amp; SPLab)","isPartOf":{"@id":"https:\/\/blog.zhaw.ch\/icclab\/#website"},"datePublished":"2014-10-23T09:43:08+00:00","dateModified":"2014-10-23T10:56:48+00:00","author":{"@id":"https:\/\/blog.zhaw.ch\/icclab\/#\/schema\/person\/df902139508f138bb44a5cdc7641e762"},"breadcrumb":{"@id":"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.zhaw.ch\/icclab\/setup-a-kubernetes-cluster-on-openstack-with-heat\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/blog.zhaw.ch\/icclab\/"},{"@type":"ListItem","position":2,"name":"Setup a Kubernetes Cluster on OpenStack with Heat"}]},{"@type":"WebSite","@id":"https:\/\/blog.zhaw.ch\/icclab\/#website","url":"https:\/\/blog.zhaw.ch\/icclab\/","name":"Service Engineering (ICCLab &amp; SPLab)","description":"A Blog of the ZHAW Zurich University of Applied Sciences","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.zhaw.ch\/icclab\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blog.zhaw.ch\/icclab\/#\/schema\/person\/df902139508f138bb44a5cdc7641e762","name":"Michael Erne","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d5302c9f51c99673b7fce48118450863055aa694b7035caa1b7df5e6399eabd7?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d5302c9f51c99673b7fce48118450863055aa694b7035caa1b7df5e6399eabd7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d5302c9f51c99673b7fce48118450863055aa694b7035caa1b7df5e6399eabd7?s=96&d=mm&r=g","caption":"Michael Erne"},"url":"https:\/\/blog.zhaw.ch\/icclab\/author\/ernm\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/posts\/6400","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/users\/163"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/comments?post=6400"}],"version-history":[{"count":10,"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/posts\/6400\/revisions"}],"predecessor-version":[{"id":6453,"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/posts\/6400\/revisions\/6453"}],"wp:attachment":[{"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/media?parent=6400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/categories?post=6400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/tags?post=6400"},{"taxonomy":"features","embeddable":true,"href":"https:\/\/blog.zhaw.ch\/icclab\/wp-json\/wp\/v2\/features?post=6400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}