Deploy GitHub Pages
This commit is contained in:
parent
fae0dc0303
commit
e73476191a
23 changed files with 248 additions and 152 deletions
|
@ -15,10 +15,13 @@ spec:
|
|||
- host: stickyingress-samesite-none.example.com
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: http-svc
|
||||
servicePort: 80
|
||||
path: /
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: http-svc
|
||||
port:
|
||||
number: 80
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
|
@ -35,7 +38,10 @@ spec:
|
|||
- host: stickyingress-samesite-strict.example.com
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: http-svc
|
||||
servicePort: 80
|
||||
path: /
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: http-svc
|
||||
port:
|
||||
number: 80
|
|
@ -13,7 +13,10 @@ spec:
|
|||
- host: stickyingress.example.com
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: http-svc
|
||||
servicePort: 80
|
||||
path: /
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: http-svc
|
||||
port:
|
||||
number: 80
|
||||
|
|
|
@ -32,9 +32,12 @@
|
|||
<span class=go> http:</span>
|
||||
<span class=go> paths:</span>
|
||||
<span class=go> - path: /</span>
|
||||
<span class=go> pathType: Prefix</span>
|
||||
<span class=go> backend:</span>
|
||||
<span class=go> serviceName: http-svc</span>
|
||||
<span class=go> servicePort: 80</span>
|
||||
<span class=go> service: </span>
|
||||
<span class=go> name: http-svc</span>
|
||||
<span class=go> port: </span>
|
||||
<span class=go> number: 80</span>
|
||||
<span class=go>" | kubectl create -f -</span>
|
||||
</code></pre></div> <div class=highlight><pre><span></span><code>$ curl -v http://10.2.29.4/ -H 'Host: foo.bar.com'
|
||||
* Trying 10.2.29.4...
|
||||
|
|
|
@ -19,10 +19,13 @@ spec:
|
|||
- host: mydomain.com
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: http-svc
|
||||
servicePort: 80
|
||||
path: /
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: http-svc
|
||||
port:
|
||||
number: 80
|
||||
tls:
|
||||
- hosts:
|
||||
- mydomain.com
|
||||
|
|
|
@ -23,10 +23,13 @@ spec:
|
|||
- host: external-auth-01.sample.com
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: http-svc
|
||||
servicePort: 80
|
||||
path: /
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: http-svc
|
||||
port:
|
||||
number: 80
|
||||
status:
|
||||
loadBalancer:
|
||||
ingress:
|
||||
|
|
|
@ -9,7 +9,10 @@ spec:
|
|||
- host: external-auth-01.sample.com
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: http-svc
|
||||
servicePort: 80
|
||||
path: /
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: http-svc
|
||||
port:
|
||||
number: 80
|
|
@ -11,11 +11,13 @@ spec:
|
|||
- host: __INGRESS_HOST__
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: kubernetes-dashboard
|
||||
servicePort: 80
|
||||
path: /
|
||||
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: kubernetes-dashboard
|
||||
port:
|
||||
number: 80
|
||||
---
|
||||
|
||||
apiVersion: networking.k8s.io/v1
|
||||
|
@ -28,10 +30,13 @@ spec:
|
|||
- host: __INGRESS_HOST__
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: oauth2-proxy
|
||||
servicePort: 4180
|
||||
path: /oauth2
|
||||
- path: /oauth2
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: oauth2-proxy
|
||||
port:
|
||||
number: 4180
|
||||
tls:
|
||||
- hosts:
|
||||
- __INGRESS_HOST__
|
||||
|
|
|
@ -64,7 +64,15 @@ metadata:
|
|||
name: nginxhello-ingress
|
||||
namespace: default
|
||||
spec:
|
||||
rules:
|
||||
- host: foo.bar.com
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
serviceName: nginxhello
|
||||
servicePort: 80
|
||||
service:
|
||||
name: nginxhello
|
||||
port:
|
||||
number: 80
|
||||
|
||||
|
|
|
@ -10,7 +10,10 @@ spec:
|
|||
- host: custom.configuration.com
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: http-svc
|
||||
servicePort: 80
|
||||
path: /
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: http-svc
|
||||
port:
|
||||
number: 80
|
||||
|
|
|
@ -56,10 +56,13 @@ spec:
|
|||
- host: public-demo-echo-service.kube.local
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: demo-echo-service
|
||||
servicePort: 80
|
||||
path: /
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: demo-echo-service
|
||||
port:
|
||||
number: 80
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
|
@ -74,7 +77,10 @@ spec:
|
|||
- host: secure-demo-echo-service.kube.local
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: demo-echo-service
|
||||
servicePort: 80
|
||||
path: /
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: demo-echo-service
|
||||
port:
|
||||
number: 80
|
||||
|
|
|
@ -17,7 +17,10 @@ spec:
|
|||
- host: registry.<your domain>
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: docker-registry
|
||||
servicePort: 5000
|
||||
path: /
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: docker-registry
|
||||
port:
|
||||
number: 5000
|
|
@ -12,7 +12,10 @@ spec:
|
|||
- host: registry.<your domain>
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: docker-registry
|
||||
servicePort: 5000
|
||||
path: /
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: docker-registry
|
||||
port:
|
||||
number: 5000
|
||||
|
|
|
@ -115,14 +115,20 @@ spec:
|
|||
- host: foo.bar.com
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: http-svc
|
||||
servicePort: 80
|
||||
path: /
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: http-svc
|
||||
port:
|
||||
number: 80
|
||||
- host: bar.baz.com
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: nginx
|
||||
servicePort: 80
|
||||
path: /
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service
|
||||
name: nginx
|
||||
port:
|
||||
number: 80
|
||||
|
|
|
@ -11,10 +11,13 @@
|
|||
<span class=go> - host: rewrite.bar.com</span>
|
||||
<span class=go> http:</span>
|
||||
<span class=go> paths:</span>
|
||||
<span class=go> - backend:</span>
|
||||
<span class=go> serviceName: http-svc</span>
|
||||
<span class=go> servicePort: 80</span>
|
||||
<span class=go> path: /something(/|$)(.*)</span>
|
||||
<span class=go> - path: /something(/|$)(.*)</span>
|
||||
<span class=go> pathType: Prefix</span>
|
||||
<span class=go> backend:</span>
|
||||
<span class=go> service:</span>
|
||||
<span class=go> name: http-svc</span>
|
||||
<span class=go> port: </span>
|
||||
<span class=go> number: 80</span>
|
||||
<span class=go>' | kubectl create -f -</span>
|
||||
</code></pre></div> <p>In this ingress definition, any characters captured by <code>(.*)</code> will be assigned to the placeholder <code>$2</code>, which is then used as a parameter in the <code>rewrite-target</code> annotation.</p> <p>For example, the ingress definition above will result in the following rewrites:</p> <ul> <li><code>rewrite.bar.com/something</code> rewrites to <code>rewrite.bar.com/</code></li> <li><code>rewrite.bar.com/something/</code> rewrites to <code>rewrite.bar.com/</code></li> <li><code>rewrite.bar.com/something/new</code> rewrites to <code>rewrite.bar.com/new</code></li> </ul> <h3 id=app-root>App Root<a class=headerlink href=#app-root title="Permanent link"> ¶</a></h3> <p>Create an Ingress rule with an app-root annotation: <div class=highlight><pre><span></span><code>$ echo "
|
||||
apiVersion: networking.k8s.io/v1
|
||||
|
@ -29,10 +32,13 @@ spec:
|
|||
- host: approot.bar.com
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: http-svc
|
||||
servicePort: 80
|
||||
path: /
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: http-svc
|
||||
port:
|
||||
number: 80
|
||||
" | kubectl create -f -
|
||||
</code></pre></div></p> <p>Check the rewrite is working</p> <div class=highlight><pre><span></span><code>$ curl -I -k http://approot.bar.com/
|
||||
HTTP/1.1 302 Moved Temporarily
|
||||
|
|
|
@ -9,7 +9,11 @@ spec:
|
|||
rules:
|
||||
- http:
|
||||
paths:
|
||||
- backend:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
# This assumes http-svc exists and routes to healthy endpoints.
|
||||
serviceName: http-svc
|
||||
servicePort: 80
|
||||
service:
|
||||
name: http-svc
|
||||
port:
|
||||
number: 80
|
||||
|
|
|
@ -14,10 +14,13 @@
|
|||
<span class=nt>http</span><span class=p>:</span>
|
||||
<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">/</span>
|
||||
<span class=nt>pathType</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">Prefix</span>
|
||||
<span class=nt>backend</span><span class=p>:</span>
|
||||
<span class=c1># This assumes http-svc exists and routes to healthy endpoints</span>
|
||||
<span class=nt>serviceName</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">http-svc</span>
|
||||
<span class=nt>servicePort</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">80</span>
|
||||
<span class=nt>service</span><span class=p>:</span>
|
||||
<span class=nt>name</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">http-svc</span>
|
||||
<span class=nt>port</span><span class=p>:</span>
|
||||
<span class=nt>number</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">80</span>
|
||||
</code></pre></div> <p>The following command instructs the controller to terminate traffic using the provided TLS cert, and forward un-encrypted HTTP traffic to the test HTTP service.</p> <div class=highlight><pre><span></span><code><span class=go>kubectl apply -f ingress.yaml</span>
|
||||
</code></pre></div> <h2 id=validation>Validation<a class=headerlink href=#validation title="Permanent link"> ¶</a></h2> <p>You can confirm that the Ingress works.</p> <div class=highlight><pre><span></span><code><span class=gp>$</span> kubectl describe ing nginx-test
|
||||
<span class=go>Name: nginx-test</span>
|
||||
|
|
|
@ -14,7 +14,10 @@ spec:
|
|||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
# This assumes http-svc exists and routes to healthy endpoints
|
||||
serviceName: http-svc
|
||||
servicePort: 80
|
||||
service:
|
||||
name: http-svc
|
||||
port:
|
||||
number: 80
|
||||
|
|
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>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/how-it-works/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/troubleshooting/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/kubectl-plugin/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/deploy/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/deploy/baremetal/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/deploy/rbac/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/deploy/upgrade/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/deploy/hardening-guide/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/basic-usage/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/custom-template/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/log-format/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/cli-arguments/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/custom-errors/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/default-backend/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/exposing-tcp-udp-services/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/fcgi-services/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/ingress-path-matching/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/external-articles/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/miscellaneous/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/monitoring/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/multiple-ingress/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/tls/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/third-party-addons/modsecurity/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/user-guide/third-party-addons/opentracing/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/PREREQUISITES/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/affinity/cookie/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/auth/basic/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/auth/client-certs/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/auth/external-auth/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/auth/oauth-external-auth/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/customization/configuration-snippets/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/customization/custom-configuration/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/customization/custom-errors/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/customization/custom-headers/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/customization/external-auth-headers/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/customization/ssl-dh-param/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/customization/sysctl/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/docker-registry/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/grpc/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/multi-tls/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/rewrite/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/static-ip/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/tls-termination/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/examples/psp/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/developer-guide/getting-started/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url><url>
|
||||
<loc>https://kubernetes.github.io/ingress-nginx/developer-guide/code-overview/</loc>
|
||||
<lastmod>2021-10-27</lastmod>
|
||||
<lastmod>2021-11-02</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
</urlset>
|
BIN
sitemap.xml.gz
BIN
sitemap.xml.gz
Binary file not shown.
|
@ -48,9 +48,13 @@
|
|||
<span class="p p-Indicator">-</span> <span class=nt>host</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">app.example.com</span>
|
||||
<span class=nt>http</span><span class=p>:</span>
|
||||
<span class=nt>paths</span><span class=p>:</span>
|
||||
<span class="p p-Indicator">-</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">example-service</span>
|
||||
<span class=nt>servicePort</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">fastcgi</span>
|
||||
<span class="p p-Indicator">-</span> <span class=nt>path</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">/</span>
|
||||
<span class=nt>pathType</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">Prefix</span>
|
||||
<span class=nt>backend</span><span class=p>:</span>
|
||||
<span class=nt>service</span><span class=p>:</span>
|
||||
<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>
|
||||
<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>
|
||||
|
|
|
@ -10,9 +10,12 @@
|
|||
<span class=nt>http</span><span class=p>:</span>
|
||||
<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/.*</span>
|
||||
<span class=nt>pathType</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">Prefix</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>servicePort</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">80</span>
|
||||
<span class=nt>service</span><span class=p>:</span>
|
||||
<span class=nt>name</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">test</span>
|
||||
<span class=nt>port</span><span class=p>:</span>
|
||||
<span class=nt>number</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">80</span>
|
||||
</code></pre></div> <p>The preceding ingress definition would translate to the following location block within the NGINX configuration for the <code>test.com</code> server:</p> <div class=highlight><pre><span></span><code>location ~* "^/foo/.*" {
|
||||
...
|
||||
}
|
||||
|
@ -26,13 +29,19 @@
|
|||
<span class=nt>http</span><span class=p>:</span>
|
||||
<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>pathType</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">Prefix</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">service1</span>
|
||||
<span class=nt>servicePort</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">80</span>
|
||||
<span class=nt>service</span><span class=p>:</span>
|
||||
<span class=nt>name</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">service1</span>
|
||||
<span class=nt>port</span><span class=p>:</span>
|
||||
<span class=nt>number</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>pathType</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">Prefix</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">service2</span>
|
||||
<span class=nt>servicePort</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">80</span>
|
||||
<span class=nt>service</span><span class=p>:</span>
|
||||
<span class=nt>name</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">service2</span>
|
||||
<span class=nt>port</span><span class=p>:</span>
|
||||
<span class=nt>number</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">80</span>
|
||||
</code></pre></div> <div class=highlight><pre><span></span><code><span class=nt>apiVersion</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">networking.k8s.io/v1</span>
|
||||
<span class=nt>kind</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">Ingress</span>
|
||||
<span class=nt>metadata</span><span class=p>:</span>
|
||||
|
@ -45,9 +54,12 @@
|
|||
<span class=nt>http</span><span class=p>:</span>
|
||||
<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>pathType</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">Prefix</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">service3</span>
|
||||
<span class=nt>servicePort</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">80</span>
|
||||
<span class=nt>service</span><span class=p>:</span>
|
||||
<span class=nt>name</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">service3</span>
|
||||
<span class=nt>port</span><span class=p>:</span>
|
||||
<span class=nt>number</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">80</span>
|
||||
</code></pre></div> <p>The ingress controller would define the following location blocks, in order of descending length, within the NGINX template for the <code>test.com</code> server:</p> <div class=highlight><pre><span></span><code>location ~* ^/foo/bar/.+ {
|
||||
...
|
||||
}
|
||||
|
@ -71,13 +83,19 @@ location ~* "^/foo/bar" {
|
|||
<span class=nt>http</span><span class=p>:</span>
|
||||
<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/bar</span>
|
||||
<span class=nt>pathType</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">Prefix</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>servicePort</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">80</span>
|
||||
<span class=nt>service</span><span class=p>:</span>
|
||||
<span class=nt>name</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">test</span>
|
||||
<span class=nt>port</span><span class=p>:</span>
|
||||
<span class=nt>number</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/[A-Z0-9]{3}</span>
|
||||
<span class=nt>pathType</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">Prefix</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>servicePort</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">80</span>
|
||||
<span class=nt>service</span><span class=p>:</span>
|
||||
<span class=nt>name</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">test</span>
|
||||
<span class=nt>port</span><span class=p>:</span>
|
||||
<span class=nt>number</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">80</span>
|
||||
</code></pre></div> <p>The ingress controller would define the following location blocks (in this order) within the NGINX template for the <code>test.com</code> server:</p> <div class=highlight><pre><span></span><code>location ~* "^/foo/bar/[A-Z0-9]{3}" {
|
||||
...
|
||||
}
|
||||
|
|
|
@ -115,10 +115,13 @@ $ echo '
|
|||
- host: example.com
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: echoheaders-x
|
||||
servicePort: 80
|
||||
path: /echo
|
||||
- path: /echo
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: echoheaders-x
|
||||
port:
|
||||
number: 80
|
||||
' | kubectl apply -f -
|
||||
</code></pre></div></p> </li> <li> <p>Enable OpenTracing and set the jaeger-collector-host: <div class=highlight><pre><span></span><code>$ echo '
|
||||
apiVersion: v1
|
||||
|
|
Loading…
Reference in a new issue