---
layout: responsive_tables
---
<!-- Set this_pages_navbar  -->
{% comment %}
Here, we loop through site.data for the current view
to set two variables:
  1. this_pages_navbar - a object containing this page's navbar
  2. navbars - a list of this site's toplevel navbars sorted by navbar.order

The code is a little roundabout for a few reasons:
  - liquid doesn't provide a simple way to create an empty array,
  so we just split an empty string.
  - liquid stores the navbars (in site.data.navbars) as
  a list keyed by the filename. We don't really care about the filename
  here, so we just need the data field. But, liquid doesn't provide a
  simple way to 'iteritems', so we have to manually loop through and access
  the  2nd item.
  - liquid also has a bug where it truncates after first `.` of a directory
  name in _data (i.e. _data/v0.1 will be stored as data.v0). Until that
  bug's fixed, we store version data in _data/v0_1 and do a string replace
  to find the right data.
{% endcomment %}

{% assign current_page = page.path | replace_first: page.version,"" | split: "/" %}
{% assign current_page = current_page[0] | prepend: "/" | append: "/" %}

{% capture version %}{{ page.version | replace: ".","_" }}{% endcapture %}

{% assign unsorted_navbars = "" | split:"|" %}
{% for navbars_hashmap in site.data.navbars %}
  {% assign navbar = navbars_hashmap[1] %}
  {% assign unsorted_navbars = unsorted_navbars | push: navbar %}
  {% assign navbar_size = navbar.path | size %}
  {% if current_page == navbar.path %}
    {% assign this_pages_navbar = navbar %}
  {% endif %}
{% endfor %}
{% assign navbars = unsorted_navbars | sort:"order" %}
{% assign tabs_linked_group = false %}

<!Doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="docsearch:version" content="{{page.version}}">
    {% if site.noindex %}<meta name="robots" content="noindex">{% endif %}
    <link rel="shortcut icon" type="image/png" href="{{site.baseurl}}/images/favicon.png">
    <link href='https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
    <link href="https://fonts.googleapis.com/css?family=Poppins:100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic&amp;ver=5.3.2" rel="stylesheet" media="all">    
    <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
    <link rel="stylesheet" href='https://fonts.googleapis.com/css?family=Roboto+Mono' type='text/css'>
    {% if page.custom_css %}
    <link rel="stylesheet" href="{{site.baseurl}}/{{ page.custom_css }}"/>
    {% endif %}
    <link href="https://www.projectcalico.org/wp-content/plugins/wpfront-notification-bar/css/wpfront-notification-bar.css?ver=1.7.1" rel="stylesheet" type="text/css" media="all">
    <link rel="stylesheet" href="{{site.baseurl}}/css/font-awesome/font-awesome.min.css"/>
    <link rel="stylesheet" href="{{site.baseurl}}/css/instantsearch/instantsearch.min.css"/>
    <link rel="stylesheet" href="{{site.baseurl}}/css/style.css"/>
    <script src="{{site.baseurl}}/js/jquery-2.2.0.min.js"></script>
    <script src="{{site.baseurl}}/js/bootstrap/bootstrap.min.js"></script>
    <script src="{{site.baseurl}}/js/algoliasearch/algoliasearch.min.js"></script>
    <script src="{{site.baseurl}}/js/instantsearch/instantsearch.min.js"></script>
    <script src="{{site.baseurl}}/js/script.js"></script>
    <script defer src="{{site.baseurl}}/js/scrollPage.js"></script>
{% if page.version != "v1.5" and page.version != "v1.6" and page.version != "v2.0" and page.version != "v2.1" and page.version != "v2.2" and page.version != "v2.3" and page.version != "v2.4" and page.version != "v2.5" and page.version != "v2.6" and page.version != "v3.0" and page.version != "v3.1" and page.version != "v3.2" and page.version != "v3.3" %}
    <script src="{{site.baseurl}}/js/clipboard.min.js"></script>
    <script src="{{site.baseurl}}/js/code-select.js"></script>
{% endif %}
    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

      ga('create', 'UA-52125893-4', 'auto');
      ga('send', 'pageview');
    </script>
    <!-- Google Tag Manager -->
    <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','GTM-KCHDXB2');</script>
    <!-- End Google Tag Manager -->
    {% seo %}
  </head>
  <body>
    <!-- Google Tag Manager (noscript) -->
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KCHDXB2" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <!-- End Google Tag Manager (noscript) -->
    <section>
      {% if site.open_source %}
      {% include open_source_navbar.html %}
      {% else %}
      {% include enterprise_navbar.html %}
      {% endif %}
      <div class="container-fluid">
        <div class="row-offcanvas row-offcanvas-left main-content {% unless page.show_toc %}no-toc{% endunless  %}">
          <div class="sidebar-container sidebar-offcanvas">
            <div class="sidebar">
              <div id="sidebar">
                <div class="panel-group" id="sidebar-accordion">
                  {% for navbar in navbars %}
                    {% assign navbar_id = navbar.path | replace: "/", "-" | prepend: "navbar" %}
                    <div class="panel panel-default">
                      <div
                        class="panel-heading{% if this_pages_navbar == navbar %} current-page {% endif %}"
                        role="button"
                        data-toggle="collapse"
                        data-target="#{{ navbar_id }}"
                        aria-controls="{{ navbar_id }}"
                      >
                        <h4 class="panel-title">
                            <a href="{{site.baseurl}}{{navbar.path}}" class="navbar-title--{% if navbar.section %}not-clickable{% else %}clickable{% endif %}">
                              <span>{{ navbar.title }}</span>
                            </a>
                        </h4>
                      </div>
                      {% assign availableToc = navbar.section | where_exp: "item", "item.title != navbar.title" %}
                      {% assign tocPrefix = navbar_id | append: "nav" %}
                      <div id="{{ navbar_id }}" class="panel-collapse collapse {% if this_pages_navbar == navbar and availableToc.size > 0 %}in{% endif %}">
                          {% if availableToc %}
                            <div class="panel-body">
                                {% include sidebar.html sidebar=availableToc prefix=tocPrefix %}
                            </div> 
                          {% endif %}
                      </div>
                    </div>
                  {% endfor %}
                  <div class="panel panel-default">
                    <div class="panel-heading free-training" role="button" aria-controls="navbar-free-training">
                      <h4 class="panel-title">
                        <a href="https://www.tigera.io/lp/calico-certification/" target="_blank" rel="noopener noreferrer" class="navbar-title--clickable">
                          <span>Free training</span>
                        </a>
                      </h4>
                    </div>                    
                  </div>
                  <div class="panel panel-default">
                    <div class="panel-heading free-ebook" role="button" aria-controls="navbar-free-ebook">
                      <h4 class="panel-title">
                        <a href="https://www.tigera.io/lp/kubernetes-security-and-observability-ebook/" target="_blank" rel="noopener noreferrer" class="navbar-title--clickable">
                          <span>Free O'Reilly ebook</span>
                        </a>
                      </h4>
                    </div>                    
                  </div>                  
                </div>
                <div class="row">
                  <div class="col-sm-0"></div>
                </div>
              </div>
            </div>
          </div>
          <div class="article-container">
            <div id="content-main">
              <p class="visible-xs clearfix">
                <button type="button" class="btn btn-primary btn-xs" data-toggle="offcanvas">Toggle nav</button>
              </p>
              <!-- TOP DOCUMENTATION PAGE NAVBAR -->
              {% capture edit_page %}
                  <a data-proofer-ignore href="https://github.com/projectcalico/calico/tree/master/calico/{{page.path}}" class="edit-page-link" target="_blank" rel="noopener noreferrer">
                    <i class="fa fa-github" aria-hidden="true"></i>
                    Edit this page
                  </a>
              {% endcapture %}
              <!-- END TOP DOCUMENTATION PAGE NAVBAR -->
              {% include nav-breadcrumbs.html content=edit_page %}

              {% if page.calico_cloud_header -%}
              {% include cloud_header.html %}  
              {% elsif page.calico_enterprise %}
              {% include enterprise_header.html %} 
              {% endif -%}
              {% if page.show_title -%}
              <h1>{{ page.title }}</h1>
              {% endif -%}
              {% if page.show_read_time -%}
                {% include read_time.html %}
              {% endif -%}
              <!-- TODO [turk]: uncomment once JS supports a different identifier besides ID so that we don't have two elements with the same ID
              <div class="visible-xs visible-sm">
                {% include toc.html html=content class=".toc" item_class=".toc__nested" %}
              </div>
               -->
              {{ content }}
              {% if page.calico_enterprise -%}
              {% include enterprise_footer.html %}   
              {% endif -%}

              <!-- BOTTOM DOCUMENTATION PAGE NAVBAR -->
              <div style="margin-top: 60px; margin-bottom: 40px; padding-top: 20px; border-top: 1px solid #999; text-align: left; color: #999;">
                <a href="https://slack.projectcalico.org/" style="margin-left: 30px; color: #999; text-decoration: none;" target="_blank" rel="noopener noreferrer"><i class="fa fa-slack" aria-hidden="true"></i>&nbsp;Slack</a>
                <a href="https://discuss.projectcalico.org/" style="margin-left: 30px; color: #999; text-decoration: none;" target="_blank" rel="noopener noreferrer"><i class="fa fa-comments" aria-hidden="true"></i>&nbsp;Discourse</a>
                <a href="https://github.com/projectcalico/calico" style="margin-left: 30px; color: #999; text-decoration: none;" target="_blank" rel="noopener noreferrer"><i class="fa fa-github" aria-hidden="true"></i>&nbsp;GitHub</a>
                <a href="https://twitter.com/projectcalico" style="margin-left: 30px; color: #999; text-decoration: none;" target="_blank" rel="noopener noreferrer"><i class="fa fa-twitter" aria-hidden="true"></i> Twitter</a>
                <a href="https://www.youtube.com/channel/UCFpTnXDNcBoXI4gqCDmegFA" style="margin-left: 30px; color: #999; text-decoration: none;" target="_blank" rel="noopener noreferrer"><i class="fa fa-youtube-play" aria-hidden="true"></i>&nbsp;YouTube</a>
                <a href="https://www.tigera.io/events/" style="margin-left: 30px; color: #999; text-decoration: none;" target="_blank" rel="noopener noreferrer"><i class="fa fa-graduation-cap" aria-hidden="true"></i>&nbsp;Free Online Training</a>
              </div>
              <!-- END BOTTOM DOCUMENTATION PAGE NAVBAR -->
            </div>
          </div>
          {% if page.show_read_time -%}
            <div class="toc-container">
              <div class="sticky-toc">
                {% include toc.html html=content class=".toc" item_class=".toc__nested" %}
              </div>
            </div>
          {% endif -%}
        </div>
      </div>
    </section>
    {% include search_modal.html %}
    <script src="{{site.baseurl}}/js/searchConfig.js"></script>
    {% if page.tab_group %}
    <script src="{{site.baseurl}}/js/tabs.js"></script>
    {% endif %}
    <script src="{{site.baseurl}}/js/dropdown.js"></script>
    <script>
      $(document).ready(function() {
        window.initializeSearch('{{page.version}}', '.search-powered-by', '.search-input-container', '.search-container', '.search-container__results', '.search-container__pagination');
        $('.version-combo > ul.dropdown-menu').load('/releases #release-list > li');
      });
    </script>
  </body>
</html>
