Skip to content

Commit 56253a0

Browse files
Merge pull request #45 from sachingade20/example-files
Added multizone example files
2 parents 63dd139 + fa51b8c commit 56253a0

File tree

2 files changed

+192
-0
lines changed

2 files changed

+192
-0
lines changed
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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+
# Install mariadb chart for demo mode
31+
# and create a database and user for Flow to use.
32+
# Note that the database user name and password
33+
# specified in the `initdbScripts` section must
34+
# match the values in the `database` section below.
35+
36+
mariadb:
37+
enabled: true
38+
db:
39+
user: "flow"
40+
41+
database:
42+
dbName: "demo"
43+
dbUser: "flow"
44+
dbType: "mariadb"
45+
dbPort: 3306
46+
clusterEndpoint: "mariadb"
47+
# externalEndpoint: ""
48+
49+
##---------------------------------------------
50+
## Flow server admin credentials section
51+
##---------------------------------------------
52+
53+
flowCredentials:
54+
## Name of the secret containing the admin user password to use. If set, the admin user password
55+
## will be read from the secret instead of the plain-text `adminPassword` (not recommended for production).
56+
##
57+
## The data field must contain base64 encoded value for key 'CBF_SERVER_ADMIN_PASSWORD'.
58+
## For example, kubectl create secret generic flow-admin-secret --from-literal=CBF_SERVER_ADMIN_PASSWORD='rrx!*d$z75Dsb'
59+
##
60+
## Uncomment the following line to set the name of the secret to use to read the admin user password.
61+
# existingSecret: flow-admin-secret
62+
##
63+
## IMPORTANT: This is clearly not meant for production use and is only meant for demo environments
64+
## where security may not be a concern. Use of `existingSecret` is preferred.
65+
adminPassword:
66+
67+
68+
#---------------------------------------------
69+
# Ingress configuration section
70+
#---------------------------------------------
71+
72+
ingress:
73+
enabled: true
74+
host: your-flow-domain-name.domain
75+
## This section is just an example that ingress can be configured with
76+
## certificate for TLS.
77+
certificate:
78+
existingSecret:
79+
key:
80+
crt:
81+
82+
##----------------------------------------------------
83+
## Flow multizone gateway pair configuration section
84+
##----------------------------------------------------
85+
86+
internalGatewayAgent:
87+
enabled: true
88+
89+
externalGatewayAgent:
90+
enabled: true
91+
service:
92+
## Set the host name same as ingress.host .
93+
publicHostName: your-flow-domain-name.domain
94+
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
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+
## Flow storage configuration section
50+
##---------------------------------------------
51+
storage:
52+
volumes:
53+
serverPlugins:
54+
## A ReadWriteMany storage class used for plugins directory.
55+
## It is shared across all the Flow server and the web server
56+
## replicas.
57+
storageClass: your-readwritemany-storage-class
58+
59+
##---------------------------------------------
60+
## Flow server admin credentials section
61+
##---------------------------------------------
62+
63+
flowCredentials:
64+
## Name of the secret containing the admin user password to use.
65+
## The data field must contain base64 encoded value for key 'CBF_SERVER_ADMIN_PASSWORD'.
66+
## E.g., kubectl create secret generic your-flow-admin-secret --from-literal=CBF_SERVER_ADMIN_PASSWORD='rrx!*d$z75Dsb'
67+
##
68+
## Set the name of the secret that contains the admin user password.
69+
existingSecret: your-flow-admin-secret
70+
71+
72+
#---------------------------------------------
73+
# Ingress configuration section
74+
#---------------------------------------------
75+
76+
ingress:
77+
enabled: true
78+
host: your-flow-domain-name.domain
79+
## This section is just an example that ingress can be configured with
80+
## certificate for TLS.
81+
certificate:
82+
existingSecret:
83+
key:
84+
crt:
85+
86+
##----------------------------------------------------
87+
## Flow multizone gateway pair configuration section
88+
##----------------------------------------------------
89+
90+
internalGatewayAgent:
91+
enabled: true
92+
93+
externalGatewayAgent:
94+
enabled: true
95+
service:
96+
## Set the host name same as ingress.host .
97+
publicHostName: your-flow-domain-name.domain
98+

0 commit comments

Comments
 (0)