зеркало из https://github.com/Azure/acs-demos.git
Merge branch 'master' of github.com:Azure/acs-demos
This commit is contained in:
Коммит
7fb8cc5620
|
@ -0,0 +1 @@
|
|||
*.tgz
|
|
@ -0,0 +1,38 @@
|
|||
# Installing a Jenkins Service on Azure Container Service
|
||||
|
||||
## Prerequesites
|
||||
|
||||
* Kubernetes Cluster
|
||||
* [Helm installed](https://github.com/kubernetes/helm#install)
|
||||
|
||||
## Installing Jenkins
|
||||
|
||||
`jenkins-values.yaml` contains configuration parameters for your
|
||||
Jenkins installation. Edit this file as necessary.
|
||||
|
||||
To install Jenkins run the following command:
|
||||
|
||||
`helm install stable/jenkins -f jenkins-config.yaml --name demo`
|
||||
|
||||
Wait for the public IP to be assigned:
|
||||
|
||||
`watch kubectl get services`
|
||||
|
||||
Confirm the pod has started:
|
||||
|
||||
`watch kubectl get pods`
|
||||
|
||||
## Login to Jenkins
|
||||
|
||||
In the output of the install there will be a script to retrieve the user password from the Jenkins instance. It will look something like the below, pay special attention to the name (in this case `demo-jenkins`):
|
||||
|
||||
`printf $(kubectl get secret --namespace default demo-jenkins -o jsonpath="{.data.jenkins-admin-password}" | base64 --decode);echo`
|
||||
|
||||
Make a note of the password an log in to the Jenkins cluster by
|
||||
visiting the service IP on port 8080 (obtainable using `kubectl get services`)
|
||||
|
||||
Log in with the username `admin` and the password you retreived earlier. You may want to change your admin password and/or create a new user at this point.
|
||||
|
||||
# TODO
|
||||
|
||||
Secure the service with HTTPS
|
|
@ -0,0 +1,21 @@
|
|||
Master:
|
||||
Memory: "512Mi"
|
||||
HostName: rgjenkins.eastus.cloudapp.azure.com
|
||||
ServiceType: LoadBalancer
|
||||
InstallPlugins:
|
||||
- kubernetes:0.11
|
||||
- workflow-aggregator:2.5
|
||||
- credentials-binding:1.11
|
||||
- git:3.2.0
|
||||
- pipeline-github-lib:1.0
|
||||
- ghprb:1.36.1
|
||||
- blueocean:1.0.1
|
||||
|
||||
ScriptApproval:
|
||||
- "method groovy.json.JsonSlurperClassic parseText java.lang.String"
|
||||
- "new groovy.json.JsonSlurperClassic"
|
||||
- "staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods leftShift java.util.Map java.util.Map"
|
||||
- "staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods split java.lang.String"
|
||||
|
||||
Agent:
|
||||
Enabled: false
|
Загрузка…
Ссылка в новой задаче