<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>post Long Kubernetes URLs (e.g.,  Rancher-hosted) in ITOM articles</title>
    <link>https://www.servicenow.com/community/itom-articles/long-kubernetes-urls-e-g-rancher-hosted/ta-p/2323983</link>
    <description>&lt;P&gt;Disclaimer: The tips and tweaks herein come with no support or warranty, explicit or implied.&amp;nbsp; Caveat emptor!&lt;/P&gt;
&lt;P&gt;At this writing, discovery of Kubernetes clusters takes some liberties with the provided cluster URL which breaks some implementations, namely those which include a path in the base cluster URL.&amp;nbsp; An example of this is Rancher, which uses a consistent base URL and then adds a path unique to each cluster.&amp;nbsp; Fortunately, this is easily remedied.&amp;nbsp; Here's an example of one way to do so.&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;Under Pattern Designer-&amp;gt;Custom Operations, open record "Kubernetes Get Call"&lt;/LI&gt;&lt;LI&gt;Locate the line of JavaScript which constructs the URL -- for me it was line 94 and it looked like this:
&lt;OL&gt;&lt;LI&gt;url = protocol + '://' + host + ':' + port + api_prefix;&lt;/LI&gt;&lt;/OL&gt;
&lt;/LI&gt;&lt;LI&gt;Comment the original line, then make a copy which reads as follows:
&lt;OL&gt;&lt;LI&gt;url = protocol + '://' + host + ':' + port + path + api_prefix;&lt;/LI&gt;&lt;/OL&gt;
&lt;/LI&gt;&lt;LI&gt;Update the record&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;This change will include any path elements you specify in your pattern URL parameter and allow you to discover individual clusters running under Rancher.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 20:23:31 GMT</pubDate>
    <dc:creator>Will Hallam</dc:creator>
    <dc:date>2022-09-06T20:23:31Z</dc:date>
    <item>
      <title>Long Kubernetes URLs (e.g.,  Rancher-hosted)</title>
      <link>https://www.servicenow.com/community/itom-articles/long-kubernetes-urls-e-g-rancher-hosted/ta-p/2323983</link>
      <description>&lt;P&gt;Disclaimer: The tips and tweaks herein come with no support or warranty, explicit or implied.&amp;nbsp; Caveat emptor!&lt;/P&gt;
&lt;P&gt;At this writing, discovery of Kubernetes clusters takes some liberties with the provided cluster URL which breaks some implementations, namely those which include a path in the base cluster URL.&amp;nbsp; An example of this is Rancher, which uses a consistent base URL and then adds a path unique to each cluster.&amp;nbsp; Fortunately, this is easily remedied.&amp;nbsp; Here's an example of one way to do so.&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;Under Pattern Designer-&amp;gt;Custom Operations, open record "Kubernetes Get Call"&lt;/LI&gt;&lt;LI&gt;Locate the line of JavaScript which constructs the URL -- for me it was line 94 and it looked like this:
&lt;OL&gt;&lt;LI&gt;url = protocol + '://' + host + ':' + port + api_prefix;&lt;/LI&gt;&lt;/OL&gt;
&lt;/LI&gt;&lt;LI&gt;Comment the original line, then make a copy which reads as follows:
&lt;OL&gt;&lt;LI&gt;url = protocol + '://' + host + ':' + port + path + api_prefix;&lt;/LI&gt;&lt;/OL&gt;
&lt;/LI&gt;&lt;LI&gt;Update the record&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;This change will include any path elements you specify in your pattern URL parameter and allow you to discover individual clusters running under Rancher.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 20:23:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-articles/long-kubernetes-urls-e-g-rancher-hosted/ta-p/2323983</guid>
      <dc:creator>Will Hallam</dc:creator>
      <dc:date>2022-09-06T20:23:31Z</dc:date>
    </item>
  </channel>
</rss>

