Deploy GitHub Pages

This commit is contained in:
k8s-ci-robot 2021-11-09 15:45:04 +00:00
parent 59b6146296
commit 49ea9bd49b
24 changed files with 38 additions and 16 deletions

View file

@ -9,6 +9,7 @@
<span class=c1># This assumes tls-secret exists and the SSL</span>
<span class=c1># certificate contains a CN for foo.bar.com</span>
<span class=nt>secretName</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">tls-secret</span>
<span class=nt>ingressClassName</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">nginx</span>
<span class=nt>rules</span><span class=p>:</span>
<span class="p p-Indicator">-</span> <span class=nt>host</span><span class=p>:</span> <span class="l l-Scalar l-Scalar-Plain">foo.bar.com</span>
<span class=nt>http</span><span class=p>:</span>
@ -19,7 +20,7 @@
<span class=c1># This assumes http-svc exists and routes to healthy endpoints</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>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

View file

@ -3,6 +3,7 @@ kind: Ingress
metadata:
name: nginx-test
spec:
ingressClassName: nginx
tls:
- hosts:
- foo.bar.com