Deploy GitHub Pages
This commit is contained in:
parent
ef8bd4a294
commit
56e095d11e
4 changed files with 54 additions and 54 deletions
|
|
@ -47,7 +47,7 @@ DESCRIPTION:
|
|||
resource may be marked as default, which can be used to set a default value
|
||||
for this field. For more information, refer to the IngressClass
|
||||
documentation.
|
||||
</code></pre></div> the spec.ingressClassName behavior has precedence over the annotation.</p> <h2 id=i-have-only-one-instance-of-the-ingresss-nginx-controller-in-my-cluster-what-should-i-do>I have only one instance of the Ingresss-NGINX controller in my cluster. What should I do ?<a class=headerlink href=#i-have-only-one-instance-of-the-ingresss-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 "ingressclass.kubernetes.io/is-default-class" in your ingress class, so 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 several Ingress objects and they don't yet have the <a href=https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#ingress-v1-networking-k8s-io>ingressClassName</a> field, or the ingress annotation (<code>kubernetes.io/ingress.class</code>), then you should start your ingress-controller with the flag <a href="## What is the flag '--watch-without-ingress-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 highly recommend that you create the ingressClass as shown below: <div class=highlight><pre><span></span><code>apiVersion: networking.k8s.io/v1
|
||||
</code></pre></div> the spec.ingressClassName behavior has precedence over the annotation.</p> <h2 id=i-have-only-one-instance-of-the-ingresss-nginx-controller-in-my-cluster-what-should-i-do>I have only one instance of the Ingresss-NGINX controller in my cluster. What should I do ?<a class=headerlink href=#i-have-only-one-instance-of-the-ingresss-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 "ingressclass.kubernetes.io/is-default-class" in your ingress class, so 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 several Ingress objects and they don't yet have the <a href=https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#ingress-v1-networking-k8s-io>ingressClassName</a> field, or the ingress annotation (<code>kubernetes.io/ingress.class</code>), then you should start your ingress-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 highly recommend that you create the ingressClass as shown below: <div class=highlight><pre><span></span><code>apiVersion: networking.k8s.io/v1
|
||||
kind: IngressClass
|
||||
metadata:
|
||||
labels:
|
||||
|
|
@ -57,7 +57,7 @@ metadata:
|
|||
ingressclass.kubernetes.io/is-default-class: "true"
|
||||
spec:
|
||||
controller: k8s.io/ingress-nginx
|
||||
</code></pre></div> And add the value "spec.ingressClassName=nginx" in your Ingress objects</p> <h2 id=i-have-multiple-ingress-objects-in-my-cluster-what-should-i-do>I have multiple ingress objects in my cluster. What should I do ?<a class=headerlink href=#i-have-multiple-ingress-objects-in-my-cluster-what-should-i-do title="Permanent link"> ¶</a></h2> <ul> <li>If you don't care about ingressClass, or you have a lot of ingress objects without ingressClass configuration, you can run the ingress-controller with the flag <code>--watch-ingress-without-class=true</code>.</li> </ul> <h2 id=what-is-the-flag-watch-without-ingress-class>What is the flag '--watch-without-ingress-class' ?<a class=headerlink href=#what-is-the-flag-watch-without-ingress-class title="Permanent link"> ¶</a></h2> <ul> <li>Its a flag that is passed,as an argument, to the ingress-controller executable, in the pod spec. It looks like this ; <div class=highlight><pre><span></span><code>...
|
||||
</code></pre></div> And add the value "spec.ingressClassName=nginx" in your Ingress objects</p> <h2 id=i-have-multiple-ingress-objects-in-my-cluster-what-should-i-do>I have multiple ingress objects in my cluster. What should I do ?<a class=headerlink href=#i-have-multiple-ingress-objects-in-my-cluster-what-should-i-do title="Permanent link"> ¶</a></h2> <ul> <li>If you don't care about ingressClass, or you have a lot of ingress objects without ingressClass configuration, you can run the ingress-controller with the flag <code>--watch-ingress-without-class=true</code>.</li> </ul> <h2 id=what-is-the-flag-watch-ingress-without-class>What is the flag '--watch-ingress-without-class' ?<a class=headerlink href=#what-is-the-flag-watch-ingress-without-class title="Permanent link"> ¶</a></h2> <ul> <li>Its a flag that is passed,as an argument, to the ingress-controller executable, in the pod spec. It looks like this ; <div class=highlight><pre><span></span><code>...
|
||||
...
|
||||
args:
|
||||
- /nginx-ingress-controller
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue