{"id":73305,"date":"2018-03-28T10:00:56","date_gmt":"2018-03-28T17:00:56","guid":{"rendered":""},"modified":"2025-01-24T13:02:37","modified_gmt":"2025-01-24T21:02:37","slug":"deploy-java-application-azure-kubernetes-service-cosmos-db","status":"publish","type":"post","link":"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/","title":{"rendered":"Deploying a Java application on Azure Container Service and Cosmos DB"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"introduction\">Introduction<\/h2>\n\n\n\n<p>Bitnami was recently invited to speak at a few Azure Meetups and we took that as an opportunity to demonstrate something cool. We love our partnership with Microsoft and are doing tons of great things together on Azure, Azure Container Service (AKS), Helm and in the Azure Marketplace.<\/p>\n\n\n\n<p>Inspired by that work we wanted to showcase a fun use case, taking a common application type (Java) and running it in a container on a cool, new, managed Kubernetes platform (AKS), while leveraging a massively scalable distributed database (Cosmos DB). This blog features a recorded live walkthrough of building, deploying and testing that application.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"prerequisites\">Prerequisites<\/h2>\n\n\n\n<p>If you would like to follow along, a couple of accounts need to be set up beforehand. Most notably:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/azure.microsoft.com\/en-us\/free\/\">Microsoft Azure account<\/a>, for running Kubernetes (AKS) and MongoDB (CosmosDB)<\/li>\n\n\n\n<li><a href=\"https:\/\/hub.docker.com\/\">Docker Hub account<\/a>, for storing the application image<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"setup\">Setup<\/h2>\n\n\n\n<p>As mentioned earlier, the video was captured live. However, there are a few simple steps that were completed before the camera was rolling:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install and run Azure CLI (command line interface).<\/li>\n\n\n\n<li>Run the following commands:\n<ul class=\"wp-block-list\">\n<li>Create Kubernetes (K8S) cluster (az aks create&#8230;)<\/li>\n\n\n\n<li>Create Cosmos DB (az cosmosdb create\u2026)<\/li>\n\n\n\n<li>Install Helm (helm init; helm install\u2026)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>A sample Java app was pushed to a public GitHub repo (<a href=\"https:\/\/github.com\/nomisbeme\/customerapp\">https:\/\/github.com\/nomisbeme\/customerapp<\/a>)<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"overview\">Overview<\/h2>\n\n\n\n<p>After basic setup and cloning the git repo, the video will walk you through the following progression:<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" alt=\"workflow diagram with text, \"build, deploy, test, modify, push\"\" src=\"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-1.webp\" alt='workflow diagram with text, \"build, deploy, test, modify, push\"' class=\"wp-image-73309 webp-format\" srcset=\"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-1.webp 581w, https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-1-300x33.webp 300w, https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-1-330x36.webp 330w, https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-1-400x44.webp 400w\" data-orig-alt=\"workflow diagram with text, \"build, deploy, test, modify, push\"\" src=\"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-1.png\" data-orig-srcset=\"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-1.png 581w, https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-1-300x33.png 300w, https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-1-330x36.png 330w, https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-1-400x44.png 400w\"><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Build<\/strong> and package the application in a container image<\/li>\n\n\n\n<li><strong>Deploy<\/strong> the application to Kubernetes<\/li>\n\n\n\n<li><strong>Test<\/strong> the app in your browser<\/li>\n\n\n\n<li><strong>Modify<\/strong> the app (to accept customer records with email addresses too)<\/li>\n\n\n\n<li><strong>Push<\/strong> the rebuilt version of the app and confirm the new deployment works!<\/li>\n<\/ul>\n\n\n\n<p>Once completed, the environment will look like:<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2.webp\" alt=\"Kubernetes diagram\" class=\"wp-image-73308 webp-format\" srcset=\"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2.webp 1012w, https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2-300x124.webp 300w, https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2-768x318.webp 768w, https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2-330x137.webp 330w, https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2-800x331.webp 800w, https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2-400x166.webp 400w\" data-orig-src=\"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2.png\" data-orig-srcset=\"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2.png 1012w, https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2-300x124.png 300w, https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2-768x318.png 768w, https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2-330x137.png 330w, https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2-800x331.png 800w, https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2-400x166.png 400w\"><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"check-out-the-video\">Check out the Video<\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Deploying a Java Application on Azure Kubernetes Service with Cosmos DB\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube-nocookie.com\/embed\/HBPQJIBi2kU?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><em>Cast: On the right: Simon Bennett (Bitnami Product Manager, lead vocals, keyboards); On the left: Brad Bock (Bitnami Program Manager, backing vocals)<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"pieces-parts\">Pieces\/Parts<\/h2>\n\n\n\n<p>Why does the demo use these technologies?<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Java<\/strong>: Java is a technology known to millions of developers around the world. Using projects like Spring Boot, Java developers can create cloud-aware applications very quickly.<\/li>\n\n\n\n<li><strong>Docker<\/strong>: Container images are a great way to package your applications, but packaging by itself is not enough &#8211; you\u2019ve got to get the app running in the cloud.<\/li>\n\n\n\n<li><strong>Kubernetes<\/strong>: This demo uses the Azure Container Service (AKS) to achieve this goal. Kubernetes can run on any cloud (or your laptop, co-lo, or datacenter), but using a managed service like AKS lets you focus on building your app, not on the details of Kubernetes setup and configuration. Recall how quickly the rolling update was performed in the video? Containers can spin up in seconds, compared to VMs which typically take a few minutes.<\/li>\n\n\n\n<li><strong>Database<\/strong>: Using Cosmos DB with the demo app gets us started quickly by providing a single-region, low-throughput, low-cost database, with the option to add advanced capabilities later such as automated backups and geographic replication.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"wrap-up\">Wrap-Up<\/h2>\n\n\n\n<p>A lot of ground was covered in a short amount of time in the video. Hopefully you can see that by using these new platforms and technologies you can greatly simplify the process of deploying scalable applications. With tools like AKS and Cosmos DB, we\u2019ve come a long way from the early days of Infrastructure-as-a-Service (IaaS), and even further from physical data centers. Not long ago deploying an application was a painful process for the average software developer, with the rough equivalent of these tasks taking hours, days, or even weeks if considering legacy provisioning of hardware and software!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"learn-more\">Learn More<\/h2>\n\n\n\n<p>Want to learn more? Try it yourself!<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/nomisbeme\/customerapp\">Sample Java app and docs<\/a> used in the demo.<\/li>\n\n\n\n<li><a href=\"https:\/\/azure.microsoft.com\/en-us\/services\/container-service\/\">Azure Container Service (AKS)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/azure.microsoft.com\/en-us\/services\/cosmos-db\/\">Azure Cosmos DB<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/helm.sh\/\">Helm<\/a> for Kubernetes<\/li>\n\n\n\n<li><a href=\"https:\/\/bitnami.com\/kubernetes\">Bitnami Kubernetes Sandbox<\/a><\/li>\n<\/ul>\n\n\n\n<p><strong>Questions? Let us know in the comments.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Bitnami was recently invited to speak at a few Azure Meetups and we took that as an opportunity to demonstrate something cool. We love our partnership with Microsoft and are doing tons of great things together on Azure, Azure Container Service (AKS), Helm and in the Azure Marketplace.<\/p>\n","protected":false},"author":5562,"featured_media":73308,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"msxcm_post_with_no_image":false,"ep_exclude_from_search":false,"_classifai_error":"","_classifai_text_to_speech_error":"","footnotes":""},"post_tag":[2271,158],"content-type":[340],"topic":[2241,2242,2243],"programming-languages":[2259],"coauthors":[2286],"class_list":["post-73305","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-community-partners","tag-kubernetes","content-type-tutorials-and-demos","topic-cloud","topic-containers","topic-databases","programming-languages-java","review-flag-1593580428-734","review-flag-new-1593580248-669","review-flag-partn-1593580279-545","review-flag-sprin-1593580746-499"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Deploying a Java application on Azure Container Service and Cosmos DB | Microsoft Open Source Blog<\/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:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Deploying a Java application on Azure Container Service and Cosmos DB | Microsoft Open Source Blog\" \/>\n<meta property=\"og:description\" content=\"Introduction Bitnami was recently invited to speak at a few Azure Meetups and we took that as an opportunity to demonstrate something cool. We love our partnership with Microsoft and are doing tons of great things together on Azure, Azure Container Service (AKS), Helm and in the Azure Marketplace.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/\" \/>\n<meta property=\"og:site_name\" content=\"Microsoft Open Source Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-28T17:00:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-24T21:02:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1012\" \/>\n\t<meta property=\"og:image:height\" content=\"419\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Greg DeRenne\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/open.microsoft.com\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_twitter.jpg\" \/>\n<meta name=\"twitter:creator\" content=\"@OpenAtMicrosoft\" \/>\n<meta name=\"twitter:site\" content=\"@OpenAtMicrosoft\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Greg DeRenne\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 min read\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/\"},\"author\":[{\"@id\":\"https:\/\/opensource.microsoft.com\/blog\/author\/greg-derenne\/\",\"@type\":\"Person\",\"@name\":\"Greg DeRenne\"}],\"headline\":\"Deploying a Java application on Azure Container Service and Cosmos DB\",\"datePublished\":\"2018-03-28T17:00:56+00:00\",\"dateModified\":\"2025-01-24T21:02:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/\"},\"wordCount\":640,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/opensource.microsoft.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2.png\",\"keywords\":[\"Community\/partners\",\"Kubernetes\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/\",\"url\":\"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/\",\"name\":\"Deploying a Java application on Azure Container Service and Cosmos DB | Microsoft Open Source Blog\",\"isPartOf\":{\"@id\":\"https:\/\/opensource.microsoft.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2.png\",\"datePublished\":\"2018-03-28T17:00:56+00:00\",\"dateModified\":\"2025-01-24T21:02:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/#primaryimage\",\"url\":\"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2.png\",\"contentUrl\":\"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2.png\",\"width\":1012,\"height\":419,\"caption\":\"Kubernetes diagram\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/opensource.microsoft.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deploying a Java application on Azure Container Service and Cosmos DB\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/opensource.microsoft.com\/blog\/#website\",\"url\":\"https:\/\/opensource.microsoft.com\/blog\/\",\"name\":\"Microsoft Open Source Blog\",\"description\":\"Open dialogue about openness at Microsoft \u2013 open source, standards, interoperability\",\"publisher\":{\"@id\":\"https:\/\/opensource.microsoft.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/opensource.microsoft.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/opensource.microsoft.com\/blog\/#organization\",\"name\":\"Microsoft Open Source Blog\",\"url\":\"https:\/\/opensource.microsoft.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/opensource.microsoft.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2019\/08\/Microsoft-Logo.png\",\"contentUrl\":\"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2019\/08\/Microsoft-Logo.png\",\"width\":259,\"height\":194,\"caption\":\"Microsoft Open Source Blog\"},\"image\":{\"@id\":\"https:\/\/opensource.microsoft.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/OpenAtMicrosoft\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Deploying a Java application on Azure Container Service and Cosmos DB | Microsoft Open Source Blog","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:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/","og_locale":"en_US","og_type":"article","og_title":"Deploying a Java application on Azure Container Service and Cosmos DB | Microsoft Open Source Blog","og_description":"Introduction Bitnami was recently invited to speak at a few Azure Meetups and we took that as an opportunity to demonstrate something cool. We love our partnership with Microsoft and are doing tons of great things together on Azure, Azure Container Service (AKS), Helm and in the Azure Marketplace.","og_url":"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/","og_site_name":"Microsoft Open Source Blog","article_published_time":"2018-03-28T17:00:56+00:00","article_modified_time":"2025-01-24T21:02:37+00:00","og_image":[{"width":1012,"height":419,"url":"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2.png","type":"image\/png"}],"author":"Greg DeRenne","twitter_card":"summary_large_image","twitter_image":"https:\/\/open.microsoft.com\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_twitter.jpg","twitter_creator":"@OpenAtMicrosoft","twitter_site":"@OpenAtMicrosoft","twitter_misc":{"Written by":"Greg DeRenne","Est. reading time":"3 min read"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/#article","isPartOf":{"@id":"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/"},"author":[{"@id":"https:\/\/opensource.microsoft.com\/blog\/author\/greg-derenne\/","@type":"Person","@name":"Greg DeRenne"}],"headline":"Deploying a Java application on Azure Container Service and Cosmos DB","datePublished":"2018-03-28T17:00:56+00:00","dateModified":"2025-01-24T21:02:37+00:00","mainEntityOfPage":{"@id":"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/"},"wordCount":640,"commentCount":0,"publisher":{"@id":"https:\/\/opensource.microsoft.com\/blog\/#organization"},"image":{"@id":"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/#primaryimage"},"thumbnailUrl":"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2.png","keywords":["Community\/partners","Kubernetes"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/","url":"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/","name":"Deploying a Java application on Azure Container Service and Cosmos DB | Microsoft Open Source Blog","isPartOf":{"@id":"https:\/\/opensource.microsoft.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/#primaryimage"},"image":{"@id":"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/#primaryimage"},"thumbnailUrl":"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2.png","datePublished":"2018-03-28T17:00:56+00:00","dateModified":"2025-01-24T21:02:37+00:00","breadcrumb":{"@id":"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/#primaryimage","url":"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2.png","contentUrl":"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2018\/03\/Bitnami-AKS-post_image-2.png","width":1012,"height":419,"caption":"Kubernetes diagram"},{"@type":"BreadcrumbList","@id":"https:\/\/opensource.microsoft.com\/blog\/2018\/03\/28\/deploy-java-application-azure-kubernetes-service-cosmos-db\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/opensource.microsoft.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Deploying a Java application on Azure Container Service and Cosmos DB"}]},{"@type":"WebSite","@id":"https:\/\/opensource.microsoft.com\/blog\/#website","url":"https:\/\/opensource.microsoft.com\/blog\/","name":"Microsoft Open Source Blog","description":"Open dialogue about openness at Microsoft \u2013 open source, standards, interoperability","publisher":{"@id":"https:\/\/opensource.microsoft.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/opensource.microsoft.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/opensource.microsoft.com\/blog\/#organization","name":"Microsoft Open Source Blog","url":"https:\/\/opensource.microsoft.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/opensource.microsoft.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2019\/08\/Microsoft-Logo.png","contentUrl":"https:\/\/opensource.microsoft.com\/blog\/wp-content\/uploads\/2019\/08\/Microsoft-Logo.png","width":259,"height":194,"caption":"Microsoft Open Source Blog"},"image":{"@id":"https:\/\/opensource.microsoft.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/OpenAtMicrosoft"]}]}},"msxcm_display_generated_audio":false,"msxcm_animated_featured_image":null,"distributor_meta":false,"distributor_terms":false,"distributor_media":false,"distributor_original_site_name":"Microsoft Open Source Blog","distributor_original_site_url":"https:\/\/opensource.microsoft.com\/blog","push-errors":false,"_links":{"self":[{"href":"https:\/\/opensource.microsoft.com\/blog\/wp-json\/wp\/v2\/posts\/73305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/opensource.microsoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/opensource.microsoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/opensource.microsoft.com\/blog\/wp-json\/wp\/v2\/users\/5562"}],"replies":[{"embeddable":true,"href":"https:\/\/opensource.microsoft.com\/blog\/wp-json\/wp\/v2\/comments?post=73305"}],"version-history":[{"count":2,"href":"https:\/\/opensource.microsoft.com\/blog\/wp-json\/wp\/v2\/posts\/73305\/revisions"}],"predecessor-version":[{"id":97014,"href":"https:\/\/opensource.microsoft.com\/blog\/wp-json\/wp\/v2\/posts\/73305\/revisions\/97014"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/opensource.microsoft.com\/blog\/wp-json\/wp\/v2\/media\/73308"}],"wp:attachment":[{"href":"https:\/\/opensource.microsoft.com\/blog\/wp-json\/wp\/v2\/media?parent=73305"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/opensource.microsoft.com\/blog\/wp-json\/wp\/v2\/post_tag?post=73305"},{"taxonomy":"content-type","embeddable":true,"href":"https:\/\/opensource.microsoft.com\/blog\/wp-json\/wp\/v2\/content-type?post=73305"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/opensource.microsoft.com\/blog\/wp-json\/wp\/v2\/topic?post=73305"},{"taxonomy":"programming-languages","embeddable":true,"href":"https:\/\/opensource.microsoft.com\/blog\/wp-json\/wp\/v2\/programming-languages?post=73305"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/opensource.microsoft.com\/blog\/wp-json\/wp\/v2\/coauthors?post=73305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}