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
introduces a startup monitor #1130
introduces a startup monitor #1130
Conversation
dbbc6bd
to
b508419
Compare
terminationGracePeriodSeconds: 5 | ||
priorityClassName: system-node-critical | ||
tolerations: | ||
- operator: "Exists" |
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.
do we need it?
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.
no idea. Better remove it instead of cargo culting :)
pkg/operator/staticpod/startupmonitor/assets/startup-monitor-pod.yaml
Outdated
Show resolved
Hide resolved
- --target-name=kube-apiserver | ||
- --manifests-dir=/etc/kubernetes/manifests | ||
- --resource-dir=/etc/kubernetes/static-pod-resources | ||
- --revision=REVISION |
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.
we really still have REVISION
and not {{.Revision}}
?
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.
yeah, the REVISION
is replaced by the installer-pod
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.
at some point we should clean up :)
} | ||
|
||
// step 1: create last known good revision | ||
if err := m.io.Symlink(revisionedTargetManifestPath, m.lastKnownGoodManifestDstPath()); err != nil { |
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.
isn't there a force variant for this? I always thought symlink update is atomic.
d03338f
to
0c3516b
Compare
/lgtm |
@p0lyn0mial: you cannot LGTM your own PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Needs squashing. Then lgtm. /approve |
The main purpose of the new app is to provide a fallback mechanism that will make the operand to revert to the last healthy revision when the new revision fails. The fallback mechanism is opt-in by the operator, and kube-apiserver and etcd operators (and potentially kcm and ks) have to consult the deployment topology in the infrastructure resource to decide. For more details see: openshift/enhancements#833 Co-authored-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com> Co-authored-by: Lukasz Szaszkiewicz <lukasz.szaszkiewicz@gmail.com>
f944c9a
to
7177173
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: p0lyn0mial, sttts The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The main purpose of the new app is to provide a fallback mechanism that will make the operand to revert to the last healthy revision when the new revision fails.
The fallback mechanism is opt-in by the operator, and kube-apiserver and etcd operators (and potentially kcm and ks) have to consult the deployment topology in the infrastructure resource to decide.
Co-authored-by: Dr. Stefan Schimanski stefan.schimanski@gmail.com
Co-authored-by: Lukasz Szaszkiewicz lukasz.szaszkiewicz@gmail.com
For more details see: openshift/enhancements#833