mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-10-07 08:31:11 +02:00
Remove old folders
This commit is contained in:
+55
-55
@@ -112,16 +112,16 @@ spec:
|
||||
description: <span style="color:#4e9a06">&#34;Jenkins Operator repository&#34;</span>
|
||||
repositoryBranch: master
|
||||
repositoryUrl: https://github.com/jenkinsci/kubernetes-operator.git</code></pre></div>
|
||||
<p>Deploy Jenkins to K8s:</p>
|
||||
<p>Deploy a Jenkins to K8s:</p>
|
||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">kubectl create -f jenkins_instance.yaml</code></pre></div>
|
||||
<p>Watch Jenkins instance being created:</p>
|
||||
<p>Watch the Jenkins instance being created:</p>
|
||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">kubectl get pods -w</code></pre></div>
|
||||
<p>Get Jenkins credentials:</p>
|
||||
<p>Get the Jenkins credentials:</p>
|
||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">kubectl get secret jenkins-operator-credentials-&lt;cr_name&gt; -o <span style="color:#4e9a06">&#39;jsonpath={.data.user}&#39;</span> <span style="color:#000;font-weight:bold">|</span> base64 -d
|
||||
kubectl get secret jenkins-operator-credentials-&lt;cr_name&gt; -o <span style="color:#4e9a06">&#39;jsonpath={.data.password}&#39;</span> <span style="color:#000;font-weight:bold">|</span> base64 -d</code></pre></div>
|
||||
<p>Connect to Jenkins (minikube):</p>
|
||||
<p>Connect to the Jenkins instance (minikube):</p>
|
||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">minikube service jenkins-operator-http-&lt;cr_name&gt; --url</code></pre></div>
|
||||
<p>Connect to Jenkins (actual Kubernetes cluster):</p>
|
||||
<p>Connect to the Jenkins instance (actual Kubernetes cluster):</p>
|
||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">kubectl port-forward jenkins-&lt;cr_name&gt; <span style="color:#0000cf;font-weight:bold">8080</span>:8080</code></pre></div>
|
||||
<p>Then open browser with address <code>http://localhost:8080</code>.
|
||||
<img src="https://jenkinsci.github.io/kubernetes-operator/img/jenkins.png" alt="jenkins" /></p>
|
||||
@@ -231,7 +231,7 @@ and deploy keys.</p>
|
||||
└── build.jenkins
|
||||
</code></pre>
|
||||
|
||||
<p><strong>cicd/jobs/build.jenkins</strong> it&rsquo;s a job definition:</p>
|
||||
<p><strong>cicd/jobs/build.jenkins</strong> is a job definition:</p>
|
||||
|
||||
<pre><code>#!/usr/bin/env groovy
|
||||
|
||||
@@ -255,7 +255,7 @@ pipelineJob('build-jenkins-operator') {
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
<p><strong>cicd/pipelines/build.jenkins</strong> it&rsquo;s an actual Jenkins pipeline:</p>
|
||||
<p><strong>cicd/pipelines/build.jenkins</strong> is an actual Jenkins pipeline:</p>
|
||||
|
||||
<pre><code>#!/usr/bin/env groovy
|
||||
|
||||
@@ -324,13 +324,13 @@ spec:
|
||||
repositoryUrl: https://github.com/jenkinsci/kubernetes-operator.git
|
||||
</code></pre>
|
||||
|
||||
<p><strong>Jenkins Operator</strong> will automatically discover and configure all seed jobs.</p>
|
||||
<p><strong>Jenkins Operator</strong> will automatically discover and configure all the seed jobs.</p>
|
||||
|
||||
<p>You can verify if deploy keys were successfully configured in Jenkins <strong>Credentials</strong> tab.</p>
|
||||
<p>You can verify if deploy keys were successfully configured in the Jenkins <strong>Credentials</strong> tab.</p>
|
||||
|
||||
<p><img src="https://jenkinsci.github.io/kubernetes-operator/kubernetes-operator/img/jenkins-credentials.png" alt="jenkins" /></p>
|
||||
|
||||
<p>You can verify if your pipelines were successfully configured in Jenkins Seed Job console output.</p>
|
||||
<p>You can verify if your pipelines were successfully configured in the Jenkins Seed Job console output.</p>
|
||||
|
||||
<p><img src="https://jenkinsci.github.io/kubernetes-operator/kubernetes-operator/img/jenkins-seed.png" alt="jenkins" /></p>
|
||||
|
||||
@@ -357,7 +357,7 @@ $ ssh-keygen -p -f &lt;filename&gt; -m pem</code></pre></
|
||||
|
||||
<h4 id="configure-ssh-authentication">Configure SSH authentication</h4>
|
||||
|
||||
<p>Configure seed job like:</p>
|
||||
<p>Configure a seed job like this:</p>
|
||||
|
||||
<pre><code>apiVersion: jenkins.io/v1alpha2
|
||||
kind: Jenkins
|
||||
@@ -374,7 +374,7 @@ spec:
|
||||
repositoryUrl: git@github.com:jenkinsci/kubernetes-operator.git
|
||||
</code></pre>
|
||||
|
||||
<p>and create Kubernetes Secret(name of secret should be the same from <code>credentialID</code> field):</p>
|
||||
<p>and create a Kubernetes Secret (name of secret should be the same from <code>credentialID</code> field):</p>
|
||||
|
||||
<pre><code>apiVersion: v1
|
||||
kind: Secret
|
||||
@@ -391,7 +391,7 @@ stringData:
|
||||
|
||||
<h3 id="username-password-authentication">Username &amp; password authentication</h3>
|
||||
|
||||
<p>Configure seed job like:</p>
|
||||
<p>Configure the seed job like:</p>
|
||||
|
||||
<pre><code>apiVersion: jenkins.io/v1alpha2
|
||||
kind: Jenkins
|
||||
@@ -408,7 +408,7 @@ spec:
|
||||
repositoryUrl: https://github.com/jenkinsci/kubernetes-operator.git
|
||||
</code></pre>
|
||||
|
||||
<p>and create Kubernetes Secret(name of secret should be the same from <code>credentialID</code> field):</p>
|
||||
<p>and create a Kubernetes Secret (name of secret should be the same from <code>credentialID</code> field):</p>
|
||||
|
||||
<pre><code>apiVersion: v1
|
||||
kind: Secret
|
||||
@@ -421,7 +421,7 @@ stringData:
|
||||
|
||||
<h2 id="http-proxy-for-downloading-plugins">HTTP Proxy for downloading plugins</h2>
|
||||
|
||||
<p>To use forwarding proxy with operator to downloading plugins you need to put environment var to Jenkins CR, for e.g.:</p>
|
||||
<p>To use forwarding proxy with an operator to download plugins you need to add the following environment variable to Jenkins CR, for e.g.:</p>
|
||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yaml" data-lang="yaml">spec<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>master<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>containers<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
@@ -433,7 +433,7 @@ stringData:
|
||||
|
||||
<h2 id="pulling-docker-images-from-private-repositories">Pulling Docker images from private repositories</h2>
|
||||
|
||||
<p>To pull Docker Image from private repository you can use <code>imagePullSecrets</code>.</p>
|
||||
<p>To pull a Docker Image from private repository you can use <code>imagePullSecrets</code>.</p>
|
||||
|
||||
<p>Please follow the instructions on <a href="https://kubernetes.io/docs/concepts/containers/images/?origin_team=T42NTAGHM#creating-a-secret-with-a-docker-config" target="_blank">creating a secret with a docker config</a>.</p>
|
||||
|
||||
@@ -445,7 +445,7 @@ stringData:
|
||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">kubectl -n &lt;namespace&gt; edit secret &lt;name&gt;</code></pre></div>
|
||||
<p>The <code>.dockerconfigjson</code> key&rsquo;s value needs to be replaced with a modified version.</p>
|
||||
|
||||
<p>After modifications it needs to be encoded as Base64 value before setting the <code>.dockerconfigjson</code> key:q.</p>
|
||||
<p>After modifications, it needs to be encoded as a Base64 value before setting the <code>.dockerconfigjson</code> key:q.</p>
|
||||
|
||||
<p>Example config file to modify and use:</p>
|
||||
|
||||
@@ -928,7 +928,7 @@ spec:
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>version<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#0000cf;font-weight:bold">0.12</span>.<span style="color:#0000cf;font-weight:bold">1</span></code></pre></div>
|
||||
<p>You can change their versions.</p>
|
||||
|
||||
<p>Then the <strong>Jenkins Operator</strong> will automatically install plugins after the Jenkins master pod restarts.</p>
|
||||
<p>The <strong>Jenkins Operator</strong> will then automatically install plugins after the Jenkins master pod restarts.</p>
|
||||
|
||||
</description>
|
||||
</item>
|
||||
@@ -1055,7 +1055,7 @@ spec:
|
||||
<description>
|
||||
|
||||
|
||||
<p>Azure AKS managed Kubernetes service adds to every pod the following envs:</p>
|
||||
<p>Azure AKS managed Kubernetes service adds to every pod the following environment variables:</p>
|
||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yaml" data-lang="yaml">-<span style="color:#f8f8f8;text-decoration:underline"> </span>name<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>KUBERNETES_PORT_443_TCP_ADDR<span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>value<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"></span>-<span style="color:#f8f8f8;text-decoration:underline"> </span>name<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>KUBERNETES_PORT<span style="color:#f8f8f8;text-decoration:underline">
|
||||
@@ -1064,8 +1064,8 @@ spec:
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>value<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>tcp<span style="color:#000;font-weight:bold">:</span>//<span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"></span>-<span style="color:#f8f8f8;text-decoration:underline"> </span>name<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>KUBERNETES_SERVICE_HOST<span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>value<span style="color:#000;font-weight:bold">:</span></code></pre></div>
|
||||
<p>The operator is aware of it and omits these envs when checking if Jenkins pod envs have been changed. It prevents
|
||||
restart Jenkins pod over and over again.</p>
|
||||
<p>The operator is aware of it and omits these environment variables when checking if a Jenkins pod environment has been changed. It prevents the
|
||||
restart of a Jenkins pod over and over again.</p>
|
||||
|
||||
</description>
|
||||
</item>
|
||||
@@ -1105,13 +1105,13 @@ the restart of a Jenkins pod over and over again.</p>
|
||||
|
||||
|
||||
|
||||
<p>Backup and restore is done by container sidecar.</p>
|
||||
<p>Backup and restore is done by a container sidecar.</p>
|
||||
|
||||
<h3 id="pvc">PVC</h3>
|
||||
|
||||
<h4 id="create-pvc">Create PVC</h4>
|
||||
|
||||
<p>Save to file pvc.yaml:</p>
|
||||
<p>Save to the file named pvc.yaml:</p>
|
||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yaml" data-lang="yaml">apiVersion<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>v1<span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"></span>kind<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>PersistentVolumeClaim<span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"></span>metadata<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
@@ -1123,7 +1123,7 @@ the restart of a Jenkins pod over and over again.</p>
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>resources<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>requests<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>storage<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>500Gi</code></pre></div>
|
||||
<p>Run command:</p>
|
||||
<p>Run the following command:</p>
|
||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">$ kubectl -n &lt;namespace&gt; create -f pvc.yaml</code></pre></div>
|
||||
<h4 id="configure-jenkins-cr">Configure Jenkins CR</h4>
|
||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yaml" data-lang="yaml">apiVersion<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>jenkins.io/v1alpha2<span style="color:#f8f8f8;text-decoration:underline">
|
||||
@@ -1139,7 +1139,7 @@ the restart of a Jenkins pod over and over again.</p>
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>containers<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>-<span style="color:#f8f8f8;text-decoration:underline"> </span>name<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>jenkins-master<span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>image<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>jenkins/jenkins<span style="color:#000;font-weight:bold">:</span>lts<span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>-<span style="color:#f8f8f8;text-decoration:underline"> </span>name<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>backup<span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#8f5902;font-style:italic"># container responsible for backup and restore</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>-<span style="color:#f8f8f8;text-decoration:underline"> </span>name<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>backup<span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#8f5902;font-style:italic"># container responsible for the backup and restore</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>env<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>-<span style="color:#f8f8f8;text-decoration:underline"> </span>name<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>BACKUP_DIR<span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>value<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>/backup<span style="color:#f8f8f8;text-decoration:underline">
|
||||
@@ -1165,7 +1165,7 @@ the restart of a Jenkins pod over and over again.</p>
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>command<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>-<span style="color:#f8f8f8;text-decoration:underline"> </span>/home/user/bin/backup.sh<span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#8f5902;font-style:italic"># this command is invoked on &#34;backup&#34; container to make backup, for example /home/user/bin/backup.sh &lt;backup_number&gt;, &lt;backup_number&gt; is passed by operator</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>interval<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#0000cf;font-weight:bold">30</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#8f5902;font-style:italic"># how often make backup in seconds</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>makeBackupBeforePodDeletion<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">true</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#8f5902;font-style:italic"># make backup before pod deletion</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>makeBackupBeforePodDeletion<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">true</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#8f5902;font-style:italic"># make a backup before pod deletion</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>restore<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>containerName<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>backup<span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#8f5902;font-style:italic"># container name is responsible for restore backup</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>action<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
@@ -1461,14 +1461,14 @@ If needed, the docker image can easily be changed in custom resource manifest as
|
||||
|
||||
<h3 id="added-seed-job-agent">Added seed job agent</h3>
|
||||
|
||||
<p>Now seed jobs are not built by master executors, but by dedicated agent deployed into Kubernetes. We disabled master executors for security reasons.</p>
|
||||
<p>Seed jobs are not built by master executors, but by dedicated agents deployed into Kubernetes. We disabled master executors for security reasons.</p>
|
||||
|
||||
<h3 id="apply-jenkins-configuration-via-groovy-scripts-instead-of-jenkins-jobs">Apply Jenkins configuration via Groovy scripts instead of Jenkins jobs</h3>
|
||||
|
||||
<p>We have removed hardcoded configuration by <strong>Jenkins</strong> jobs.</p>
|
||||
<p>We have removed the hardcoded configuration by <strong>Jenkins</strong> jobs.</p>
|
||||
|
||||
<p>In <code>v0.1.1</code> <strong>Jenkins Operator</strong> configuration was stored in <code>jenkins-operator-user-configuration-&lt;cr_name&gt;</code>
|
||||
If you want to use <code>v0.2.0</code> or newer you must simply write refer to old ConfigMap by modifying CR, for example:</p>
|
||||
If you want to use <code>v0.2.0</code> or newer you must simply write refererences to old ConfigMap by modifying CR, for example:</p>
|
||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yaml" data-lang="yaml">apiVersion<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>jenkins.io/v1alpha2<span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"></span>kind<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>Jenkins<span style="color:#f8f8f8;text-decoration:underline">
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"></span>metadata<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
|
||||
@@ -1486,8 +1486,8 @@ If you want to use <code>v0.2.0</code> or newer you must simply writ
|
||||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>name<span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span>jenkins-operator-user-configuration-&lt;cr_name&gt;</code></pre></div>
|
||||
<p><strong>Jenkins</strong> configuration jobs (<em>Configure Seed Jobs</em>, <em>jenkins-operator-base-configuration</em>, <em>jenkins-operator-user-configuration</em>) have been removed from <strong>Jenkins</strong>.</p>
|
||||
|
||||
<p>In <code>v0.1.1</code> you can see if configuration failed or successfully updated in <strong>Jenkins</strong> UI (job build logs).
|
||||
Now, when Jenkins configuration jobs are removed, you must use this command to see if configuration was failed.</p>
|
||||
<p>In <code>v0.1.1</code> you can see if the configuration failed or successfully updated in <strong>Jenkins</strong> UI (job build logs).
|
||||
When Jenkins configuration jobs are removed, you must use the following command to see if configuration was failed.</p>
|
||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">$ kubectl -n logs deployment/jenkins-operator</code></pre></div>
|
||||
</description>
|
||||
</item>
|
||||
@@ -1574,7 +1574,7 @@ kubectl apply -f deploy/operator.yaml</code></pre></div>
|
||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">kubectl logs deployment/jenkins-operator</code></pre></div>
|
||||
<h2 id="troubleshooting">Troubleshooting</h2>
|
||||
|
||||
<p>Delete Jenkins master pod and wait for the new one to come up:</p>
|
||||
<p>Delete the Jenkins master pod and wait for the new one to come up:</p>
|
||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">kubectl delete pod jenkins-&lt;cr_name&gt;</code></pre></div>
|
||||
</description>
|
||||
</item>
|
||||
@@ -1631,7 +1631,7 @@ kubectl apply -f deploy/operator.yaml</code></pre></div>
|
||||
</ul>
|
||||
<h2 id="jenkins.io">jenkins.io</h2>
|
||||
<p>
|
||||
<p>Package v1alpha2 contains API Schema definitions for the jenkins.io v1alpha2 API group</p>
|
||||
<p>Package v1alpha2 contains the API Schema definitions for the jenkins.io v1alpha2 API group</p>
|
||||
</p>
|
||||
Resource Types:
|
||||
<ul><li>
|
||||
@@ -1720,7 +1720,7 @@ Every single change here requires a pod restart.</p>
|
||||
</td>
|
||||
<td>
|
||||
<em>(Optional)</em>
|
||||
<p>SeedJobs defines list of Jenkins Seed Job configurations
|
||||
<p>SeedJobs defines a list of Jenkins Seed Job configurations
|
||||
More info: <a href="https://github.com/jenkinsci/kubernetes-operator/blob/master/docs/getting-started.md#configure-seed-jobs-and-pipelines">https://github.com/jenkinsci/kubernetes-operator/blob/master/docs/getting-started.md#configure-seed-jobs-and-pipelines</a></p>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1735,7 +1735,7 @@ Service
|
||||
</td>
|
||||
<td>
|
||||
<em>(Optional)</em>
|
||||
<p>Service is Kubernetes service of Jenkins master HTTP pod
|
||||
<p>Service is the Kubernetes service of the Jenkins master HTTP pod
|
||||
Defaults to :
|
||||
port: 8080
|
||||
type: ClusterIP</p>
|
||||
@@ -1752,7 +1752,7 @@ Service
|
||||
</td>
|
||||
<td>
|
||||
<em>(Optional)</em>
|
||||
<p>Service is Kubernetes service of Jenkins slave pods
|
||||
<p>Service is the Kubernetes service of the Jenkins slave pods
|
||||
Defaults to :
|
||||
port: 50000
|
||||
type: ClusterIP</p>
|
||||
@@ -1769,7 +1769,7 @@ Backup
|
||||
</td>
|
||||
<td>
|
||||
<em>(Optional)</em>
|
||||
<p>Backup defines configuration of Jenkins backup
|
||||
<p>Backup defines the configuration of a Jenkins backup
|
||||
More info: <a href="https://github.com/jenkinsci/kubernetes-operator/blob/master/docs/getting-started.md#configure-backup-and-restore">https://github.com/jenkinsci/kubernetes-operator/blob/master/docs/getting-started.md#configure-backup-and-restore</a></p>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1784,7 +1784,7 @@ Restore
|
||||
</td>
|
||||
<td>
|
||||
<em>(Optional)</em>
|
||||
<p>Backup defines configuration of Jenkins backup restore
|
||||
<p>Backup defines the configuration of a Jenkins backup restore
|
||||
More info: <a href="https://github.com/jenkinsci/kubernetes-operator/blob/master/docs/getting-started.md#configure-backup-and-restore">https://github.com/jenkinsci/kubernetes-operator/blob/master/docs/getting-started.md#configure-backup-and-restore</a></p>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1799,7 +1799,7 @@ GroovyScripts
|
||||
</td>
|
||||
<td>
|
||||
<em>(Optional)</em>
|
||||
<p>GroovyScripts defines configuration of Jenkins customization via groovy scripts</p>
|
||||
<p>GroovyScripts defines the configuration of Jenkins customization via groovy scripts</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -1813,7 +1813,7 @@ ConfigurationAsCode
|
||||
</td>
|
||||
<td>
|
||||
<em>(Optional)</em>
|
||||
<p>ConfigurationAsCode defines configuration of Jenkins customization via Configuration as Code Jenkins plugin</p>
|
||||
<p>ConfigurationAsCode defines the configuration of Jenkins customization via the Configuration as Code Jenkins plugin</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -1904,7 +1904,7 @@ string
|
||||
<a href="#github.com%2fjenkinsci%2fkubernetes-operator%2fpkg%2fapis%2fjenkins%2fv1alpha2.JenkinsSpec">JenkinsSpec</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>Backup defines configuration of Jenkins backup</p>
|
||||
<p>Backup defines the configuration of a Jenkins backup</p>
|
||||
</p>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -1935,7 +1935,7 @@ Handler
|
||||
</em>
|
||||
</td>
|
||||
<td>
|
||||
<p>Action defines action which performs backup in backup container sidecar</p>
|
||||
<p>Action defines the action which performs the backup in the backup container sidecar</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -1946,7 +1946,7 @@ uint64
|
||||
</em>
|
||||
</td>
|
||||
<td>
|
||||
<p>Interval tells how often make backup in seconds
|
||||
<p>Interval tells you how often the backup is made in seconds
|
||||
Defaults to 30.</p>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1958,7 +1958,7 @@ bool
|
||||
</em>
|
||||
</td>
|
||||
<td>
|
||||
<p>MakeBackupBeforePodDeletion tells operator to make backup before Jenkins master pod deletion</p>
|
||||
<p>MakeBackupBeforePodDeletion tells the operator to make a backup before Jenkins master pod deletion</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -1970,7 +1970,7 @@ bool
|
||||
<a href="#github.com%2fjenkinsci%2fkubernetes-operator%2fpkg%2fapis%2fjenkins%2fv1alpha2.Customization">Customization</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>ConfigMapRef is reference to Kubernetes ConfigMap</p>
|
||||
<p>ConfigMapRef is the reference to Kubernetes ConfigMap</p>
|
||||
</p>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -1999,7 +1999,7 @@ string
|
||||
<a href="#github.com%2fjenkinsci%2fkubernetes-operator%2fpkg%2fapis%2fjenkins%2fv1alpha2.JenkinsSpec">JenkinsSpec</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>ConfigurationAsCode defines configuration of Jenkins customization via Configuration as Code Jenkins plugin</p>
|
||||
<p>ConfigurationAsCode defines configuration of Jenkins customization via the Configuration as Code Jenkins plugin</p>
|
||||
</p>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -2030,7 +2030,7 @@ Customization
|
||||
<a href="#github.com%2fjenkinsci%2fkubernetes-operator%2fpkg%2fapis%2fjenkins%2fv1alpha2.JenkinsMaster">JenkinsMaster</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>Container defines Kubernetes container attributes</p>
|
||||
<p>Container defines the Kubernetes container attributes</p>
|
||||
</p>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -2385,7 +2385,7 @@ Kubernetes core/v1.ExecAction
|
||||
<a href="#github.com%2fjenkinsci%2fkubernetes-operator%2fpkg%2fapis%2fjenkins%2fv1alpha2.SeedJob">SeedJob</a>)
|
||||
</p>
|
||||
<p>
|
||||
<p>JenkinsCredentialType defines type of Jenkins credential used to seed job mechanism</p>
|
||||
<p>JenkinsCredentialType defines the type of Jenkins credential used in the seed job mechanism</p>
|
||||
</p>
|
||||
<h3 id="github.com/jenkinsci/kubernetes-operator/pkg/apis/jenkins/v1alpha2.JenkinsMaster">JenkinsMaster
|
||||
</h3>
|
||||
@@ -2845,7 +2845,7 @@ string
|
||||
</td>
|
||||
<td>
|
||||
<em>(Optional)</em>
|
||||
<p>UserAndPasswordHash is a SHA256 hash made from user and password</p>
|
||||
<p>UserAndPasswordHash is a SHA256 hash made from the username and password</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -2857,7 +2857,7 @@ string
|
||||
</td>
|
||||
<td>
|
||||
<em>(Optional)</em>
|
||||
<p>CreatedSeedJobs contains list of seed job id already created in Jenkins</p>
|
||||
<p>CreatedSeedJobs contains list of seed job ids already created in Jenkins</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -3291,7 +3291,7 @@ string
|
||||
</em>
|
||||
</td>
|
||||
<td>
|
||||
<p>Targets is the repository path where are seed job definitions</p>
|
||||
<p>Targets is the repository path where the seed job definitions are</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -3302,7 +3302,7 @@ string
|
||||
</em>
|
||||
</td>
|
||||
<td>
|
||||
<p>RepositoryBranch is the repository branch where are seed job definitions</p>
|
||||
<p>RepositoryBranch is the repository branch where the seed job definitions are</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -3499,7 +3499,7 @@ int32
|
||||
</em>
|
||||
</td>
|
||||
<td>
|
||||
<p>The port that are exposed by this service.
|
||||
<p>The port that is exposed by this service.
|
||||
More info: <a href="https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies">https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies</a></p>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -3514,7 +3514,7 @@ int32
|
||||
<em>(Optional)</em>
|
||||
<p>The port on each node on which this service is exposed when type=NodePort or LoadBalancer.
|
||||
Usually assigned by the system. If specified, it will be allocated to the service
|
||||
if unused or else creation of the service will fail.
|
||||
if unused, or else creation of the service will fail.
|
||||
Default is to auto-allocate a port if the ServiceType of this Service requires one.
|
||||
More info: <a href="https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport">https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport</a></p>
|
||||
</td>
|
||||
@@ -3529,7 +3529,7 @@ More info: <a href="https://kubernetes.io/docs/concepts/services-networki
|
||||
<td>
|
||||
<em>(Optional)</em>
|
||||
<p>If specified and supported by the platform, this will restrict traffic through the cloud-provider
|
||||
load-balancer will be restricted to the specified client IPs. This field will be ignored if the
|
||||
the load-balancer will be restricted to the specified client IPs. This field will be ignored if the
|
||||
cloud-provider does not support the feature.&rdquo;
|
||||
More info: <a href="https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/">https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/</a></p>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user