Skip to content

Commit 75858e6

Browse files
committed
[CPTL2-5600] - Update to provide OpenShift examples
1 parent 7b3939a commit 75858e6

5 files changed

Lines changed: 65 additions & 26 deletions

File tree

helm-custom-value-file-examples/README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@
44
These YAML files are example values files for the CloudBees Core Helm Chart.
55

66
## Examples
7-
* `example-values.yaml`
8-
- An example of installing CloudBees Core that matches the CloudBees Core YAML file that is distributed with the CloudBees Core for installation package.
9-
- `migration-values-example.yaml`
10-
- A helm example values file for standard kubernetes install. An nginx-ingress controller is not installed and ssl isn't installed.
7+
* `example-values.yaml`,`openshift-example-values.yaml`
8+
9+
These files are examples of installing CloudBees Core for installing CloudBees Core on standard Kubernetes and OpenShift.
10+
- `migration-values-example.yaml`,`openshift-migration-values-example.yaml`
11+
12+
These files are example values files for standard Kubernetes and an OpenShift install.
13+
The Kubernetes version assumes that an Nginx-ingress controller is already installed on your Kubernetes cluster and doesn't install it. OpenShift does not use Ingresses; instead, it uses routes.
14+
TLS is disabled in both examples.
15+
16+
- `eks-tls-ingress-example.yaml`
17+
18+
This example demonstrates using Helm with Amazon's Elastic Kubernetes Service and an enabling TLS support on the ingress.
19+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# A helm example values file for an AWS install with nginx-ingress controller and TLS
2+
# Install an nginx-ingress controller
3+
nginx-ingress:
4+
Enabled: true
5+
OperationsCenter:
6+
# Set the platform to aws, so that ELBs are created
7+
platform: 'aws'
8+
# Set the HostName for the Operation Center
9+
HostName: 'cloudbees-core.example.com'
10+
# Setting ServiceType to ClusterIP creates ingress
11+
ServiceType: ClusterIP
12+
Ingress:
13+
tls:
14+
## Set this to true in order to enable TLS on the ingress
15+
Enable: true
16+
## Replace with your Kubernetes Certificate Select
17+
SecretName: core-example-com-tls
18+
Host: jenkins.cluster.local
19+
20+

helm-custom-value-file-examples/migration-values-example.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,3 @@ OperationsCenter:
1717
# Do not change these values. They are all set for migrating CloudBees Core.
1818
Persistence:
1919
ExistingClaim: 'jenkins-home-cjoc-0'
20-
21-
nameOverride: cjoc
22-
23-
saOverride:
24-
enabled : true
25-
serviceAccount: cjoc
26-
masterServiceAccount: jenkins
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# A helm example values file for an OpenShift install
2+
# Install an nginx-ingress controller
3+
nginx-ingress:
4+
Enabled: false
5+
OperationsCenter:
6+
# Set the platform to openshift, so that routes are created
7+
Platform: 'openshift'
8+
# Set the HostName for the Operation Center
9+
HostName: 'cloudbees-core.example.com'
10+
# Setting ServiceType to ClusterIP creates ingress
11+
ServiceType: ClusterIP
12+
Route:
13+
tls:
14+
## Set this to true in order to enable TLS on the ingress route
15+
Enable: false
16+
## Replace with your Kubernetes Certificate Select
17+
SecretName: core-example-com-tls
18+
Host: jenkins.cluster.local
19+
# Update this with the openshift project your are using.
20+
Project:
21+
name: myproject
22+

helm-custom-value-file-examples/migration-value-example.yaml renamed to helm-custom-value-file-examples/openshift-migration-values-example.yaml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,24 @@
1-
# A helm example values file for migrating a CloudBees Core for Modern Platfrom Install.
1+
# A helm example values file for migrating a CloudBees Core for Modern Platfrom Install for OpenShift.
22
# Install an nginx-ingress controller
33
nginx-ingress:
4-
# Change this to true, if you want to install the NGINX Ingress Controller
54
Enabled: false
6-
75
OperationsCenter:
8-
# Set the platform to aws, so that ELBs are created
9-
# platform: 'aws'
10-
6+
# Set the platform to openshift, so that routes are created
7+
Platform: 'openshift'
118
# Set the HostName for the Operation Center
129
HostName: 'cloudbees-core.example.com'
1310
Ingress:
1411
tls:
15-
## Set this to true in order to enable TLS on the ingress record
12+
## Set this to true in order to enable TLS on the ingress route
1613
Enable: false
14+
## Replace with your Kubernetes Certificate Select
1715
SecretName: core-example-com-tls
1816
Host: jenkins.cluster.local
17+
# Update this with the openshift project your are using.
18+
Project:
19+
name: myproject
1920

20-
# Do not change these values. They are all set for migrating CloudBees Core.
21+
# Do not change these values. They are all set for migrating CloudBees Core.
2122
Persistence:
22-
ExistingClaim: 'jenkins-home-cjoc-0'
23-
24-
nameOverride: cjoc
23+
ExistingClaim: 'jenkins-home-cjoc-0'
2524

26-
saOverride:
27-
enabled : true
28-
serviceAccount: cjoc
29-
masterServiceAccount: jenkins

0 commit comments

Comments
 (0)