the default GitOps source repository for booting up Jenkins X
修订版 | 5cf10399ece9ea7f650aa838c557f2ea05df5814 (tree) |
---|---|
时间 | 2019-07-03 17:05:57 |
作者 | James Strachan <james.strachan@gmai...> |
Commiter | James Strachan |
fix: add the kube provider overrides
moving the old cloud-environments repo into boot...
@@ -0,0 +1,4 @@ | ||
1 | +## Provider Specific Configurations | |
2 | + | |
3 | +To try maximise reuse of Jenkins X Boot configurations across cloud providers we try to put all the cloud specific configurations in this directory. | |
4 | + |
@@ -0,0 +1 @@ | ||
1 | +# Jenkins X Boot configuration for Azure Container Engine | |
\ No newline at end of file |
@@ -0,0 +1,12 @@ | ||
1 | +# Override configuration from https://github.com/jenkins-x/jenkins-x-platform/blob/master/jenkins-x-platform/values.yaml | |
2 | + | |
3 | +PipelineSecrets: | |
4 | + | |
5 | + # lets enable ACR docker builds | |
6 | + DockerConfig: |- | |
7 | + { | |
8 | + "credsStore": "acr-linux" | |
9 | + } | |
10 | + | |
11 | +docker-registry: | |
12 | + enabled: false |
@@ -0,0 +1 @@ | ||
1 | +# Jenkins X Boot configuration for Alibaba Container Service | |
\ No newline at end of file |
@@ -0,0 +1,17 @@ | ||
1 | +# Override configuration from https://github.com/jenkins-x/jenkins-x-platform/blob/master/jenkins-x-platform/values.yaml | |
2 | +chartmuseum: | |
3 | + persistence: | |
4 | + size: 20Gi | |
5 | +jenkins: | |
6 | + Persistence: | |
7 | + Size: 20Gi | |
8 | +monocular: | |
9 | + mongodb: | |
10 | + persistence: | |
11 | + size: 20Gi | |
12 | +nexus: | |
13 | + persistence: | |
14 | + size: 20Gi | |
15 | +tekton: | |
16 | + pvc: | |
17 | + size: 20Gi |
@@ -0,0 +1 @@ | ||
1 | +# Jenkins X Boot configuration for generic Kubernetes | |
\ No newline at end of file |
@@ -0,0 +1,9 @@ | ||
1 | +# Override configuration from https://github.com/jenkins-x/jenkins-x-platform/blob/master/jenkins-x-platform/values.yaml | |
2 | + | |
3 | +PipelineSecrets: | |
4 | + | |
5 | + # lets enable ECR docker builds | |
6 | + DockerConfig: |- | |
7 | + { | |
8 | + "credsStore": "ecr-login" | |
9 | + } | |
\ No newline at end of file |
@@ -0,0 +1 @@ | ||
1 | +# Jenkins X Boot configuration for EKS | |
\ No newline at end of file |
@@ -0,0 +1,12 @@ | ||
1 | +# Override configuration from https://github.com/jenkins-x/jenkins-x-platform/blob/master/jenkins-x-platform/values.yaml | |
2 | + | |
3 | +PipelineSecrets: | |
4 | + | |
5 | + # lets enable ECR docker builds | |
6 | + DockerConfig: |- | |
7 | + { | |
8 | + "credsStore": "ecr-login" | |
9 | + } | |
10 | + | |
11 | +docker-registry: | |
12 | + enabled: false |
@@ -0,0 +1 @@ | ||
1 | +# Jenkins X Boot configuration for Google Container Engine | |
\ No newline at end of file |
@@ -0,0 +1,23 @@ | ||
1 | +# Override configuration from https://github.com/jenkins-x/jenkins-x-platform/blob/master/jenkins-x-platform/values.yaml | |
2 | + | |
3 | +dockerRegistry: gcr.io | |
4 | + | |
5 | +jenkins-x-platform: | |
6 | + dockerRegistry: gcr.io | |
7 | + | |
8 | +docker-registry: | |
9 | + enabled: false | |
10 | + | |
11 | +PipelineSecrets: | |
12 | + | |
13 | + # lets enable GCR docker builds | |
14 | + DockerConfig: |- | |
15 | + { | |
16 | + "credHelpers": { | |
17 | + "gcr.io": "gcr", | |
18 | + "us.gcr.io": "gcr", | |
19 | + "eu.gcr.io": "gcr", | |
20 | + "asia.gcr.io": "gcr", | |
21 | + "staging-k8s.gcr.io": "gcr" | |
22 | + } | |
23 | + } |
@@ -0,0 +1 @@ | ||
1 | +# Jenkins X Boot configuration for IBM Cloud Private |
@@ -0,0 +1,24 @@ | ||
1 | +# Override configuration from https://github.com/jenkins-x/jenkins-x-platform/blob/master/jenkins-x-platform/values.yaml | |
2 | +monocular: | |
3 | + mongodb: | |
4 | + persistence: | |
5 | + enabled: false | |
6 | + | |
7 | +# We'll be using the IBM Cloud Private registry | |
8 | +docker-registry: | |
9 | + enabled: false | |
10 | + | |
11 | +jenkins: | |
12 | + Servers: | |
13 | + # global node properties | |
14 | + Global: | |
15 | + EnvVars: | |
16 | + # Override this if your cluster name is not mycluster.icp (the default for IBM Cloud Private) with --docker-registry | |
17 | + DOCKER_REGISTRY: mycluster.icp:8500/jx | |
18 | + Master: | |
19 | + ServiceAnnotations: | |
20 | + fabric8.io/ingress.annotations: "kubernetes.io/ingress.class: nginx\nnginx.ingress.kubernetes.io/proxy-body-size: 500m\nkubernetes.io/tls-acme: true\ncertmanager.k8s.io/cluster-issuer: icp-ca-issuer" | |
21 | + Readiness: | |
22 | + InitialDelaySeconds: 10 | |
23 | + Liveness: | |
24 | + InitialDelaySeconds: 10 |
@@ -0,0 +1,226 @@ | ||
1 | +# Jenkins X Boot configuration for IBM Cloud | |
2 | + | |
3 | +CAUTION: Current `iks` clusters need `kaniko` if you want to use them for building Docker images in the course of your CI pipeline (which is an essential step to get your applications into your JX k8s cluster). This is not yet implemented, cf. https://github.com/jenkins-x/jx/issues/3971. | |
4 | + | |
5 | +## Prerequisites | |
6 | + | |
7 | +* Make yourself familiar with the general Jenkins-X (JX) setup: https://jenkins-x.io/documentation/ | |
8 | +* You need a GitHub account: https://github.com (Checkout the appendix of this document, if you would like to use IBM Cloud Git instead) | |
9 | +* Before setting up (JX) on IBM cloud with Kubernetes (IKS) you need an IBM account. | |
10 | +You can apply for a free trial for one year here: https://www.ibm.com/partners/start/cloud-container-service/ | |
11 | + | |
12 | +NOTE: A _free_ IBM cloud account does not include all necessary permissions and resources to run k8s and JX. | |
13 | + | |
14 | +## Initial cloud setup | |
15 | + | |
16 | +### Automatic initial setup | |
17 | + | |
18 | +Run the following shell script, it should setup the local cloud tools (`ibmcloud`) on your machine. | |
19 | + | |
20 | + # An IKS 1.10 cluster must be used, 1.11 was broken with jenkins-x at the time of writing | |
21 | + curl -sL https://ibm.biz/idt-installer | bash | |
22 | + | |
23 | +### Manual initial setup | |
24 | + | |
25 | +If the automatic setup fails, you may perform a manual setup, as described here: https://console.bluemix.net/docs/cli/index.html#overview | |
26 | + | |
27 | +And install some additional plugins | |
28 | + | |
29 | + ibmcloud plugin install container-service | |
30 | + ibmcloud plugin install container-registry | |
31 | + | |
32 | +and some tools used by JX | |
33 | + | |
34 | +* install latest helm -> https://docs.helm.sh/using_helm/#installing-helm | |
35 | +* install kubectl 1.10 -> https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-binary-using-curl | |
36 | +* install jx -> https://jenkins-x.io/getting-started/install/ | |
37 | + | |
38 | +Then login to the IBM cloud | |
39 | + | |
40 | + ibmcloud login -a https://api.us-east.bluemix.net (--sso / --apikey as appropriate) | |
41 | + | |
42 | +## Create/Install k8s/JX | |
43 | + | |
44 | +NOTE: Check out the open issues section at the end of the document (before the Appendix section) for some known limitations! | |
45 | + | |
46 | +### Create IKS cluster and JX automatically | |
47 | + | |
48 | +One of the large strengths of JX is, that it can even set up a k8s cluster automatically during the install process. | |
49 | + | |
50 | +Just call: | |
51 | + | |
52 | +```bash | |
53 | +jx create cluster iks \ | |
54 | + -n jx-wdc04 \ | |
55 | + -r us-east \ | |
56 | + -z wdc04 \ | |
57 | + -m b2c.4x16 \ | |
58 | + --workers=3 \ | |
59 | + --kube-version=1.11.9 \ | |
60 | + \ | |
61 | + --namespace='jx' | |
62 | +``` | |
63 | + | |
64 | +and answer some remaining questions, e.g., for your Git/GitHub user. | |
65 | + | |
66 | +NOTE: If you run into problems or want to customize parts of the setup, follow the instructions in the next section. | |
67 | + | |
68 | +### Set up IKS and JX manually | |
69 | + | |
70 | +#### Set up IKS cluster manually | |
71 | + | |
72 | +* Find a region: `ibmcloud ks regions` | |
73 | +* Set the region (eg. us-east, cf. [issue 2984](https://github.com/jenkins-x/jx/issues/2984)): `ibmcloud ks region-set us-east` | |
74 | +* Find a zone (eg. wdc07): `ibmcloud ks zones` | |
75 | +* Find machine types (should use `b2c.4x16 minimum`): `ibmcloud ks machine-types --zone wdc07` | |
76 | +* Find the k8s 1.11.x version: `ibmcloud ks kube-versions` | |
77 | +* Find the Public and private vlans (if none exist, they will be created): `ibmcloud ks vlans --zone wdc07` | |
78 | +* Create VLANs, if vlans exist in the zone, they will need to be specified here otherwise they will be created. | |
79 | +* If you want to use let's encrypt, make sure to specify a cluster name so that `docker-registry.jx.<clustername>.<regionname>.containers.appdomain.cloud` is less than 64 characters (will be checked automatically during install), eg., `docker-registry.jx.jx-wdc07.us-east.container.appdomain.cloud < 64 chars` (Smallest possible is best). | |
80 | +* Set up the cluster (some parameters depend on your settings before or what resource types are available in the chosen region, zone etc.): | |
81 | + | |
82 | +```bash | |
83 | + ibmcloud ks cluster-create \ | |
84 | + --name jx-wdc07 \ | |
85 | + --kube-version 1.11.9 \ | |
86 | + --zone wdc07 \ | |
87 | + --machine-type b2c.4x16 \ | |
88 | + --workers 3 \ | |
89 | + --private-vlan 2323675 \ | |
90 | + --public-vlan 2323691 | |
91 | +``` | |
92 | + | |
93 | +* Check until state is "normal" (takes about 25 minutes): `ibmcloud ks cluster-get --cluster jx-wdc07` | |
94 | +* Import cluster parameters to your shell environment: `eval $(ibmcloud ks cluster-config --export --cluster jx-wdc07)` | |
95 | + | |
96 | +#### Setup Helm / Tiller | |
97 | + | |
98 | +CAUTION: This gives Tiller all privileges, do not use it for production environments! | |
99 | + | |
100 | +```bash | |
101 | + kubectl create serviceaccount --namespace kube-system tiller | |
102 | + kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller | |
103 | + # kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}' | |
104 | + helm init --service-account tiller --upgrade | |
105 | +``` | |
106 | + | |
107 | +#### Setup block storage drivers (Optional) | |
108 | + | |
109 | +* Install block storage drives with helm | |
110 | + | |
111 | +```bash | |
112 | + # helm init # Unless you already have initialized helm in the setup step before? | |
113 | + helm repo add ibm https://registry.bluemix.net/helm/ibm | |
114 | + helm repo update | |
115 | + helm install ibm/ibmcloud-block-storage-plugin --name ibmcloud-block-storage-plugin | |
116 | +``` | |
117 | + | |
118 | +* Make block default | |
119 | + | |
120 | +```bash | |
121 | + kubectl patch storageclass ibmc-file-bronze -p \ | |
122 | + '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}' | |
123 | +``` | |
124 | + | |
125 | +* Alternatively (if included in your plan) you can also choose `ibmc-block-silver` or `ibmc-block-gold` for better IOPS | |
126 | + | |
127 | +```bash | |
128 | + kubectl patch storageclass ibmc-block-silver -p \ | |
129 | + '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}' | |
130 | +``` | |
131 | + | |
132 | +#### Setup https (Recommended) | |
133 | + | |
134 | +WARNING: This does not work and needs further testing/investigation! | |
135 | + | |
136 | +Note: There is also a jenkins- addon, may work but never tested with IBM Cloud | |
137 | + | |
138 | +```bash | |
139 | +# Optional/Sometime necessary? kubectl apply -f https://raw.githubusercontent.com/jetstack/cert-manager/release-0.6.1/deploy/manifests/00-crds.yaml | |
140 | +helm install \ | |
141 | + --namespace=kube-system \ | |
142 | + --name=cert-manager stable/cert-manager \ | |
143 | + --set=ingressShim.defaultIssuerKind=ClusterIssuer \ | |
144 | + --set=ingressShim.defaultIssuerName=letsencrypt-staging \ | |
145 | + --version v0.5.2 | |
146 | +cat << EOF| kubectl create -n kube-system -f - | |
147 | +apiVersion: certmanager.k8s.io/v1alpha1 | |
148 | +kind: ClusterIssuer | |
149 | +metadata: | |
150 | + name: letsencrypt-staging | |
151 | +spec: | |
152 | + acme: | |
153 | + server: https://acme-staging-v02.api.letsencrypt.org/directory | |
154 | + email: YOUREEMAIL@ca.ibm.com | |
155 | + privateKeySecretRef: | |
156 | + name: letsencrypt-staging | |
157 | + http01: {} | |
158 | +EOF | |
159 | +``` | |
160 | + | |
161 | +#### Install JX manually | |
162 | + | |
163 | +* Have your GitHub account at hand, | |
164 | +* Have your cluster subdomain for the domain flag (example provided) at hand, | |
165 | +* answer Y to create ingress when asked, | |
166 | + | |
167 | +```bash | |
168 | +jx install cluster --provider=iks \ | |
169 | + --domain='jx-wdc07.us-east.containers.appdomain.cloud' \ | |
170 | + [ --default-admin-password=<password> ] | |
171 | +``` | |
172 | + | |
173 | +* wait until done. can check status by doing `kubectl get deployments,services,pvc,pv,ingress -n jx` in another terminal | |
174 | +* Upgrade ingress if you have installed https: `jx upgrade ingress` | |
175 | +* Make sure you can push and pull images into the account: `ibmcloud cr token-add --non-expiring --readwrite --description "Jenkins-X Token"` | |
176 | + | |
177 | +## Open issues | |
178 | + | |
179 | +There are some open issues at the time of this writing (2019-02-05), some of which may limit your usage of IKS. | |
180 | + | |
181 | +NOTE: This is only a snapshot, check out their state or if others exist meanwhile: https://github.com/jenkins-x/jx/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+label%3Aarea%2FIKS+ | |
182 | + | |
183 | +| *Limitation* | *GitHub Issue* | *WIP* | | |
184 | +| ------------------------------------------------------------------------- |:----------------------------------------------------:|:-----:| | |
185 | +| Currently it is only possible to create a cluster in the region *us-east* | [#2984](https://github.com/jenkins-x/jx/issues/2984) | - | | |
186 | +| JX environments are not created automatically | [#2985](https://github.com/jenkins-x/jx/issues/2985) | - | | |
187 | +| Cluster registry is not automatically created | [#2997](https://github.com/jenkins-x/jx/issues/2997) | - | | |
188 | +| `batch-mode`, `verbose`-Flag etc. not possible | [#2996](https://github.com/jenkins-x/jx/issues/2996) | - | | |
189 | +| IKS needs `kaniko` to perform builds | [#3971](https://github.com/jenkins-x/jx/issues/3971) | - | | |
190 | +---- | |
191 | + | |
192 | +## Appendix | |
193 | + | |
194 | +These setups are usually not necessary. | |
195 | + | |
196 | +### Create Docker secret | |
197 | + | |
198 | +* `kubectl --namespace default create secret docker-registry registrysecret --docker-server=registry.<region>.bluemix.net --docker-username=token --docker-password=<token_value> --docker-email=<email>` | |
199 | +* Copy the "Token" | |
200 | + | |
201 | + echo -n token:<Token here> | base64 -w0 | |
202 | + | |
203 | +* Copy the base64 value and create a file called `config.json` with this contents: | |
204 | + | |
205 | +```{ | |
206 | + "auths": { | |
207 | + "registry.ng.bluemix.net": { | |
208 | + "auth": "<base64 encoded token>" | |
209 | + } | |
210 | + } | |
211 | +} | |
212 | +``` | |
213 | + | |
214 | +* Replace the existing Docker secret | |
215 | + | |
216 | + kubectl delete secret jenkins-docker-cfg -n jx | |
217 | + kubectl create secret generic jenkins-docker-cfg --from-file=./config.json -n jx | |
218 | + | |
219 | +* At this point the jenkins server needs to restarted to pick up the new docker creds: `kubectl -njx delete pods` -lapp=jenkins | |
220 | + | |
221 | +### Use IBM Git | |
222 | + | |
223 | +If you want to use git.ng.bluemix.net (gitlab), create a personal access token there | |
224 | + | |
225 | + jx create git server gitlab https://git.ng.bluemix.net -n gitlab | |
226 | + jx create git token -n gitlab -t <gitlab token> <gitlab username> |
@@ -0,0 +1,16 @@ | ||
1 | +# Override configuration from https://github.com/jenkins-x/jenkins-x-platform/blob/master/jenkins-x-platform/values.yaml | |
2 | +jenkins: | |
3 | + Servers: | |
4 | + Global: | |
5 | + EnvVars: | |
6 | + DOCKER_REGISTRY: "registry.ng.bluemix.net" | |
7 | +# Smaller cluster configurations require more time | |
8 | +jenkins: | |
9 | + Master: | |
10 | + Readiness: | |
11 | + InitialDelaySeconds: 600 | |
12 | + Liveness: | |
13 | + InitialDelaySeconds: 660 | |
14 | + | |
15 | +docker-registry: | |
16 | + enabled: false |
@@ -0,0 +1 @@ | ||
1 | +# Jenkins X Boot configuration for generic Kubernetes | |
\ No newline at end of file |
@@ -0,0 +1 @@ | ||
1 | +# Override configuration from https://github.com/jenkins-x/jenkins-x-platform/blob/master/jenkins-x-platform/values.yaml |
@@ -0,0 +1,5 @@ | ||
1 | +# Override configuration from https://github.com/jenkins-x/jenkins-x-platform/blob/master/jenkins-x-platform/values.yaml | |
2 | +exposecontroller: | |
3 | + exposecontroller: | |
4 | + HTTP: "true" | |
5 | + TLSACME: "false" | |
\ No newline at end of file |
@@ -0,0 +1,64 @@ | ||
1 | +# Override configuration from https://github.com/jenkins-x/jenkins-x-platform/blob/master/jenkins-x-platform/values.yaml | |
2 | +exposecontroller: | |
3 | + exposecontroller: | |
4 | + HTTP: "true" | |
5 | + TLSACME: "false" | |
6 | + | |
7 | +# disable monocular until the routing is fixed | |
8 | +monocular: | |
9 | + enabled: false | |
10 | + | |
11 | + | |
12 | +docker-registry: | |
13 | + enabled: false | |
14 | + | |
15 | +jenkins: | |
16 | + Master: | |
17 | + Image: "davidconde/jenkinsx-openshift" | |
18 | + ImageTag: "0.0.1" | |
19 | + ServiceAccountAnnotations: | | |
20 | + serviceaccounts.openshift.io/oauth-redirectreference.jenkins: >- | |
21 | + {"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"jenkins"}} | |
22 | + AuthorizationStrategyClass: "hudson.security.GlobalMatrixAuthorizationStrategy" | |
23 | + AuthorizationStrategyAttributes: | |
24 | + - name: "permission" | |
25 | + value: "hudson.model.Computer.Configure:admin" | |
26 | + - name: "permission" | |
27 | + value: "hudson.model.Computer.Delete:admin" | |
28 | + - name: "permission" | |
29 | + value: "hudson.model.Hudson.Administer:admin" | |
30 | + - name: "permission" | |
31 | + value: "hudson.model.Hudson.Read:admin" | |
32 | + - name: "permission" | |
33 | + value: "hudson.model.Item.Build:admin" | |
34 | + - name: "permission" | |
35 | + value: "hudson.model.Item.Configure:admin" | |
36 | + - name: "permission" | |
37 | + value: "hudson.model.Item.Create:admin" | |
38 | + - name: "permission" | |
39 | + value: "hudson.model.Item.Delete:admin" | |
40 | + - name: "permission" | |
41 | + value: "hudson.model.Item.Read:admin" | |
42 | + - name: "permission" | |
43 | + value: "hudson.model.Item.Workspace:admin" | |
44 | + - name: "permission" | |
45 | + value: "hudson.model.Run.Delete:admin" | |
46 | + - name: "permission" | |
47 | + value: "hudson.model.Run.Update:admin" | |
48 | + - name: "permission" | |
49 | + value: "hudson.model.View.Configure:admin" | |
50 | + - name: "permission" | |
51 | + value: "hudson.model.View.Create:admin" | |
52 | + - name: "permission" | |
53 | + value: "hudson.model.View.Delete:admin" | |
54 | + - name: "permission" | |
55 | + value: "hudson.scm.SCM.Tag:admin" | |
56 | + SecurityRealmClass: "hudson.security.HudsonPrivateSecurityRealm" | |
57 | + SecurityRealmAttributes: | |
58 | + - name: "disableSignup" | |
59 | + value: "true" | |
60 | + - name: "enableCaptcha" | |
61 | + value: "false" | |
62 | + Global: | |
63 | + EnvVars: | |
64 | + DOCKER_REGISTRY: "docker-registry.default.svc:5000" | |
\ No newline at end of file |
@@ -0,0 +1 @@ | ||
1 | +# Jenkins X Boot configuration for Oracle Cloud Infrastructure Container Engine for Kubernetes | |
\ No newline at end of file |
@@ -0,0 +1,14 @@ | ||
1 | +chartmuseum: | |
2 | + persistence: | |
3 | + Size: 50Gi | |
4 | +jenkins: | |
5 | + Persistence: | |
6 | + Size: 50Gi | |
7 | +monocular: | |
8 | + mongodb: | |
9 | + persistence: | |
10 | + size: 50Gi | |
11 | + | |
12 | +jenkins: | |
13 | + Agent: | |
14 | + KubernetesServerURL: "https://kubernetes.default.svc" |
@@ -0,0 +1,63 @@ | ||
1 | +# Override configuration from https://github.com/jenkins-x/jenkins-x-platform/blob/master/jenkins-x-platform/values.yaml | |
2 | +exposecontroller: | |
3 | + exposecontroller: | |
4 | + HTTP: "true" | |
5 | + TLSACME: "false" | |
6 | + | |
7 | +# disable monocular until the routing is fixed | |
8 | +monocular: | |
9 | + enabled: false | |
10 | + | |
11 | +docker-registry: | |
12 | + enabled: false | |
13 | + | |
14 | +jenkins: | |
15 | + Master: | |
16 | + Image: "davidconde/jenkinsx-openshift" | |
17 | + ImageTag: "0.0.1" | |
18 | + ServiceAccountAnnotations: | | |
19 | + serviceaccounts.openshift.io/oauth-redirectreference.jenkins: >- | |
20 | + {"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"jenkins"}} | |
21 | + AuthorizationStrategyClass: "hudson.security.GlobalMatrixAuthorizationStrategy" | |
22 | + AuthorizationStrategyAttributes: | |
23 | + - name: "permission" | |
24 | + value: "hudson.model.Computer.Configure:admin" | |
25 | + - name: "permission" | |
26 | + value: "hudson.model.Computer.Delete:admin" | |
27 | + - name: "permission" | |
28 | + value: "hudson.model.Hudson.Administer:admin" | |
29 | + - name: "permission" | |
30 | + value: "hudson.model.Hudson.Read:admin" | |
31 | + - name: "permission" | |
32 | + value: "hudson.model.Item.Build:admin" | |
33 | + - name: "permission" | |
34 | + value: "hudson.model.Item.Configure:admin" | |
35 | + - name: "permission" | |
36 | + value: "hudson.model.Item.Create:admin" | |
37 | + - name: "permission" | |
38 | + value: "hudson.model.Item.Delete:admin" | |
39 | + - name: "permission" | |
40 | + value: "hudson.model.Item.Read:admin" | |
41 | + - name: "permission" | |
42 | + value: "hudson.model.Item.Workspace:admin" | |
43 | + - name: "permission" | |
44 | + value: "hudson.model.Run.Delete:admin" | |
45 | + - name: "permission" | |
46 | + value: "hudson.model.Run.Update:admin" | |
47 | + - name: "permission" | |
48 | + value: "hudson.model.View.Configure:admin" | |
49 | + - name: "permission" | |
50 | + value: "hudson.model.View.Create:admin" | |
51 | + - name: "permission" | |
52 | + value: "hudson.model.View.Delete:admin" | |
53 | + - name: "permission" | |
54 | + value: "hudson.scm.SCM.Tag:admin" | |
55 | + SecurityRealmClass: "hudson.security.HudsonPrivateSecurityRealm" | |
56 | + SecurityRealmAttributes: | |
57 | + - name: "disableSignup" | |
58 | + value: "true" | |
59 | + - name: "enableCaptcha" | |
60 | + value: "false" | |
61 | + Global: | |
62 | + EnvVars: | |
63 | + DOCKER_REGISTRY: "docker-registry.default.svc:5000" |
@@ -0,0 +1 @@ | ||
1 | +# Jenkins X Boot configuration for PKS | |
\ No newline at end of file |
@@ -0,0 +1,13 @@ | ||
1 | +# Override configuration from https://github.com/jenkins-x/jenkins-x-platform/blob/master/jenkins-x-platform/values.yaml | |
2 | + | |
3 | +jenkins: | |
4 | + Servers: | |
5 | + # global node properties | |
6 | + Global: | |
7 | + EnvVars: | |
8 | + DOCKER_REGISTRY: harbor.corp.local | |
9 | + | |
10 | + Agent: | |
11 | + # for PKS there is a different docker host path | |
12 | + DockerHostPath: "/var/vcap/sys/run/docker/docker.sock" | |
13 | + DockerMountPath: "/var/run/docker.sock" |