-
Notifications
You must be signed in to change notification settings - Fork 1
/
defaults.yml
280 lines (256 loc) · 9.95 KB
/
defaults.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
parameters:
appuio_cloud:
=_metadata: {}
namespace: appuio-cloud
namespaceLabels:
# Ensure the default network policies are not created in the
# namespace, as we need to allow access to the validating webhook
# from various agreggated API servers.
network-policies.syn.tools/no-defaults: 'true'
network-policies.syn.tools/purge-defaults: 'true'
namespaceAnnotations: {}
monitoring:
enabled: true
images:
agent:
registry: ghcr.io
repository: appuio/appuio-cloud-agent
tag: v0.10.0
secrets: {}
# Disables Kyverno policies deployed.
# possible values: [usage-profiles]
agent_feature_set: []
agent:
replicas: 3
# Customize agent deployment resource requests & limits
resources:
limits:
memory: 1Gi
extraArgs: []
extraEnv: {}
resourceRatio:
memoryPerCore: 4Gi
webhook:
tls:
certSecretName: webhook-service-tls
caCertificate: ""
certificate: ""
key: "?{vaultkv:${cluster:tenant}/${cluster:name}/${_instance}/webhook-key}"
namespaceSelector:
matchExpressions:
- key: appuio.io/organization
operator: Exists
config:
QuotaOverrideNamespace: ${appuio_cloud:namespace}
MemoryPerCoreLimit: ${appuio_cloud:agent:resourceRatio:memoryPerCore}
OrganizationLabel: appuio.io/organization
UserDefaultOrganizationAnnotation: appuio.io/default-organization
_subjects: ${appuio_cloud:bypassNamespaceRestrictions:subjects}
PrivilegedClusterRoles: ${appuio_cloud:bypassNamespaceRestrictions:clusterRoles}
DefaultNodeSelector: {}
DefaultNamespaceNodeSelectorAnnotation: appuio.io/default-node-selector
DefaultOrganizationClusterRoles:
admin: admin
namespace-owner: namespace-owner
monitoring-edit: monitoring-edit
alert-routing-edit: alert-routing-edit
monitoring-edit-probe: monitoring-edit-probe
clusterRoles:
namespace-owner:
rules:
- apiGroups: ['']
resources: [namespaces]
verbs:
- get
- watch
- edit
- patch
- delete
appuio:metrics-reader:
rules:
- apiGroups: ['']
resources: [pods]
verbs:
- get
monitoring-edit-probe:
rules:
- apiGroups: ['monitoring.coreos.com']
resources:
- probes
verbs:
- '*'
bypassNamespaceRestrictions:
# Roles are not supported for the APPUiO Cloud Agent. Should be left empty.
roles: {}
# In APPUiO Cloud Agent ClusterRoles are only ever matched if they are bound through a ClusterRoleBinding,
# this is different from the behavior of Kyverno.
# This is done to prevent a user from wrongly configuring a low-privileged ClusterRole which users
# can then bind to themselves to bypass the restrictions.
clusterRoles:
cluster-admin: cluster-admin
cluster-image-registry-operator: cluster-image-registry-operator
cluster-node-tuning-operator: cluster-node-tuning-operator
kyverno:generatecontroller: kyverno:generatecontroller
kyverno:policycontroller: kyverno:policycontroller
multus-admission-controller-webhook: multus-admission-controller-webhook
openshift-dns-operator: openshift-dns-operator
openshift-ingress-operator: openshift-ingress-operator
syn-admin: syn-admin
syn-argocd-application-controller: syn-argocd-application-controller
syn-argocd-server: syn-argocd-server
system:controller:generic-garbage-collector: system:controller:generic-garbage-collector
system:controller:operator-lifecycle-manager: system:controller:operator-lifecycle-manager
system:master: system:master
system:openshift:controller:namespace-security-allocation-controller: system:openshift:controller:namespace-security-allocation-controller
system:openshift:controller:podsecurity-admission-label-syncer-controller: system:openshift:controller:podsecurity-admission-label-syncer-controller
subjects:
syn-resource-locker-ingress:
kind: ServiceAccount
name: namespace-default-d6a0af6dd07e8a3-manager
namespace: syn-resource-locker
syn-resource-locker-monitoring:
kind: ServiceAccount
name: namespace-openshift-monitoring-c4273dc15ddfdf7-manager
namespace: syn-resource-locker
syn-resource-locker-console:
kind: ServiceAccount
name: namespace-openshift-config-2c8343f13594d63-manager
namespace: syn-resource-locker
openshift-operator-lifecycle-manager:
kind: ServiceAccount
name: olm-operator-serviceaccount
namespace: openshift-operator-lifecycle-manager
openshift-logging-operator:
kind: ServiceAccount
name: cluster-logging-operator
namespace: openshift-logging
reservedNamespaces:
kubernetes: ["default", "kube-*"]
openshift: openshift-*
projectsyn: syn-*
appuio: appuio-*
cilium: cilium*
allowedNamespaceLabels:
kubernetesGenerated:
- kubernetes.io/metadata.name
appuioUserDefined: custom.appuio.io/*
appuioOrg: appuio.io/organization
# As defined in component-networkpolicy: https://github.com/projectsyn/component-networkpolicy/blob/master/class/defaults.yml
netPolNoDefaults: network-policies.syn.tools/no-defaults
netPolPurgeDefaults: network-policies.syn.tools/purge-defaults
allowedNamespaceAnnotations:
kubernetesGenerated:
- kubectl.kubernetes.io/last-applied-configuration
appuioUserDefined: custom.appuio.io/*
runOnceActiveDeadlineSecondsOverride: ${appuio_cloud:runOnceActiveDeadlineSeconds:overrideAnnotationKey}
# If using mutate, Kyverno appends an annotation to debug the mutate patches.
# The annotation is appended in the context of the original requestor.
# Thus we have to whitelist the annotation or the later validation rejects the request.
# This should be safe because:
# - The annotation is only for debugging and not referenced elsewhere.
# - The mutating policies are validated with a validation rule too.
kyvernoMutateLabel: policies.kyverno.io/last-applied-patches
defaultNamespaceNodeSelectorAnnotation: ${appuio_cloud:agent:config:DefaultNamespaceNodeSelectorAnnotation}
maxNamespaceQuota: 25
namespaceQuotaOverrides: {}
generatedResourceQuota:
# See https://kb.vshn.ch/appuio-cloud/references/quality-requirements/performance/resource-quota.html
organization-objects:
synchronize: true
spec:
hard:
count/configmaps: "150"
count/jobs.batch: "150"
count/secrets: "150"
count/services: "20"
count/services.loadbalancers: "0"
count/services.nodeports: "0"
count/replicationcontrollers: "100"
openshift.io/imagestreams: "20"
openshift.io/imagestreamtags: "50"
requests.storage: 1000Gi
persistentvolumeclaims: "10"
localblock-storage.storageclass.storage.k8s.io/persistentvolumeclaims: "0"
requests.ephemeral-storage: "250Mi"
limits.ephemeral-storage: "500Mi"
# Limit the total amount of Rook-Ceph backed storage which can be
# requested per namespace
cephfs-fspool-cluster.storageclass.storage.k8s.io/requests.storage: 25Gi
rbd-storagepool-cluster.storageclass.storage.k8s.io/requests.storage: 25Gi
organization-compute:
synchronize: true
spec:
hard:
requests.cpu: 4
requests.memory: 4Gi
limits.cpu: 8
limits.memory: 20Gi
pods: "45"
scopes:
- NotTerminating
organization-compute-terminating:
synchronize: true
spec:
hard:
limits.cpu: 4000m
limits.memory: 4Gi
pods: "5"
requests.cpu: 500m
requests.memory: 2Gi
scopes:
- Terminating
generatedLimitRange:
name: organization
synchronize: true
limits:
"Container":
min:
cpu: "10m"
memory: "4Mi"
ephemeral-storage: "100Ki"
default:
cpu: "600m"
memory: "768Mi"
defaultRequest:
cpu: "10m"
memory: "100Mi"
disallowDockerBuildStrategy: true
projectTemplate:
enabled: true
objects:
project:
apiVersion: project.openshift.io/v1
kind: Project
metadata:
annotations:
openshift.io/description: '\${PROJECT_DESCRIPTION}'
openshift.io/display-name: '\${PROJECT_DISPLAYNAME}'
openshift.io/requester: '\${PROJECT_REQUESTING_USER}'
name: '\${PROJECT_NAME}'
adminRoleBinding:
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
labels:
appuio.io/uninitialized: "true"
creationTimestamp: null
name: admin
namespace: '\${PROJECT_NAME}'
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: admin
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: User
name: '\${PROJECT_ADMIN_USER}'
parameters:
PROJECT_NAME: {}
PROJECT_DISPLAYNAME: {}
PROJECT_DESCRIPTION: {}
PROJECT_ADMIN_USER: {}
PROJECT_REQUESTING_USER: {}
runOnceActiveDeadlineSeconds:
defaultActiveDeadlineSeconds: 1800
overrideAnnotationKey: appuio.io/active-deadline-seconds-override
podMatchExpressions: {}