Skip to content

Commit

Permalink
Mounting secrets for all controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosrodlop committed May 21, 2024
1 parent f6eafc3 commit 939ad23
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 52 deletions.
55 changes: 9 additions & 46 deletions blueprints/02-at-scale/casc/oc/items/items-root.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@ items:
cpus: 1.0
disk: 20
storageClassName: "gp3"
# Casc, Non-HA
- kind: managedController
name: team-b
configuration:
kubernetes:
memory: 6144
cpus: 2.0
disk: 5
storageClassName: "gp3"
yaml: |-
---
apiVersion: "apps/v1"
Expand All @@ -32,25 +23,15 @@ items:
operator: "Equal"
value: "cb-apps"
effect: "NoSchedule"
volumes:
- name: cbci-secrets
secret:
secretName: cbci-secrets
containers:
- name: jenkins
env:
- name: SECRETS
value: "/var/run/secrets/cbci"
volumeMounts:
- name: cbci-secrets
mountPath: "/var/run/secrets/cbci"
readOnly: true
---
apiVersion: "v1"
kind: "Service"
metadata:
labels:
"cloudbees.prometheus": "true"
# Casc, Non-HA
- kind: managedController
name: team-b
configuration:
kubernetes:
memory: 6144
cpus: 2.0
disk: 5
storageClassName: "gp3"
properties:
- configurationAsCode:
bundle: "s3/none-ha"
Expand All @@ -67,24 +48,6 @@ items:
maxReplicas: 4
replicas: 2
targetCPUUtilizationPercentage: 50
yaml: |-
---
apiVersion: "apps/v1"
kind: "Deployment"
spec:
template:
spec:
tolerations:
- key: "dedicated"
operator: "Equal"
value: "cb-apps"
effect: "NoSchedule"
---
apiVersion: "v1"
kind: "Service"
metadata:
labels:
"cloudbees.prometheus": "true"
properties:
- configurationAsCode:
bundle: "s3/ha"
31 changes: 25 additions & 6 deletions blueprints/02-at-scale/casc/oc/jcasc/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,28 @@ masterprovisioning:
kind: "StatefulSet"
spec:
template:
spec:
tolerations:
- key: "dedicated"
operator: "Equal"
value: "cb-apps"
effect: "NoSchedule"
spec:
tolerations:
- key: "dedicated"
operator: "Equal"
value: "cb-apps"
effect: "NoSchedule"
volumes:
- name: cbci-secrets
secret:
secretName: cbci-secrets
containers:
- name: jenkins
env:
- name: SECRETS
value: "/var/run/secrets/cbci"
volumeMounts:
- name: cbci-secrets
mountPath: "/var/run/secrets/cbci"
readOnly: true
---
apiVersion: "v1"
kind: "Service"
metadata:
labels:
"cloudbees.prometheus": "true"

0 comments on commit 939ad23

Please sign in to comment.