{"id":5720,"date":"2019-01-25T12:39:09","date_gmt":"2019-01-25T11:39:09","guid":{"rendered":"http:\/\/blog.think-v.com\/?p=5720"},"modified":"2025-05-22T09:18:19","modified_gmt":"2025-05-22T07:18:19","slug":"operationalizing-vmware-pks-with-bosh-how-to-get-started","status":"publish","type":"post","link":"https:\/\/bbrundert.com\/?p=5720","title":{"rendered":"Operationalizing VMware PKS with BOSH &#8211; how to get started"},"content":{"rendered":"<p>I have installed VMware PKS in a variety of environments and I typically show something that helps Platform Operators running PKS to dive even deeper into the status of PKS components beyond the pks cli. One of the key lifecycle components in PKS is called BOSH. BOSH deploys Kubernetes masters and workers and performs a number of other tasks. So how do you get access to BOSH in the easiest way?<\/p>\n<p>Step 1)<\/p>\n<ul>\n<li>Login to the Ops Manager VM via ssh:&nbsp;<span style=\"background-color: rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit;\"><em>ssh ubuntu@your.opsmanager.com<\/em>&nbsp;&nbsp;<\/span><\/li>\n<\/ul>\n<p>Step 2)<\/p>\n<ul>\n<li>Open Ops Manager and click on the BOSH Director tile:&nbsp;<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5721 alignnone\" src=\"https:\/\/bbrundert.com\/wp-content\/uploads\/2019\/01\/Bildschirmfoto-2019-01-25-um-11.52.06.png\" alt=\"\" width=\"557\" height=\"419\" srcset=\"https:\/\/bbrundert.com\/wp-content\/uploads\/2019\/01\/Bildschirmfoto-2019-01-25-um-11.52.06.png 557w, https:\/\/bbrundert.com\/wp-content\/uploads\/2019\/01\/Bildschirmfoto-2019-01-25-um-11.52.06-300x226.png 300w\" sizes=\"auto, (max-width: 557px) 100vw, 557px\" \/><\/li>\n<li>Click on the &#8222;Credentials&#8220; Tab and search for &#8222;BOSH Commandline Credentials&#8220;:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5722 alignnone\" src=\"https:\/\/bbrundert.com\/wp-content\/uploads\/2019\/01\/Bildschirmfoto-2019-01-25-um-11.53.51.png\" alt=\"\" width=\"888\" height=\"785\" srcset=\"https:\/\/bbrundert.com\/wp-content\/uploads\/2019\/01\/Bildschirmfoto-2019-01-25-um-11.53.51.png 888w, https:\/\/bbrundert.com\/wp-content\/uploads\/2019\/01\/Bildschirmfoto-2019-01-25-um-11.53.51-300x265.png 300w, https:\/\/bbrundert.com\/wp-content\/uploads\/2019\/01\/Bildschirmfoto-2019-01-25-um-11.53.51-768x679.png 768w\" sizes=\"auto, (max-width: 888px) 100vw, 888px\" \/><\/li>\n<li>You will see an output similar like this one:\n<pre>{\"credential\":\"BOSH_CLIENT=ops_manager \nBOSH_CLIENT_SECRET=ABCDEFGhijklmnopQRSTUVWxyz \nBOSH_CA_CERT=\/var\/tempest\/workspaces\/default\/root_ca_certificate \nBOSH_ENVIRONMENT=192.168.1.100 bosh \"}<\/pre>\n<\/li>\n<li>Copy and paste that line and reformat it the following way:\n<pre>BOSH_CLIENT=ops_manager \nBOSH_CLIENT_SECRET=ABCDEFGhijklmnopQRSTUVWxyz \nBOSH_CA_CERT=\/var\/tempest\/workspaces\/default\/root_ca_certificate \nBOSH_ENVIRONMENT=192.168.1.100<\/pre>\n<p>&nbsp;<\/li>\n<li>Easiest way to get started every time is to make it part of your .bashrc configuration by doing the following:\n<ul>\n<li>edit your <strong>.bashrc<\/strong> and append the outputs from above like this:<\/li>\n<li>\n<pre>export BOSH_CLIENT=ops_manager \nexport BOSH_CLIENT_SECRET=ABCDEFGhijklmnopQRSTUVWxyz \nexport BOSH_CA_CERT=\/var\/tempest\/workspaces\/default\/root_ca_certificate \nexport BOSH_ENVIRONMENT=192.168.1.100<\/pre>\n<\/li>\n<li>logout and login again (or just run the export commands on the CLI manually once)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li>Some example commands on how to interact with BOSH (and a nice cheat sheet at https:\/\/github.com\/DennyZhang\/cheatsheet-bosh-A4):<\/li>\n<li>\n<pre>bosh deployments\nPKS=$(bosh deployments | grep ^pivotal | awk '{print $1;}')\nbosh -d $PKS vms\nbosh -d $PKS instances\nbosh -d $PKS tasks\nbosh -d $PKS tasks -ar\nbosh -d $PKS task 724\nbosh -d $PKS task 724 --debug\n\nCLUSTER=$(bosh deployments | grep ^service-instance | awk '{print $1;}')\nbosh -d $CLUSTER vms\nbosh -d $CLUSTER vms --vitals\nbosh -d $CLUSTER tasks --recent=9\nbosh -d $CLUSTER task 2009 --debug\nbosh -d $CLUSTER ssh master\/0\nbosh -d $CLUSTER ssh worker\/0\nbosh -d $CLUSTER logs\nbosh -d $CLUSTER cloud-check<\/pre>\n<p>&nbsp;<\/li>\n<li><span style=\"background-color: rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit;\"><strong>Advanced users<\/strong>: you can also install the BOSH CLI on and admin VM and run from there:<\/span>\n<ul>\n<li><span style=\"background-color: rgba(0, 0, 0, 0.05); font-family: inherit; font-size: inherit;\">Download from https:\/\/github.com\/cloudfoundry\/bosh-cli\/releases<\/span><\/li>\n<li>Copy the certificate from the Ops Manager VM (\/var\/tempest\/workspaces\/default\/root_ca_certificate) to your admin VM and edit the .bashrc environment variables accordingly<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I have installed VMware PKS in a variety of environments and I typically show something that helps Platform Operators running PKS to dive even deeper into the status of PKS components beyond the pks cli. One of the key lifecycle components in PKS is called BOSH. BOSH deploys Kubernetes masters and workers and performs a &#8230; <a title=\"Operationalizing VMware PKS with BOSH &#8211; how to get started\" class=\"read-more\" href=\"https:\/\/bbrundert.com\/?p=5720\" aria-label=\"Mehr Informationen \u00fcber Operationalizing VMware PKS with BOSH &#8211; how to get started\">Weiterlesen<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[29],"class_list":["post-5720","post","type-post","status-publish","format-standard","hentry","category-cna","tag-kubernetes"],"_links":{"self":[{"href":"https:\/\/bbrundert.com\/index.php?rest_route=\/wp\/v2\/posts\/5720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bbrundert.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bbrundert.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bbrundert.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/bbrundert.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5720"}],"version-history":[{"count":1,"href":"https:\/\/bbrundert.com\/index.php?rest_route=\/wp\/v2\/posts\/5720\/revisions"}],"predecessor-version":[{"id":5949,"href":"https:\/\/bbrundert.com\/index.php?rest_route=\/wp\/v2\/posts\/5720\/revisions\/5949"}],"wp:attachment":[{"href":"https:\/\/bbrundert.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bbrundert.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bbrundert.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}