Deploy GitHub Pages

This commit is contained in:
Travis Bot 2019-02-12 00:47:17 +00:00
parent 78477f1792
commit b3029ea3ac
6 changed files with 134 additions and 58 deletions

File diff suppressed because one or more lines are too long

View file

@ -2,227 +2,227 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-02-07</lastmod>
<lastmod>2019-02-12</lastmod>
<changefreq>daily</changefreq>
</url>
</urlset>

Binary file not shown.

View file

@ -1292,6 +1292,81 @@ methods to obtain more information.</p>
<span class="go">kube-system kubernetes-dashboard NodePort 10.103.128.17 &lt;none&gt; 80:30000/TCP 30m</span>
</pre></div>
<p>Use the <code class="codehilite">/dbg</code> Tool to Check Dynamic Configuration</p>
<div class="codehilite"><pre><span></span><span class="gp">$</span> kubectl <span class="nb">exec</span> -n &lt;namespace-of-ingress-controller&gt; nginx-ingress-controller-67956bf89d-fv58j /dbg
<span class="go">dbg is a tool for quickly inspecting the state of the nginx instance</span>
<span class="go">Usage:</span>
<span class="go"> dbg [command]</span>
<span class="go">Available Commands:</span>
<span class="go"> backends Inspect the dynamically-loaded backends information</span>
<span class="go"> conf Dump the contents of /etc/nginx/nginx.conf</span>
<span class="go"> general Output the general dynamic lua state</span>
<span class="go"> help Help about any command</span>
<span class="go">Flags:</span>
<span class="go"> -h, --help help for dbg</span>
<span class="go">Use &quot;dbg [command] --help&quot; for more information about a command.</span>
</pre></div>
<div class="codehilite"><pre><span></span><span class="gp">$</span> kubectl <span class="nb">exec</span> -n &lt;namespace-of-ingress-controller&gt; nginx-ingress-controller-67956bf89d-fv58j /dbg backends
<span class="go">Inspect the dynamically-loaded backends information.</span>
<span class="go">Usage:</span>
<span class="go"> dbg backends [command]</span>
<span class="go">Available Commands:</span>
<span class="go"> all Output the all dynamic backend information as a JSON array</span>
<span class="go"> get Output the backend information only for the backend that has this name</span>
<span class="go"> list Output a newline-separated list of the backend names</span>
<span class="go">Flags:</span>
<span class="go"> -h, --help help for backends</span>
<span class="go">Use &quot;dbg backends [command] --help&quot; for more information about a command.</span>
</pre></div>
<div class="codehilite"><pre><span></span><span class="gp">$</span> kubectl <span class="nb">exec</span> -n &lt;namespace-of-ingress-controller&gt; nginx-ingress-controller-67956bf89d-fv58j /dbg backends list
<span class="go">coffee-svc-80</span>
<span class="go">tea-svc-80</span>
<span class="go">upstream-default-backend</span>
</pre></div>
<div class="codehilite"><pre><span></span><span class="gp">$</span> kubectl <span class="nb">exec</span> -n &lt;namespace-of-ingress-controller&gt; nginx-ingress-controller-67956bf89d-fv58j /dbg backends get coffee-svc-80
<span class="go">{</span>
<span class="go"> &quot;endpoints&quot;: [</span>
<span class="go"> {</span>
<span class="go"> &quot;address&quot;: &quot;10.1.1.112&quot;,</span>
<span class="go"> &quot;port&quot;: &quot;8080&quot;</span>
<span class="go"> },</span>
<span class="go"> {</span>
<span class="go"> &quot;address&quot;: &quot;10.1.1.119&quot;,</span>
<span class="go"> &quot;port&quot;: &quot;8080&quot;</span>
<span class="go"> },</span>
<span class="go"> {</span>
<span class="go"> &quot;address&quot;: &quot;10.1.1.121&quot;,</span>
<span class="go"> &quot;port&quot;: &quot;8080&quot;</span>
<span class="go"> }</span>
<span class="go"> ],</span>
<span class="go"> &quot;load-balance&quot;: &quot;ewma&quot;,</span>
<span class="go"> &quot;name&quot;: &quot;coffee-svc-80&quot;,</span>
<span class="go"> &quot;noServer&quot;: false,</span>
<span class="go"> &quot;port&quot;: 0,</span>
<span class="go"> &quot;secureCACert&quot;: {</span>
<span class="go"> &quot;caFilename&quot;: &quot;&quot;,</span>
<span class="go"> &quot;pemSha&quot;: &quot;&quot;,</span>
<span class="go"> &quot;secret&quot;: &quot;&quot;</span>
<span class="go"> },</span>
<span class="go"> &quot;service&quot;: {</span>
<span class="go"> &quot;metadata&quot;: {</span>
<span class="go"> &quot;creationTimestamp&quot;: null</span>
<span class="go"> },</span>
<span class="go"> &quot;spec&quot;: {</span>
<span class="go">....</span>
</pre></div>
<h2 id="debug-logging">Debug Logging<a class="headerlink" href="#debug-logging" title="Permanent link">&para;</a></h2>
<p>Using the flag <code class="codehilite">--v=XX</code> it is possible to increase the level of logging. This is performed by editing
the deployment.</p>

View file

@ -2630,7 +2630,7 @@ Prometheus, etc.. (recommended)</li>
<p>It's important to remember that there's no DNS resolver at this stage so you will have to configure
an ip address to <code class="codehilite">nginx.ingress.kubernetes.io/influxdb-host</code>. If you deploy Influx or Telegraf as sidecar (another container in the same pod) this becomes straightforward since you can directly use <code class="codehilite">127.0.0.1</code>.</p>
<h3 id="backend-protocol">Backend Protocol<a class="headerlink" href="#backend-protocol" title="Permanent link">&para;</a></h3>
<p>Using <code class="codehilite">backend-protocol</code> annotations is possible to indicate how NGINX should communicate with the backend service.
<p>Using <code class="codehilite">backend-protocol</code> annotations is possible to indicate how NGINX should communicate with the backend service. (Replaces <code class="codehilite">secure-backends</code> in older versions)
Valid Values: HTTP, HTTPS, GRPC, GRPCS and AJP</p>
<p>By default NGINX uses <code class="codehilite">HTTP</code>.</p>
<p>Example:</p>

View file

@ -1183,19 +1183,19 @@
<h1 id="opentracing">OpenTracing<a class="headerlink" href="#opentracing" title="Permanent link">&para;</a></h1>
<p>Enables requests served by nginx for distributed tracing via The OpenTracing Project.</p>
<p>Enables requests served by NGINX for distributed tracing via The OpenTracing Project.</p>
<p>Using the third party module <a href="https://github.com/opentracing-contrib/nginx-opentracing">opentracing-contrib/nginx-opentracing</a> the NGINX ingress controller can configure NGINX to enable <a href="http://opentracing.io">OpenTracing</a> instrumentation.
By default this feature is disabled.</p>
<h2 id="usage">Usage<a class="headerlink" href="#usage" title="Permanent link">&para;</a></h2>
<p>To enable the instrumentation we must enable opentracing in the configuration configmap:
<p>To enable the instrumentation we must enable OpenTracing in the configuration ConfigMap:
<div class="codehilite"><pre><span></span><span class="n">data</span><span class="o">:</span>
<span class="n">enable</span><span class="o">-</span><span class="n">opentracing</span><span class="o">:</span> <span class="s2">&quot;true&quot;</span>
</pre></div></p>
<p>We must also set the host to use when uploading traces:</p>
<div class="codehilite"><pre><span></span>zipkin-collector-host: zipkin.default.svc.cluster.local
<p><div class="codehilite"><pre><span></span>zipkin-collector-host: zipkin.default.svc.cluster.local
jaeger-collector-host: jaeger-collector.default.svc.cluster.local
</pre></div>
NOTE: While the option is called <code class="codehilite">jaeger-collector-host</code>, you will need to point this to a <code class="codehilite">jaeger-agent</code>, and not the <code class="codehilite">jaeger-collector</code> component. </p>
<p>Next you will need to deploy a distributed tracing system which uses OpenTracing. Both <a href="https://github.com/openzipkin/zipkin">Zipkin</a> and
<a href="https://github.com/jaegertracing/jaeger">Jaeger</a> have been tested.</p>
<p>Other optional configuration options:
@ -1221,17 +1221,18 @@ jaeger-sampler-type
# specifies the argument to be passed to the sampler constructor, Default: 1
jaeger-sampler-param
</pre></div></p>
<p>All these options (including host) allow environment variables, such as <code class="codehilite">$HOSTNAME</code> or <code class="codehilite">$HOST_IP</code>. In the case of Jaeger, if you have a Jaeger agent running on each machine in your cluster, you can use something like <code class="codehilite">$HOST_IP</code> (which can be 'mounted' with the <code class="codehilite">status.hostIP</code> fieldpath, as described <a href="https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/#capabilities-of-the-downward-api">here</a>) to make sure traces will be sent to the local agent.</p>
<h2 id="examples">Examples<a class="headerlink" href="#examples" title="Permanent link">&para;</a></h2>
<p>The following examples show how to deploy and test different distributed tracing systems. These example can be performed
using Minikube.</p>
<h3 id="zipkin">Zipkin<a class="headerlink" href="#zipkin" title="Permanent link">&para;</a></h3>
<p>In the <a href="https://github.com/rnburn/zipkin-date-server">rnburn/zipkin-date-server</a>
github repository is an example of a dockerized date service. To install the example and zipkin collector run:</p>
GitHub repository is an example of a dockerized date service. To install the example and Zipkin collector run:</p>
<div class="codehilite"><pre><span></span>kubectl create -f https://raw.githubusercontent.com/rnburn/zipkin-date-server/master/kubernetes/zipkin.yaml
kubectl create -f https://raw.githubusercontent.com/rnburn/zipkin-date-server/master/kubernetes/deployment.yaml
</pre></div>
<p>Also we need to configure the NGINX controller configmap with the required values:</p>
<p>Also we need to configure the NGINX controller ConfigMap with the required values:</p>
<div class="codehilite"><pre><span></span>$ <span class="nb">echo</span> <span class="s1">&#39;</span>
<span class="s1">apiVersion: v1</span>
<span class="s1">kind: ConfigMap</span>
@ -1244,22 +1245,22 @@ kubectl create -f https://raw.githubusercontent.com/rnburn/zipkin-date-server/ma
<span class="s1">&#39;</span> <span class="p">|</span> kubectl replace -f -
</pre></div>
<p>In the zipkin interface we can see the details:
<p>In the Zipkin interface we can see the details:
<img alt="zipkin screenshot" src="../../../images/zipkin-demo.png" title="zipkin collector screenshot" /></p>
<h3 id="jaeger">Jaeger<a class="headerlink" href="#jaeger" title="Permanent link">&para;</a></h3>
<ol>
<li>
<p>Enable Ingress addon in minikube:
<p>Enable Ingress addon in Minikube:
<div class="codehilite"><pre><span></span>$ minikube addons <span class="nb">enable</span> ingress
</pre></div></p>
</li>
<li>
<p>Add minikube IP to /etc/hosts:
<p>Add Minikube IP to /etc/hosts:
<div class="codehilite"><pre><span></span>$ <span class="nb">echo</span> <span class="s2">&quot;</span><span class="k">$(</span>minikube ip<span class="k">)</span><span class="s2"> example.com&quot;</span> <span class="p">|</span> sudo tee -a /etc/hosts
</pre></div></p>
</li>
<li>
<p>Apply a Basic Service and Ingress Resource:
<p>Apply a basic Service and Ingress Resource:
<div class="codehilite"><pre><span></span># Create Echoheaders Deployment
$ kubectl run echoheaders --image=k8s.gcr.io/echoserver:1.4 --replicas=1 --port=8080
@ -1342,7 +1343,7 @@ meow
http://192.168.99.100:30183
</pre></div></p>
<p>In the jaeger interface we can see the details:
<p>In the Jaeger interface we can see the details:
<img alt="jaeger screenshot" src="../../../images/jaeger-demo.png" title="jaeger collector screenshot" /></p>
</li>
</ol>