Deploy GitHub Pages
This commit is contained in:
parent
2dfd3f2415
commit
04f8823c01
15 changed files with 77 additions and 77 deletions
|
@ -24,7 +24,7 @@
|
|||
</code></pre></div> <ol> <li> <p>Edit the file and change the VPC CIDR in use for the Kubernetes cluster: <div class=highlight><pre><span></span><code>proxy-real-ip-cidr: XXX.XXX.XXX/XX
|
||||
</code></pre></div></p> </li> <li> <p>Change the AWS Certificate Manager (ACM) ID as well: <div class=highlight><pre><span></span><code>arn:aws:acm:us-west-2:XXXXXXXX:certificate/XXXXXX-XXXXXXX-XXXXXXX-XXXXXXXX
|
||||
</code></pre></div></p> </li> <li> <p>Deploy the manifest: <div class=highlight><pre><span></span><code><span class=go>kubectl apply -f deploy.yaml</span>
|
||||
</code></pre></div></p> </li> </ol> <h5 id=nlb-idle-timeouts>NLB Idle Timeouts<a class=headerlink href=#nlb-idle-timeouts title="Permanent link"> ¶</a></h5> <p>Idle timeout value for TCP flows is 350 seconds and <a href=https://docs.aws.amazon.com/elasticloadbalancing/latest/network/network-load-balancers.html#connection-idle-timeout>cannot be modified</a>.</p> <p>For this reason, you need to ensure the <a href=http://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_timeout>keepalive_timeout</a> value is configured less than 350 seconds to work as expected.</p> <p>By default NGINX <code>keepalive_timeout</code> is set to <code>75s</code>.</p> <p>More information with regards to timeouts can be found in the <a href=https://docs.aws.amazon.com/elasticloadbalancing/latest/network/network-load-balancers.html#connection-idle-timeout>official AWS documentation</a></p> <h4 id=gce-gke>GCE-GKE<a class=headerlink href=#gce-gke title="Permanent link"> ¶</a></h4> <p>First, your user needs to have <code>cluster-admin</code> permissions on the cluster. This can be done with the following command:</p> <div class=highlight><pre><span></span><code><span class=go>kubectl create clusterrolebinding cluster-admin-binding \</span>
|
||||
</code></pre></div></p> </li> </ol> <h5 id=nlb-idle-timeouts>NLB Idle Timeouts<a class=headerlink href=#nlb-idle-timeouts title="Permanent link"> ¶</a></h5> <p>Idle timeout value for TCP flows is 350 seconds and <a href=https://docs.aws.amazon.com/elasticloadbalancing/latest/network/network-load-balancers.html#connection-idle-timeout>cannot be modified</a>.</p> <p>For this reason, you need to ensure the <a href=https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_timeout>keepalive_timeout</a> value is configured less than 350 seconds to work as expected.</p> <p>By default NGINX <code>keepalive_timeout</code> is set to <code>75s</code>.</p> <p>More information with regards to timeouts can be found in the <a href=https://docs.aws.amazon.com/elasticloadbalancing/latest/network/network-load-balancers.html#connection-idle-timeout>official AWS documentation</a></p> <h4 id=gce-gke>GCE-GKE<a class=headerlink href=#gce-gke title="Permanent link"> ¶</a></h4> <p>First, your user needs to have <code>cluster-admin</code> permissions on the cluster. This can be done with the following command:</p> <div class=highlight><pre><span></span><code><span class=go>kubectl create clusterrolebinding cluster-admin-binding \</span>
|
||||
<span class=go> --clusterrole cluster-admin \</span>
|
||||
<span class=go> --user $(gcloud config get-value account)</span>
|
||||
</code></pre></div> <p>Then, the ingress controller can be installed like this:</p> <div class=highlight><pre><span></span><code><span class=go>kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.1.3/deploy/static/provider/cloud/deploy.yaml</span>
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
102
sitemap.xml
102
sitemap.xml
|
@ -1,207 +1,207 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/how-it-works/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/troubleshooting/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/kubectl-plugin/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/deploy/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/deploy/baremetal/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/deploy/rbac/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/deploy/upgrade/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/deploy/hardening-guide/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/basic-usage/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/custom-template/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/log-format/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/cli-arguments/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/custom-errors/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/default-backend/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/exposing-tcp-udp-services/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/fcgi-services/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/ingress-path-matching/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/external-articles/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/miscellaneous/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/monitoring/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/multiple-ingress/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/tls/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/third-party-addons/modsecurity/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/third-party-addons/opentracing/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/PREREQUISITES/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/affinity/cookie/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/auth/basic/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/auth/client-certs/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/auth/external-auth/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/auth/oauth-external-auth/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/customization/configuration-snippets/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/customization/custom-configuration/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/customization/custom-errors/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/customization/custom-headers/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/customization/external-auth-headers/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/customization/ssl-dh-param/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/customization/sysctl/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/docker-registry/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/grpc/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/multi-tls/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/rewrite/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/static-ip/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/tls-termination/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/psp/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/developer-guide/getting-started/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/developer-guide/code-overview/</loc>
|
||||
<lastmod>2022-04-03</lastmod>
|
||||
<lastmod>2022-04-06</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
</urlset>
|
BIN
sitemap.xml.gz
BIN
sitemap.xml.gz
Binary file not shown.
|
@ -71,7 +71,7 @@ Do not move it without providing redirects.
|
|||
|
||||
<span class=gp>$</span> kubectl edit deploy -n <namespace-of-ingress-controller> ingress-nginx-controller
|
||||
<span class=gp>#</span> Add --v<span class=o>=</span>X to <span class=s2>"- args"</span>, where X is an integer
|
||||
</code></pre></div> <ul> <li><code>--v=2</code> shows details using <code>diff</code> about the changes in the configuration in nginx</li> <li><code>--v=3</code> shows details about the service, Ingress rule, endpoint changes and it dumps the nginx configuration in JSON format</li> <li><code>--v=5</code> configures NGINX in <a href=http://nginx.org/en/docs/debugging_log.html>debug mode</a></li> </ul> <h2 id=authentication-to-the-kubernetes-api-server>Authentication to the Kubernetes API Server<a class=headerlink href=#authentication-to-the-kubernetes-api-server title="Permanent link"> ¶</a></h2> <p>A number of components are involved in the authentication process and the first step is to narrow down the source of the problem, namely whether it is a problem with service authentication or with the kubeconfig file.</p> <p>Both authentications must work:</p> <div class=highlight><pre><span></span><code>+-------------+ service +------------+
|
||||
</code></pre></div> <ul> <li><code>--v=2</code> shows details using <code>diff</code> about the changes in the configuration in nginx</li> <li><code>--v=3</code> shows details about the service, Ingress rule, endpoint changes and it dumps the nginx configuration in JSON format</li> <li><code>--v=5</code> configures NGINX in <a href=https://nginx.org/en/docs/debugging_log.html>debug mode</a></li> </ul> <h2 id=authentication-to-the-kubernetes-api-server>Authentication to the Kubernetes API Server<a class=headerlink href=#authentication-to-the-kubernetes-api-server title="Permanent link"> ¶</a></h2> <p>A number of components are involved in the authentication process and the first step is to narrow down the source of the problem, namely whether it is a problem with service authentication or with the kubeconfig file.</p> <p>Both authentications must work:</p> <div class=highlight><pre><span></span><code>+-------------+ service +------------+
|
||||
| | authentication | |
|
||||
+ apiserver +<-------------------+ ingress |
|
||||
| | | controller |
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
<span class=nt>name</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">example-service</span>
|
||||
<span class=nt>port</span><span class=p>:</span>
|
||||
<span class=nt>name</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">fastcgi</span>
|
||||
</code></pre></div> <h2 id=fastcgi-ingress-annotations>FastCGI Ingress Annotations<a class=headerlink href=#fastcgi-ingress-annotations title="Permanent link"> ¶</a></h2> <p>To enable FastCGI, the <code>nginx.ingress.kubernetes.io/backend-protocol</code> annotation needs to be set to <code>FCGI</code>, which overrides the default <code>HTTP</code> value.</p> <blockquote> <p><code>nginx.ingress.kubernetes.io/backend-protocol: "FCGI"</code></p> </blockquote> <p><strong>This enables the <em>FastCGI</em> mode for all paths defined in the <em>Ingress</em> object</strong></p> <h3 id=the-nginxingresskubernetesiofastcgi-index-annotation>The <code>nginx.ingress.kubernetes.io/fastcgi-index</code> Annotation<a class=headerlink href=#the-nginxingresskubernetesiofastcgi-index-annotation title="Permanent link"> ¶</a></h3> <p>To specify an index file, the <code>fastcgi-index</code> annotation value can optionally be set. In the example below, the value is set to <code>index.php</code>. This annotation corresponds to <a href=http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_index>the <em>NGINX</em> <code>fastcgi_index</code> directive</a>.</p> <blockquote> <p><code>nginx.ingress.kubernetes.io/fastcgi-index: "index.php"</code></p> </blockquote> <h3 id=the-nginxingresskubernetesiofastcgi-params-configmap-annotation>The <code>nginx.ingress.kubernetes.io/fastcgi-params-configmap</code> Annotation<a class=headerlink href=#the-nginxingresskubernetesiofastcgi-params-configmap-annotation title="Permanent link"> ¶</a></h3> <p>To specify <a href=http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_param><em>NGINX</em> <code>fastcgi_param</code> directives</a>, the <code>fastcgi-params-configmap</code> annotation is used, which in turn must lead to a <em>ConfigMap</em> object containing the <em>NGINX</em> <code>fastcgi_param</code> directives as key/values.</p> <blockquote> <p><code>nginx.ingress.kubernetes.io/fastcgi-params-configmap: "example-configmap"</code></p> </blockquote> <p>And the <em>ConfigMap</em> object to specify the <code>SCRIPT_FILENAME</code> and <code>HTTP_PROXY</code> <em>NGINX's</em> <code>fastcgi_param</code> directives will look like the following:</p> <p><div class=highlight><pre><span></span><code><span class=nt>apiVersion</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">v1</span>
|
||||
</code></pre></div> <h2 id=fastcgi-ingress-annotations>FastCGI Ingress Annotations<a class=headerlink href=#fastcgi-ingress-annotations title="Permanent link"> ¶</a></h2> <p>To enable FastCGI, the <code>nginx.ingress.kubernetes.io/backend-protocol</code> annotation needs to be set to <code>FCGI</code>, which overrides the default <code>HTTP</code> value.</p> <blockquote> <p><code>nginx.ingress.kubernetes.io/backend-protocol: "FCGI"</code></p> </blockquote> <p><strong>This enables the <em>FastCGI</em> mode for all paths defined in the <em>Ingress</em> object</strong></p> <h3 id=the-nginxingresskubernetesiofastcgi-index-annotation>The <code>nginx.ingress.kubernetes.io/fastcgi-index</code> Annotation<a class=headerlink href=#the-nginxingresskubernetesiofastcgi-index-annotation title="Permanent link"> ¶</a></h3> <p>To specify an index file, the <code>fastcgi-index</code> annotation value can optionally be set. In the example below, the value is set to <code>index.php</code>. This annotation corresponds to <a href=https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_index>the <em>NGINX</em> <code>fastcgi_index</code> directive</a>.</p> <blockquote> <p><code>nginx.ingress.kubernetes.io/fastcgi-index: "index.php"</code></p> </blockquote> <h3 id=the-nginxingresskubernetesiofastcgi-params-configmap-annotation>The <code>nginx.ingress.kubernetes.io/fastcgi-params-configmap</code> Annotation<a class=headerlink href=#the-nginxingresskubernetesiofastcgi-params-configmap-annotation title="Permanent link"> ¶</a></h3> <p>To specify <a href=https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_param><em>NGINX</em> <code>fastcgi_param</code> directives</a>, the <code>fastcgi-params-configmap</code> annotation is used, which in turn must lead to a <em>ConfigMap</em> object containing the <em>NGINX</em> <code>fastcgi_param</code> directives as key/values.</p> <blockquote> <p><code>nginx.ingress.kubernetes.io/fastcgi-params-configmap: "example-configmap"</code></p> </blockquote> <p>And the <em>ConfigMap</em> object to specify the <code>SCRIPT_FILENAME</code> and <code>HTTP_PROXY</code> <em>NGINX's</em> <code>fastcgi_param</code> directives will look like the following:</p> <p><div class=highlight><pre><span></span><code><span class=nt>apiVersion</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">v1</span>
|
||||
<span class=nt>kind</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">ConfigMap</span>
|
||||
<span class=nt>metadata</span><span class=p>:</span>
|
||||
<span class=nt>name</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">example-configmap</span>
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue