Deploy GitHub Pages
This commit is contained in:
parent
c37ea5172e
commit
fecc2fa759
7 changed files with 126 additions and 125 deletions
|
|
@ -1253,11 +1253,11 @@
|
|||
<span class="nt">paths</span><span class="p">:</span>
|
||||
<span class="p p-Indicator">-</span> <span class="nt">path</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">/foo/bar</span>
|
||||
<span class="nt">backend</span><span class="p">:</span>
|
||||
<span class="nt">serviceName</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">test</span>
|
||||
<span class="nt">serviceName</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">service1</span>
|
||||
<span class="nt">servicePort</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">80</span>
|
||||
<span class="p p-Indicator">-</span> <span class="nt">path</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">/foo/bar/</span>
|
||||
<span class="nt">backend</span><span class="p">:</span>
|
||||
<span class="nt">serviceName</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">test</span>
|
||||
<span class="nt">serviceName</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">service2</span>
|
||||
<span class="nt">servicePort</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">80</span>
|
||||
</pre></div>
|
||||
|
||||
|
|
@ -1274,12 +1274,12 @@
|
|||
<span class="nt">paths</span><span class="p">:</span>
|
||||
<span class="p p-Indicator">-</span> <span class="nt">path</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">/foo/bar/.+</span>
|
||||
<span class="nt">backend</span><span class="p">:</span>
|
||||
<span class="nt">serviceName</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">test</span>
|
||||
<span class="nt">serviceName</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">service3</span>
|
||||
<span class="nt">servicePort</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">80</span>
|
||||
</pre></div>
|
||||
|
||||
<p>The ingress controller would define the following location blocks, in order of descending length, within the NGINX template for the <code class="codehilite">test.com</code> server:</p>
|
||||
<div class="codehilite"><pre><span></span>location ~* "^/foo/bar/.+\/?(?<baseuri>.*)" {
|
||||
<div class="codehilite"><pre><span></span>location ~* ^/foo/bar/.+ {
|
||||
...
|
||||
}
|
||||
|
||||
|
|
@ -1294,13 +1294,12 @@ location ~* "^/foo/bar" {
|
|||
|
||||
<p>The following request URI's would match the corresponding location blocks:</p>
|
||||
<ul>
|
||||
<li><code class="codehilite">test.com/foo/bar/1</code> matches <code class="codehilite">~* "^/foo/bar/.+\/?(?<baseuri>.*)"</code></li>
|
||||
<li><code class="codehilite">test.com/foo/bar/</code> matches <code class="codehilite">~* "^/foo/bar/"</code></li>
|
||||
<li><code class="codehilite">test.com/foo/bar</code> matches <code class="codehilite">~* "^/foo/bar"</code></li>
|
||||
<li><code class="codehilite">test.com/foo/bar/1</code> matches <code class="codehilite">~* ^/foo/bar/.+</code> and will go to service 3.</li>
|
||||
<li><code class="codehilite">test.com/foo/bar/</code> matches <code class="codehilite">~* ^/foo/bar/</code> and will go to service 2.</li>
|
||||
<li><code class="codehilite">test.com/foo/bar</code> matches <code class="codehilite">~* ^/foo/bar</code> and will go to service 1.</li>
|
||||
</ul>
|
||||
<p><strong>IMPORTANT NOTES</strong>:</p>
|
||||
<ul>
|
||||
<li>paths created under the <code class="codehilite">rewrite-ingress</code> are sorted before <code class="codehilite">\/?(?<baseuri>.*)</code> is appended. For example if the path defined within <code class="codehilite">test-ingress-2</code> was <code class="codehilite">/foo/.+</code> then the location block for <code class="codehilite">^/foo/.+\/?(?<baseuri>.*)</code> would be the LAST block listed.</li>
|
||||
<li>If the <code class="codehilite">use-regex</code> OR <code class="codehilite">rewrite-target</code> annotation is used on any Ingress for a given host, then the case insensitive regular expression <a href="https://nginx.org/en/docs/http/ngx_http_core_module.html#location">location modifier</a> will be enforced on ALL paths for a given host regardless of what Ingress they are defined on.</li>
|
||||
</ul>
|
||||
<h2 id="warning">Warning<a class="headerlink" href="#warning" title="Permanent link">¶</a></h2>
|
||||
|
|
|
|||
|
|
@ -633,6 +633,13 @@
|
|||
Enable CORS
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#http2-push-preload" title="HTTP2 Push Preload." class="md-nav__link">
|
||||
HTTP2 Push Preload.
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
|
|
@ -1510,6 +1517,13 @@
|
|||
Enable CORS
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#http2-push-preload" title="HTTP2 Push Preload." class="md-nav__link">
|
||||
HTTP2 Push Preload.
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
|
|
@ -1778,10 +1792,6 @@ table below.</p>
|
|||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a href="#rewrite">nginx.ingress.kubernetes.io/add-base-url</a></td>
|
||||
<td>"true" or "false"</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="#rewrite">nginx.ingress.kubernetes.io/app-root</a></td>
|
||||
<td>string</td>
|
||||
</tr>
|
||||
|
|
@ -1834,10 +1844,6 @@ table below.</p>
|
|||
<td>string</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="#rewrite">nginx.ingress.kubernetes.io/base-url-scheme</a></td>
|
||||
<td>string</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="#canary">nginx.ingress.kubernetes.io/canary</a></td>
|
||||
<td>"true" or "false"</td>
|
||||
</tr>
|
||||
|
|
@ -1902,6 +1908,10 @@ table below.</p>
|
|||
<td>"true" or "false"</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="#http2-push-preload">nginx.ingress.kubernetes.io/http2-push-preload</a></td>
|
||||
<td>"true" or "false"</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="#rate-limiting">nginx.ingress.kubernetes.io/limit-connections</a></td>
|
||||
<td>number</td>
|
||||
</tr>
|
||||
|
|
@ -2140,8 +2150,6 @@ table below.</p>
|
|||
<h3 id="rewrite">Rewrite<a class="headerlink" href="#rewrite" title="Permanent link">¶</a></h3>
|
||||
<p>In some scenarios the exposed URL in the backend service differs from the specified path in the Ingress rule. Without a rewrite any request will return 404.
|
||||
Set the annotation <code class="codehilite">nginx.ingress.kubernetes.io/rewrite-target</code> to the path expected by the service.</p>
|
||||
<p>If the application contains relative links it is possible to add an additional annotation <code class="codehilite">nginx.ingress.kubernetes.io/add-base-url</code> that will prepend a <a href="https://developer.mozilla.org/en/docs/Web/HTML/Element/base"><code class="codehilite">base</code> tag</a> in the header of the returned HTML from the backend.</p>
|
||||
<p>If the scheme of <a href="https://developer.mozilla.org/en/docs/Web/HTML/Element/base"><code class="codehilite">base</code> tag</a> need to be specific, set the annotation <code class="codehilite">nginx.ingress.kubernetes.io/base-url-scheme</code> to the scheme such as <code class="codehilite">http</code> and <code class="codehilite">https</code>.</p>
|
||||
<p>If the Application Root is exposed in a different path and needs to be redirected, set the annotation <code class="codehilite">nginx.ingress.kubernetes.io/app-root</code> to redirect requests for <code class="codehilite">/</code>.</p>
|
||||
<div class="admonition example">
|
||||
<p class="admonition-title">Example</p>
|
||||
|
|
@ -2292,6 +2300,14 @@ location enabling this functionality.</p>
|
|||
<p class="admonition-title">Note</p>
|
||||
<p>For more information please see <a href="https://enable-cors.org/server_nginx.html">https://enable-cors.org</a> </p>
|
||||
</div>
|
||||
<h3 id="http2-push-preload">HTTP2 Push Preload.<a class="headerlink" href="#http2-push-preload" title="Permanent link">¶</a></h3>
|
||||
<p>Enables automatic conversion of preload links specified in the “Link” response header fields into push requests.</p>
|
||||
<div class="admonition example">
|
||||
<p class="admonition-title">Example</p>
|
||||
<ul>
|
||||
<li><code class="codehilite">nginx.ingress.kubernetes.io/http2-push-preload: "true"</code></li>
|
||||
</ul>
|
||||
</div>
|
||||
<h3 id="server-alias">Server Alias<a class="headerlink" href="#server-alias" title="Permanent link">¶</a></h3>
|
||||
<p>To add Server Aliases to an Ingress rule add the annotation <code class="codehilite">nginx.ingress.kubernetes.io/server-alias: "<alias>"</code>.
|
||||
This will create a server with the same configuration, but a different <code class="codehilite">server_name</code> as the provided host.</p>
|
||||
|
|
|
|||
|
|
@ -793,6 +793,13 @@
|
|||
max-worker-connections
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#max-worker-open-files" title="max-worker-open-files" class="md-nav__link">
|
||||
max-worker-open-files
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
|
|
@ -2192,6 +2199,13 @@
|
|||
max-worker-connections
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#max-worker-open-files" title="max-worker-open-files" class="md-nav__link">
|
||||
max-worker-open-files
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
|
|
@ -3019,7 +3033,12 @@ Same for numbers, like "100".</p>
|
|||
<tr>
|
||||
<td align="left"><a href="#max-worker-connections">max-worker-connections</a></td>
|
||||
<td align="left">int</td>
|
||||
<td align="left">16384</td>
|
||||
<td align="left">0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left"><a href="#max-worker-open-files">max-worker-open-files</a></td>
|
||||
<td align="left">int</td>
|
||||
<td align="left">0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left"><a href="#max-worker-connections">map-hash-bucket-size</a></td>
|
||||
|
|
@ -3581,7 +3600,13 @@ Example for json output:</p>
|
|||
<p><em>References:</em>
|
||||
<a href="http://nginx.org/en/docs/ngx_core_module.html#multi_accept">http://nginx.org/en/docs/ngx_core_module.html#multi_accept</a></p>
|
||||
<h2 id="max-worker-connections">max-worker-connections<a class="headerlink" href="#max-worker-connections" title="Permanent link">¶</a></h2>
|
||||
<p>Sets the maximum number of simultaneous connections that can be opened by each <a href="http://nginx.org/en/docs/ngx_core_module.html#worker_connections">worker process</a></p>
|
||||
<p>Sets the <a href="http://nginx.org/en/docs/ngx_core_module.html#worker_connections">maximum number of simultaneous connections</a> that can be opened by each worker process.
|
||||
The default of 0 uses the value of <a href="#max-worker-open-files">max-worker-open-files</a>.
|
||||
<em><strong>default:</strong></em> 0</p>
|
||||
<h2 id="max-worker-open-files">max-worker-open-files<a class="headerlink" href="#max-worker-open-files" title="Permanent link">¶</a></h2>
|
||||
<p>Sets the <a href="http://nginx.org/en/docs/ngx_core_module.html#worker_rlimit_nofile">maximum number of files</a> that can be opened by each worker process.
|
||||
The default of 0 means "max open files (system's limit) / <a href="#worker-processes">worker-processes</a> - 1024".
|
||||
<em><strong>default:</strong></em> 0</p>
|
||||
<h2 id="map-hash-bucket-size">map-hash-bucket-size<a class="headerlink" href="#map-hash-bucket-size" title="Permanent link">¶</a></h2>
|
||||
<p>Sets the bucket size for the <a href="http://nginx.org/en/docs/http/ngx_http_map_module.html#map_hash_bucket_size">map variables hash tables</a>. The details of setting up hash tables are provided in a separate <a href="http://nginx.org/en/docs/hash.html">document</a>.</p>
|
||||
<h2 id="proxy-real-ip-cidr">proxy-real-ip-cidr<a class="headerlink" href="#proxy-real-ip-cidr" title="Permanent link">¶</a></h2>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue