-
Notifications
You must be signed in to change notification settings - Fork 200
WIP: Use keepalived image from openshift #625
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
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -94,7 +94,7 @@ spec: | |
| - name: keepalived | ||
| securityContext: | ||
| privileged: true | ||
| image: quay.io/celebdor/keepalived:latest | ||
| image: registry.svc.ci.openshift.org/ocp/4.2@sha256:daa9f390c43563b67546cd5b4cf3d8e351c3530f8091f523a73061fa441e8818 | ||
|
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. Obviously I need to figure out how to reference this image properly.
Member
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. You won't be able to do this "properly" in dev-scripts. I expect these manifests will move to MCO, right? There's a bit of magic here you need to hook into. Assuming MCO is what has this manifest, then the image needs to be listed in this file as well: https://github.com/openshift/machine-config-operator/blob/master/install/image-references By being listed in 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. Yeah this will need to go into the MCO PR @bcrochet is working on, when that lands all this asset mangling will go away ref #623 #561 tracks the removal and the MCO PR is openshift/machine-config-operator#795
Member
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. In dev scripts I suppose you could use an “oc adm release” command to inspect the release image and pull out the pullspec for an image in that release payload. That would just be a very short term hack though. |
||
| command: | ||
| - /usr/sbin/keepalived | ||
| args: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,22 @@ | ||
| global_defs { | ||
| enable_script_security | ||
| script_user root | ||
| } | ||
|
|
||
| vrrp_script chk_ocp { | ||
| script "curl -o /dev/null -kLs https://0:6443/readyz" | ||
| script "/usr/bin/curl -o /dev/null -kLs https://0:6443/readyz" | ||
| interval 1 | ||
| weight 50 | ||
| } | ||
|
|
||
| vrrp_script chk_dns { | ||
| script "host -t SRV _etcd-server-ssl._tcp.${DOMAIN} localhost" | ||
| script "/usr/bin/host -t SRV _etcd-server-ssl._tcp.${DOMAIN} localhost" | ||
|
Collaborator
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 reminds me that we need to drop DNS VIP. |
||
| interval 1 | ||
| weight 50 | ||
| } | ||
|
|
||
| vrrp_script chk_ingress { | ||
| script "curl -o /dev/null -kLs https://0:1936/healthz" | ||
| script "/usr/bin/curl -o /dev/null -kLs https://0:1936/healthz" | ||
| interval 1 | ||
| weight 50 | ||
| } | ||
|
|
||
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.
This is unrelated, but I need it for testing locally. Will remove before I push the final version of this change.