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

@ -2,5 +2,7 @@ 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,6 +16,8 @@ fullnameOverride: ""
jenkins: jenkins:
apiVersion: jenkins.io/v1alpha2 apiVersion: jenkins.io/v1alpha2
name: example name: example
namespace: default
spec:
master: master:
containers: containers:
- name: jenkins-master - name: jenkins-master
@ -48,26 +50,6 @@ jenkins:
requests: requests:
cpu: "1" cpu: "1"
memory: 500Mi memory: 500Mi
seedJobs:
- id: jenkins-operator
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