Regenerate index.yaml, add namespace to NOTES, fix Jenkins CR

This commit is contained in:
Jakub Al-Khalili 2019-09-18 11:29:42 +02:00
parent 9b2f44187a
commit f8b502f393
7 changed files with 56 additions and 72 deletions

View File

@ -2,13 +2,13 @@ apiVersion: v1
entries: entries:
jenkins-operator: jenkins-operator:
- apiVersion: v1 - apiVersion: v1
appVersion: "1.0" appVersion: 0.2.0
created: "2019-09-18T10:03:55.800596+02:00" created: "2019-09-18T11:28:17.672673+02:00"
description: Jenkins operator is a Kubernetes native operator which fully manages description: Kubernetes native operator which fully manages
Jenkins on Kubernetes Jenkins on Kubernetes
digest: 6594e655923d9555bbfc19c7d2fb78580bbc9e7901530dd09aa3877c00759460 digest: 8dc6fbfb7c6b17d6ea42ff985aa5f52d191277efa396a62a74390c1edf1f9b46
name: jenkins-operator name: jenkins-operator
urls: urls:
- https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart/jenkins-operator/jenkins-operator-0.2.0.tgz - https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart/jenkins-operator/jenkins-operator-0.0.1.tgz
version: 0.2.0 version: 0.0.1
generated: "2019-09-18T10:03:55.799534+02:00" generated: "2019-09-18T11:28:17.671883+02:00"

Binary file not shown.

Binary file not shown.

View File

@ -1,5 +1,5 @@
apiVersion: v1 apiVersion: v1
appVersion: "1.0" appVersion: "0.2.0"
description: Jenkins operator is a Kubernetes native operator which fully manages Jenkins on Kubernetes description: Kubernetes native operator which fully manages Jenkins on Kubernetes
name: jenkins-operator name: jenkins-operator
version: 0.2.0 version: 0.0.1

View File

@ -1,11 +1,11 @@
1. Watch Jenkins instance being created: 1. Watch Jenkins instance being created:
$ kubectl get pods -w $ kubectl --namespace {{ .Values.jenkins.namespace }} get pods -w
2. Get Jenkins credentials: 2. Get Jenkins credentials:
$ kubectl get secret jenkins-operator-credentials-{{ .Values.jenkins.name }} -o 'jsonpath={.data.user}' | base64 -d $ kubectl --namespace {{ .Values.jenkins.namespace }} get secret jenkins-operator-credentials-{{ .Values.jenkins.name }} -o 'jsonpath={.data.user}' | base64 -d
$ kubectl get secret jenkins-operator-credentials-{{ .Values.jenkins.name }} -o 'jsonpath={.data.password}' | base64 -d $ kubectl --namespace {{ .Values.jenkins.namespace }} get secret jenkins-operator-credentials-{{ .Values.jenkins.name }} -o 'jsonpath={.data.password}' | base64 -d
3. Connect to Jenkins (minikube): 3. Connect to Jenkins (actual Kubernetes cluster):
$ minikube service jenkins-operator-http-{{ .Values.jenkins.name }} --url $ kubectl --namespace {{ .Values.jenkins.namespace }} port-forward jenkins-{{ .Values.jenkins.name }} 8080:8080
Connect to Jenkins (actual Kubernetes cluster):
$ kubectl port-forward jenkins-{{ .Values.jenkins.name }} 8080:8080 Now open the browser and enter http://localhost:8080

View File

@ -1,6 +1,8 @@
apiVersion: {{ .Values.jenkins.apiVersion }} apiVersion: {{ .Values.jenkins.apiVersion }}
kind: Jenkins kind: Jenkins
metadata: metadata:
name: {{ .Values.jenkins.name }} name: {{ .Values.jenkins.name }}
master: namespace: {{ .Values.jenkins.namespace }}
{{- toYaml .Values.jenkins.master | nindent 4 }} spec:
master:
{{- toYaml .Values.jenkins.spec.master | nindent 4 }}

View File

@ -16,58 +16,40 @@ fullnameOverride: ""
jenkins: jenkins:
apiVersion: jenkins.io/v1alpha2 apiVersion: jenkins.io/v1alpha2
name: example name: example
master: namespace: default
containers: spec:
- name: jenkins-master master:
image: jenkins/jenkins:lts containers:
imagePullPolicy: Always - name: jenkins-master
livenessProbe: image: jenkins/jenkins:lts
failureThreshold: 12 imagePullPolicy: Always
httpGet: livenessProbe:
path: /login failureThreshold: 12
port: http httpGet:
scheme: HTTP path: /login
initialDelaySeconds: 80 port: http
periodSeconds: 10 scheme: HTTP
successThreshold: 1 initialDelaySeconds: 80
timeoutSeconds: 5 periodSeconds: 10
readinessProbe: successThreshold: 1
failureThreshold: 3 timeoutSeconds: 5
httpGet: readinessProbe:
path: /login failureThreshold: 3
port: http httpGet:
scheme: HTTP path: /login
initialDelaySeconds: 30 port: http
periodSeconds: 10 scheme: HTTP
successThreshold: 1 initialDelaySeconds: 30
timeoutSeconds: 1 periodSeconds: 10
resources: successThreshold: 1
limits: timeoutSeconds: 1
cpu: 1500m resources:
memory: 3Gi limits:
requests: cpu: 1500m
cpu: "1" memory: 3Gi
memory: 500Mi requests:
seedJobs: cpu: "1"
- id: jenkins-operator memory: 500Mi
targets: "cicd/jobs/*.jenkins"
description: "Jenkins Operator repository"
repositoryBranch: master
repositoryUrl: https://github.com/jenkinsci/kubernetes-operator.git
ingress:
enabled: false
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths: []
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious