Skip to content

Commit 60cfbd2

Browse files
committed
Added example files
1 parent a9dd646 commit 60cfbd2

File tree

2 files changed

+210
-0
lines changed

2 files changed

+210
-0
lines changed
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
clusteredMode: false
2+
3+
##---------------------------------------------
4+
## Flow storage configuration section
5+
##---------------------------------------------
6+
7+
storage:
8+
volumes:
9+
serverPlugins:
10+
accessMode: ReadWriteOnce
11+
# Storage class for plugins directory. Currently it has to be shared across server and web replicas.
12+
# Server and web are co-located using hard affinity rule for non clusteredMode. StorageClass is null here to ensure the same behavior across all cloud providers
13+
# (it forces storage class to fall back to "default" disk based ReadWriteOnce platform specific storage class)
14+
storageClass: null
15+
storage: 5Gi
16+
17+
repositoryStorage:
18+
storage: 10Gi
19+
20+
##---------------------------------------------
21+
## Flow components/workloads configuration section
22+
##---------------------------------------------
23+
server:
24+
resources:
25+
limits:
26+
cpu: 1.5
27+
requests:
28+
cpu: 0.5
29+
30+
#---------------------------------------------
31+
# Flow DevOps Insight configuration section
32+
#---------------------------------------------
33+
34+
dois:
35+
openshiftNodeTuning: true
36+
sysctlInitContainer:
37+
enabled: false
38+
39+
#---------------------------------------------
40+
# Volume configuration section
41+
#---------------------------------------------
42+
volumePermissions:
43+
enabled: false
44+
45+
#---------------------------------------------
46+
# Ingress configuration section
47+
#---------------------------------------------
48+
ingress:
49+
# Whether to create an OpenShift Route rather than a generic Ingress.
50+
route: true
51+
52+
# Install mariadb chart for demo mode
53+
# and create a database and user for Flow to use.
54+
# Note that the database user name and password
55+
# specified in the `initdbScripts` section must
56+
# match the values in the `database` section below.
57+
58+
mariadb:
59+
enabled: true
60+
db:
61+
user: "flow"
62+
volumePermissions:
63+
enabled: false
64+
securityContext:
65+
enabled: false
66+
67+
68+
database:
69+
dbName: "demo"
70+
dbUser: "flow"
71+
dbType: "mariadb"
72+
dbPort: 3306
73+
clusterEndpoint: "mariadb"
74+
# externalEndpoint: ""
75+
76+
##---------------------------------------------
77+
## Flow server admin credentials section
78+
##---------------------------------------------
79+
80+
flowCredentials:
81+
## Name of the secret containing the admin user password to use. If set, the admin user password
82+
## will be read from the secret instead of the plain-text `adminPassword` (not recommended for production).
83+
##
84+
## The data field must contain base64 encoded value for key 'CBF_SERVER_ADMIN_PASSWORD'.
85+
## E.g., kubectl create secret generic flow-admin-secret --from-literal=CBF_SERVER_ADMIN_PASSWORD='rrx!*d$z75Dsb'
86+
##
87+
## Uncomment the following line to set the name of the secret to use to read the admin user password.
88+
# existingSecret: flow-admin-secret
89+
##
90+
## IMPORTANT: This is clearly not meant for production use and is only meant for demo environments
91+
## where security may not be a concern. Use of `existingSecret` is preferred.
92+
adminPassword:
93+
94+
#---------------------------------------------
95+
# Flow ingress configuration section
96+
# OCP Uses routes so nginx-ingress should be disabled
97+
#---------------------------------------------
98+
nginx-ingress:
99+
enabled: false
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
##---------------------------------------------
2+
## Database configuration section
3+
##---------------------------------------------
4+
database:
5+
## 1. The database to use for CloudBees Flow installation.
6+
## The following database types are supported with Flow in a production environment:
7+
## mysql, oracle, or sqlserver
8+
##
9+
## The database type must be specified.
10+
dbType:
11+
12+
## 2. The name of the database to use with CloudBees Flow installation.
13+
##
14+
## The database name must be specified.
15+
dbName:
16+
17+
## 3. Name of the secret containing the database user credentials.
18+
## The data field must contain base64 encoded values for keys 'DB_USER' and 'DB_PASSWORD'.
19+
## E.g., kubectl create secret generic flow-db-secret --from-literal=DB_USER=flow_user --from-literal=DB_PASSWORD='S!*d$z5Dsb'
20+
##
21+
## Set the name of the secret that contains the database user credentials.
22+
existingSecret: flow-db-secret
23+
24+
## 4.(a) Database hostname if the database instance is running outside the cluster
25+
##
26+
## Either the database hostname (externalEndpoint) or the database service name (clusterEndpoint) must be specified.
27+
##
28+
## Uncomment the following line to set the database hostname.
29+
# externalEndpoint: flowdb.example.com
30+
31+
## 4.(b) Database service name if the database instance is running within the cluster. Use the service DNS name if
32+
## the database service is running in a different namespace in the cluster, e.g., my-sql-db-mysql.default.svc.cluster.local
33+
##
34+
## Either the database hostname (externalEndpoint) or the database service name (clusterEndpoint) must be specified.
35+
##
36+
## Uncomment the following line to set the database service name.
37+
# clusterEndpoint: flow-db-mysql
38+
39+
## 5. The database port to use.
40+
##
41+
## The database port must be specified.
42+
dbPort:
43+
44+
# External Mysql Connector URL to download during cloudbees flow installation
45+
mysqlConnector:
46+
externalUrl:
47+
48+
#---------------------------------------------
49+
# Ingress configuration section
50+
#---------------------------------------------
51+
ingress:
52+
# Whether to create an OpenShift Route rather than a generic Ingress.
53+
route: true
54+
55+
##---------------------------------------------
56+
## Flow storage configuration section
57+
##---------------------------------------------
58+
storage:
59+
volumes:
60+
serverPlugins:
61+
## A ReadWriteMany storage class used for plugins directory.
62+
## It is shared across all the Flow server and the web server
63+
## replicas.
64+
storageClass: your-readwritemany-storage-class
65+
66+
##---------------------------------------------
67+
## Flow server admin credentials section
68+
##---------------------------------------------
69+
70+
flowCredentials:
71+
## Name of the secret containing the admin user password to use.
72+
## The data field must contain base64 encoded value for key 'CBF_SERVER_ADMIN_PASSWORD'.
73+
## E.g., kubectl create secret generic your-flow-admin-secret --from-literal=CBF_SERVER_ADMIN_PASSWORD='rrx!*d$z75Dsb'
74+
##
75+
## Set the name of the secret that contains the admin user password.
76+
existingSecret:
77+
78+
#---------------------------------------------
79+
# Flow DevOps Insight configuration section
80+
#---------------------------------------------
81+
82+
dois:
83+
openshiftNodeTuning: true
84+
sysctlInitContainer:
85+
enabled: false
86+
87+
#---------------------------------------------
88+
# Volume configuration section
89+
#---------------------------------------------
90+
volumePermissions:
91+
enabled: false
92+
93+
#---------------------------------------------
94+
# Zookeeper configuration section
95+
#---------------------------------------------
96+
# Keep fsGroup and runAsUser empty so OCP will assign random user/group
97+
zookeeper:
98+
securityContext:
99+
fsGroup:
100+
runAsUser:
101+
image:
102+
repository: cbflowtest/zookeeper # Container image repository for zookeeper container.
103+
tag: 3.6.2
104+
105+
#---------------------------------------------
106+
# Flow ingress configuration section
107+
# OCP Uses routes so nginx-ingress should be disabled
108+
#---------------------------------------------
109+
nginx-ingress:
110+
enabled: false
111+

0 commit comments

Comments
 (0)