Skip to content

Commit 44785f0

Browse files
author
Konstantin Kushnir
committed
Update examples for cloudbees-cd/k8s
1 parent 6144738 commit 44785f0

9 files changed

+372
-55
lines changed

cloudbees-cd/kubernetes/cloudbees-cd-agent-defaults.yaml

Lines changed: 72 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,22 @@
66
images:
77
registry: "docker.io/cloudbees"
88
imageRepository: "cbflow-agent"
9-
tag: "10.2.0.148735_2.1.22_20210527"
9+
tag: "10.3.2.151906_3.0.37_20211116"
1010
pullPolicy: IfNotPresent
1111

12+
# Image pull secrets
13+
# Enable this option when using a private registry.
14+
# Secrets must be manually created in the namespace.
15+
# imagePullSecrets: <secret-name>
16+
17+
# Optional array of imagePullSecrets containing private registry credentials
18+
# Reference to one or more secrets to be used when pulling images
19+
# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
20+
# imagePullSecrets:
21+
# - name: "docker-registry"
22+
23+
imagePullSecrets:
24+
1225
# Please state flow-server endpoint here. Please note that if installing in different namespace than server
1326
# service name has to be stated in form "service-name.namespace"
1427
# Here we assume the same namespace
@@ -35,10 +48,14 @@ resourcePools:
3548
#
3649
resourceName:
3750

51+
# Release name prefix added to support this chart to launch as multiple subchart in CD deployment
52+
# keep this empty for standalone deployments
53+
releaseNamePrefix:
54+
3855
# Number of replicas
3956
replicas: 1
4057

41-
# The default is to deploy all pods serially. By setting this to parallel
58+
# The default is to deploy all pods serially. By setting this to parallel
4259
# all pods are started at the same time.
4360
podManagementPolicy: "Parallel"
4461

@@ -81,7 +98,15 @@ logLevel: DEBUG
8198
service:
8299
type: ClusterIP
83100
clusterIP: "None"
101+
# External DNS hostname to set to as agent service name. For Gateway Agent configuration.
102+
publicHostName: null
84103

104+
105+
# Gateway Agents needs ports 7800 to be open to the
106+
# outer world to communicate with external agents.
107+
# Creates extra Kubernetes service with type LoadBalancer
108+
externalService:
109+
enabled: false
85110
#---------------------------------------------
86111
# Flow agent storage and resources configuration section
87112
#---------------------------------------------
@@ -114,14 +139,23 @@ resources:
114139
# Flow server credentials configuration section
115140
#---------------------------------------------
116141

142+
117143
# Flow server credentials to use in order to register with agent as a resource on the Flow server.
118144
# 'admin' user is used by default. You may user a different user if desired. The user must have
119145
# `modify` permissions on `resources` on the Flow server.
146+
# serverSecretReference is added to support case where agents need to refer flow servers existing admin credentials
120147
flowCredentials:
148+
## In case of Existing Secret Name of the secret containing the Flow user credentials to use.
149+
## The data field must contain base64 encoded value for keys 'CBF_SERVER_USER' and 'CBF_SERVER_PASSWORD'.
150+
## E.g., kubectl create secret generic your-flow-user-secret --from-literal=CBF_SERVER_USER='admin' --from-literal=CBF_SERVER_PASSWORD='XXXXXXX'
151+
##
121152
existingSecret:
153+
serverSecretReference: false
122154
user: admin
123155
password:
124156

157+
158+
125159
#---------------------------------------------
126160
# Pods security context
127161
#---------------------------------------------
@@ -130,3 +164,39 @@ securityContext:
130164
enabled: false
131165
fsGroup: 1000
132166
runAsUser: 1000
167+
168+
rbac:
169+
## Specifies whether RBAC resources should be created
170+
##
171+
create: false
172+
serviceAccountName:
173+
role:
174+
## Rules to create.
175+
rules: []
176+
177+
178+
volumePermissions:
179+
enabled: true
180+
181+
podSecurityPolicy:
182+
create: false
183+
annotations: {}
184+
## Specify pod annotations
185+
## Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#apparmor
186+
## Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#seccomp
187+
## Ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#sysctl
188+
##
189+
# seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*'
190+
# seccomp.security.alpha.kubernetes.io/defaultProfileName: 'docker/default'
191+
# apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default'
192+
193+
194+
gateway:
195+
# install this agent as gateway agent
196+
enabled: false
197+
# Name of the gateway to create
198+
name: external
199+
# Name of gateway agent to pair with as gateway resource 2
200+
pairedResourceName: gateway-default-agent
201+
202+

cloudbees-cd/kubernetes/cloudbees-cd-agent-example.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ replicas: 1
2626

2727
## The Flow server where the agent(s) will be registered as resource(s).
2828
##
29-
## Defaults to the Flow server service 'flow-server' expected to be in the
29+
## Defaults to the name of the Flow server service 'flow-server' expected to be in the
3030
## same namespace as the agent(s) being installed.
3131
## If installing in a different namespace than the server, then the
3232
## server endpoint should be set as "flow-server.<namespace>".
3333
##
34-
serverEndpoint: flow-server
34+
# serverEndpoint: flow-server
3535

3636
flowCredentials:
3737

@@ -44,6 +44,4 @@ flowCredentials:
4444
## E.g., kubectl create secret generic your-flow-user-secret --from-literal=CBF_SERVER_USER='admin' --from-literal=CBF_SERVER_PASSWORD='rrx!*d$z75Dsb'
4545
##
4646
## Set the name of the secret that contains the Flow user credentials.
47-
# existingSecret: your-flow-user-secret
48-
password: changeme
49-
47+
existingSecret: your-flow-user-secret

0 commit comments

Comments
 (0)