Deploy GitHub Pages
This commit is contained in:
parent
6ba052d8c4
commit
f125bd22f6
26 changed files with 36 additions and 36 deletions
|
@ -3,7 +3,7 @@
|
||||||
</code></pre></div> <p><strong>Run unit-tests for lua code</strong></p> <div class=highlight><pre><span></span><code><span class=go>make lua-test</span>
|
</code></pre></div> <p><strong>Run unit-tests for lua code</strong></p> <div class=highlight><pre><span></span><code><span class=go>make lua-test</span>
|
||||||
</code></pre></div> <p>Lua tests are located in the directory <code>rootfs/etc/nginx/lua/test</code></p> <div class="admonition important"> <p class=admonition-title>Important</p> <p>Test files must follow the naming convention <code><mytest>_test.lua</code> or it will be ignored</p> </div> <p><strong>Run e2e test suite</strong></p> <div class=highlight><pre><span></span><code><span class=go>make kind-e2e-test</span>
|
</code></pre></div> <p>Lua tests are located in the directory <code>rootfs/etc/nginx/lua/test</code></p> <div class="admonition important"> <p class=admonition-title>Important</p> <p>Test files must follow the naming convention <code><mytest>_test.lua</code> or it will be ignored</p> </div> <p><strong>Run e2e test suite</strong></p> <div class=highlight><pre><span></span><code><span class=go>make kind-e2e-test</span>
|
||||||
</code></pre></div> <p>To limit the scope of the tests to execute, we can use the environment variable <code>FOCUS</code></p> <div class=highlight><pre><span></span><code><span class=go>FOCUS="no-auth-locations" make kind-e2e-test</span>
|
</code></pre></div> <p>To limit the scope of the tests to execute, we can use the environment variable <code>FOCUS</code></p> <div class=highlight><pre><span></span><code><span class=go>FOCUS="no-auth-locations" make kind-e2e-test</span>
|
||||||
</code></pre></div> <div class="admonition note"> <p class=admonition-title>Note</p> <p>The variable <code>FOCUS</code> defines Ginkgo <a href=https://onsi.github.io/ginkgo/#focused-specs>Focused Specs</a></p> </div> <p>Valid values are defined in the describe definition of the e2e tests like <a href=https://github.com/kubernetes/ingress-nginx/blob/main/test/e2e/defaultbackend/default_backend.go#L29>Default Backend</a></p> <p>The complete list of tests can be found <a href=e2e-tests.md>here</a></p> <h3 id=custom-docker-image>Custom docker image<a class=headerlink href=#custom-docker-image title="Permanent link"> ¶</a></h3> <p>In some cases, it can be useful to build a docker image and publish such an image to a private or custom registry location.</p> <p>This can be done setting two environment variables, <code>REGISTRY</code> and <code>TAG</code></p> <div class=highlight><pre><span></span><code><span class=go>export TAG="dev"</span>
|
</code></pre></div> <div class="admonition note"> <p class=admonition-title>Note</p> <p>The variable <code>FOCUS</code> defines Ginkgo <a href=https://onsi.github.io/ginkgo/#focused-specs>Focused Specs</a></p> </div> <p>Valid values are defined in the describe definition of the e2e tests like <a href=https://github.com/kubernetes/ingress-nginx/blob/main/test/e2e/defaultbackend/default_backend.go#L29>Default Backend</a></p> <p>The complete list of tests can be found <a href=../../e2e-tests/ >here</a></p> <h3 id=custom-docker-image>Custom docker image<a class=headerlink href=#custom-docker-image title="Permanent link"> ¶</a></h3> <p>In some cases, it can be useful to build a docker image and publish such an image to a private or custom registry location.</p> <p>This can be done setting two environment variables, <code>REGISTRY</code> and <code>TAG</code></p> <div class=highlight><pre><span></span><code><span class=go>export TAG="dev"</span>
|
||||||
<span class=go>export REGISTRY="$USER"</span>
|
<span class=go>export REGISTRY="$USER"</span>
|
||||||
|
|
||||||
<span class=go>make build image</span>
|
<span class=go>make build image</span>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: cookie-samesite-none
|
name: cookie-samesite-none
|
||||||
|
@ -19,7 +19,7 @@ spec:
|
||||||
servicePort: 80
|
servicePort: 80
|
||||||
path: /
|
path: /
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: cookie-samesite-strict
|
name: cookie-samesite-strict
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: nginx-test
|
name: nginx-test
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<span class=go> namespace: default</span>
|
<span class=go> namespace: default</span>
|
||||||
<span class=go>type: Opaque</span>
|
<span class=go>type: Opaque</span>
|
||||||
</code></pre></div> <div class=highlight><pre><span></span><code><span class=go>echo "</span>
|
</code></pre></div> <div class=highlight><pre><span></span><code><span class=go>echo "</span>
|
||||||
<span class=go>apiVersion: networking.k8s.io/v1beta1</span>
|
<span class=go>apiVersion: networking.k8s.io/v1</span>
|
||||||
<span class=go>kind: Ingress</span>
|
<span class=go>kind: Ingress</span>
|
||||||
<span class=go>metadata:</span>
|
<span class=go>metadata:</span>
|
||||||
<span class=go> name: ingress-with-auth</span>
|
<span class=go> name: ingress-with-auth</span>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
|
|
|
@ -6,7 +6,7 @@ NAME HOSTS ADDRESS PORTS AGE
|
||||||
external-auth external-auth-01.sample.com 172.17.4.99 80 13s
|
external-auth external-auth-01.sample.com 172.17.4.99 80 13s
|
||||||
|
|
||||||
$ kubectl get ing external-auth -o yaml
|
$ kubectl get ing external-auth -o yaml
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
|
@ -16,7 +16,7 @@ metadata:
|
||||||
name: external-auth
|
name: external-auth
|
||||||
namespace: default
|
namespace: default
|
||||||
resourceVersion: "2068378"
|
resourceVersion: "2068378"
|
||||||
selfLink: /apis/networking/v1beta1/namespaces/default/ingresses/external-auth
|
selfLink: /apis/networking/v1/namespaces/default/ingresses/external-auth
|
||||||
uid: 5c388f1d-8970-11e6-9004-080027d2dc94
|
uid: 5c388f1d-8970-11e6-9004-080027d2dc94
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
|
@ -18,7 +18,7 @@ spec:
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: oauth2-proxy
|
name: oauth2-proxy
|
||||||
|
|
|
@ -54,7 +54,7 @@ spec:
|
||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: nginx-configuration-snippet
|
name: nginx-configuration-snippet
|
||||||
|
|
|
@ -43,7 +43,7 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
k8s-app: demo-echo-service
|
k8s-app: demo-echo-service
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: public-demo-echo-service
|
name: public-demo-echo-service
|
||||||
|
@ -61,7 +61,7 @@ spec:
|
||||||
servicePort: 80
|
servicePort: 80
|
||||||
path: /
|
path: /
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: secure-demo-echo-service
|
name: secure-demo-echo-service
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
|
|
|
@ -92,7 +92,7 @@ spec:
|
||||||
fieldPath: status.podIP
|
fieldPath: status.podIP
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: foo-tls
|
name: foo-tls
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: ingress-nginx
|
name: ingress-nginx
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: nginx-test
|
name: nginx-test
|
||||||
|
|
File diff suppressed because one or more lines are too long
BIN
sitemap.xml.gz
BIN
sitemap.xml.gz
Binary file not shown.
|
@ -20,7 +20,7 @@ Do not move it without providing redirects.
|
||||||
<span class=go> /tea tea-svc:80 (<none>)</span>
|
<span class=go> /tea tea-svc:80 (<none>)</span>
|
||||||
<span class=go> /coffee coffee-svc:80 (<none>)</span>
|
<span class=go> /coffee coffee-svc:80 (<none>)</span>
|
||||||
<span class=go>Annotations:</span>
|
<span class=go>Annotations:</span>
|
||||||
<span class=go> kubectl.kubernetes.io/last-applied-configuration: {"apiVersion":"networking.k8s.io/v1beta1","kind":"Ingress","metadata":{"annotations":{},"name":"cafe-ingress","namespace":"default","selfLink":"/apis/networking/v1beta1/namespaces/default/ingresses/cafe-ingress"},"spec":{"rules":[{"host":"cafe.com","http":{"paths":[{"backend":{"serviceName":"tea-svc","servicePort":80},"path":"/tea"},{"backend":{"serviceName":"coffee-svc","servicePort":80},"path":"/coffee"}]}}]},"status":{"loadBalancer":{"ingress":[{"ip":"169.48.142.110"}]}}}</span>
|
<span class=go> kubectl.kubernetes.io/last-applied-configuration: {"apiVersion":"networking.k8s.io/v1","kind":"Ingress","metadata":{"annotations":{},"name":"cafe-ingress","namespace":"default","selfLink":"/apis/networking/v1/namespaces/default/ingresses/cafe-ingress"},"spec":{"rules":[{"host":"cafe.com","http":{"paths":[{"backend":{"serviceName":"tea-svc","servicePort":80},"path":"/tea"},{"backend":{"serviceName":"coffee-svc","servicePort":80},"path":"/coffee"}]}}]},"status":{"loadBalancer":{"ingress":[{"ip":"169.48.142.110"}]}}}</span>
|
||||||
|
|
||||||
<span class=go>Events:</span>
|
<span class=go>Events:</span>
|
||||||
<span class=go> Type Reason Age From Message</span>
|
<span class=go> Type Reason Age From Message</span>
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
<span class=nn>---</span>
|
<span class=nn>---</span>
|
||||||
|
|
||||||
<span class=nt>apiVersion</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">networking.k8s.io/v1beta1</span>
|
<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>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>
|
<span class=nt>metadata</span><span class=p>:</span>
|
||||||
<span class=nt>annotations</span><span class=p>:</span>
|
<span class=nt>annotations</span><span class=p>:</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
|
@ -99,7 +99,7 @@ $ kubectl expose deployment echoheaders --port=80 --target-port=8080 --name=echo
|
||||||
|
|
||||||
# Apply the Ingress Resource
|
# Apply the Ingress Resource
|
||||||
$ echo '
|
$ echo '
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: echo-ingress
|
name: echo-ingress
|
||||||
|
|
Loading…
Reference in a new issue