-
Notifications
You must be signed in to change notification settings - Fork 20
OCPBUGS-1456: Ensure components can pass openshift conformance tests #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4d4baf4
616f4b8
f7c4f5a
357a5b6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| apiVersion: config.openshift.io/v1 | ||
| kind: ClusterOperator | ||
| metadata: | ||
| name: aggregated | ||
| spec: {} | ||
| status: | ||
| versions: | ||
| - name: operator | ||
| version: "0.0.1-snapshot" | ||
| relatedObjects: | ||
| - group: '' | ||
| name: openshift-platform-operators | ||
| resource: namespaces | ||
| - group: platform.openshift.io | ||
| name: "" | ||
| resource: platformoperators | ||
| - group: core.rukpak.io | ||
| name: "" | ||
| resource: bundles | ||
| - group: core.rukpak.io | ||
| name: "" | ||
| resource: bundledeployments | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,6 +20,10 @@ spec: | |
| - containerPort: 8443 | ||
| protocol: TCP | ||
| name: https | ||
| resources: | ||
| requests: | ||
| cpu: 1m | ||
| memory: 15Mi | ||
|
Comment on lines
+23
to
+26
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: these requests are for the kube-rbac-proxy sidecar container. I modeled these after what cluster monitoring have defined for their deployments that utilize kube-rbac-proxy. |
||
| securityContext: | ||
| allowPrivilegeEscalation: false | ||
| capabilities: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,7 @@ spec: | |
| runAsNonRoot: true | ||
| seccompProfile: | ||
| type: RuntimeDefault | ||
| priorityClassName: "system-cluster-critical" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: just mirroring what's defined for OLM sub-components here. |
||
| containers: | ||
| - command: | ||
| - /manager | ||
|
|
@@ -57,12 +58,7 @@ spec: | |
| port: 8081 | ||
| initialDelaySeconds: 5 | ||
| periodSeconds: 10 | ||
| # TODO(user): Configure the resources accordingly based on the project requirements. | ||
| # More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | ||
| resources: | ||
| limits: | ||
| cpu: 500m | ||
| memory: 128Mi | ||
|
Comment on lines
-63
to
-65
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: we have conformance tests that verify component pods don't specify limits, and don't get assigned the BestEffort quality of service. Removing the limits resulted in the Burstable QoS being assigned to these pods. |
||
| requests: | ||
| cpu: 10m | ||
| memory: 64Mi | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,7 @@ spec: | |
| runAsNonRoot: true | ||
| seccompProfile: | ||
| type: RuntimeDefault | ||
| priorityClassName: "system-cluster-critical" | ||
| containers: | ||
| - name: kube-rbac-proxy | ||
| securityContext: | ||
|
|
@@ -41,6 +42,10 @@ spec: | |
| - containerPort: 8443 | ||
| protocol: TCP | ||
| name: https | ||
| resources: | ||
| requests: | ||
| cpu: 1m | ||
| memory: 15Mi | ||
| volumeMounts: | ||
| - name: tls | ||
| mountPath: /etc/pki/tls | ||
|
|
@@ -65,6 +70,10 @@ spec: | |
| - "--bundle-ca-file=/etc/pki/tls/tls.crt" | ||
| ports: | ||
| - containerPort: 8080 | ||
| resources: | ||
| requests: | ||
| cpu: 15m | ||
| memory: 100Mi | ||
|
Comment on lines
+73
to
+76
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is for the core rukpak deployment. I increased the memory request to 100Mi just because we're caching bundle contents in-memory, so we may want to invest in benchmarking this behavior to get a better read on what kind of requests we need to be setting for subsequent phases. |
||
| volumeMounts: | ||
| - name: bundle-cache | ||
| mountPath: /var/cache/bundles | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prior to GA, I think we should separate out the rukpak stuff from the PO stuff. At the end of the day, PO will depend on rukpak, not provide it.
But this is fine in the mean time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup +1.