Deploy GitHub Pages
This commit is contained in:
parent
4d371297b7
commit
8f106d8db3
3 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ FIELDS:
|
|||
<span class=go> resource may be marked as default, which can be used to set a default value</span>
|
||||
<span class=go> for this field. For more information, refer to the IngressClass</span>
|
||||
<span class=go> documentation.</span>
|
||||
</code></pre></div></p> <p>The <code>.spec.ingressClassName</code> behavior has precedence over the deprecated <code>kubernetes.io/ingress.class</code> annotation.</p> <h2 id=i-have-only-one-instance-of-the-ingress-nginx-controller-in-my-cluster-what-should-i-do>I have only one instance of the Ingress-NGINX controller in my cluster. What should I do ?<a class=headerlink href=#i-have-only-one-instance-of-the-ingress-nginx-controller-in-my-cluster-what-should-i-do title="Permanent link"> ¶</a></h2> <ul> <li>If you have only one instance of the Ingress-NGINX controller running in your cluster, and you still want to use IngressClass, you should add the annotation <code>ingressclass.kubernetes.io/is-default-class</code> in your IngressClass, so that any new Ingress objects will have this one as default IngressClass.</li> </ul> <p>In this case, you need to make your controller aware of the objects. If you have any Ingress objects that don't yet have either the <a href=https://kubernetes.io/docs/reference/kubernetes-api/service-resources/ingress-v1/#IngressSpec><code>.spec.ingressClassName</code></a> field set in their manifest, or the ingress annotation (<code>kubernetes.io/ingress.class</code>), then you should start your Ingress-NGINX controller with the flag <a href=#what-is-the-flag-watch-ingress-without-class>--watch-ingress-without-class=true</a>.</p> <p>You can configure your Helm chart installation's values file with <code>.controller.watchIngressWithoutClass: true</code>. </p> <p>We recommend that you create the IngressClass as shown below: <div class=highlight><pre><span></span><code>---
|
||||
</code></pre></div></p> <p>The <code>.spec.ingressClassName</code> behavior has precedence over the deprecated <code>kubernetes.io/ingress.class</code> annotation.</p> <h2 id=i-have-only-one-ingress-controller-in-my-cluster-what-should-i-do>I have only one ingress controller in my cluster. What should I do?<a class=headerlink href=#i-have-only-one-ingress-controller-in-my-cluster-what-should-i-do title="Permanent link"> ¶</a></h2> <p>If a single instance of the Ingress-NGINX controller is the sole Ingress controller running in your cluster, you should add the annotation "ingressclass.kubernetes.io/is-default-class" in your IngressClass, so any new Ingress objects will have this one as default IngressClass.</p> <p>When using Helm, you can enable this annotation by setting <code>.controller.ingressClassResource.default: true</code> in your Helm chart installation's values file.</p> <p>If you have any old Ingress objects remaining without an IngressClass set, you can do one or more of the following to make the Ingress-NGINX controller aware of the old objects:</p> <ul> <li>You can manually set the <a href=https://kubernetes.io/docs/reference/kubernetes-api/service-resources/ingress-v1/#IngressSpec><code>.spec.ingressClassName</code></a> field in the manifest of your own Ingress resources.</li> <li>You can re-create them after setting the <code>ingressclass.kubernetes.io/is-default-class</code> annotation to <code>true</code> on the IngressClass</li> <li>Alternatively you can make the Ingress-NGINX controller watch Ingress objects without the ingressClassName field set by starting your Ingress-NGINX with the flag <a href=#what-is-the-flag-watch-ingress-without-class>--watch-ingress-without-class=true</a> . When using Helm, you can configure your Helm chart installation's values file with <code>.controller.watchIngressWithoutClass: true</code></li> </ul> <p>You can configure your Helm chart installation's values file with <code>.controller.watchIngressWithoutClass: true</code>. </p> <p>We recommend that you create the IngressClass as shown below: <div class=highlight><pre><span></span><code>---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: IngressClass
|
||||
metadata:
|
||||
|
|
File diff suppressed because one or more lines are too long
BIN
sitemap.xml.gz
BIN
sitemap.xml.gz
Binary file not shown.
Loading…
Reference in a new issue