-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Move ark server & minio to heptio-ark-server ns #322
Conversation
Still need to update the docs, as they say you can just |
9841bba
to
c4278fb
Compare
Docs updated |
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" makes me cringe, but it works. Saving the fiddly stuff for another time :-)
c4278fb
to
820c6f2
Compare
Prior -> Before |
Haven't run this yet, but does this somewhat nullify running Ark in any namespace? It's more like the backups are now managed in any namespace and the server will always run in These questions are more clarifying docs and terminology than the code. |
@nrb not exactly. You can run the server in whatever namespace you want (assuming you adjust the yaml appropriately). And you can point the server at whatever namespace you want for the backups/schedules/restores/config. I debated renaming the This again highlights the need for a simple way to put the server in 1 ns and the backups etc in another one. Something like |
@Bradamant3 looks like I probably should update |
Credentials namespace in https://github.com/heptio/ark/blob/master/docs/aws-config.md would need to be changed. e.g.
The secret needs to be in |
@nrb correct, thanks for pointing that out |
docs/namespace.md
Outdated
files, changing `heptio-ark` to your desired namespace. | ||
|
||
NOTE: it is strongly advised that you run the Ark server in its own namespace, separate from the | ||
namespace where your backups, schedules, restores, and config live. If you don't, you may not be |
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.
edit:
WARNING: It is recommended to run the Ark server in one namespace, and your backups, schedules, restores, and config in a different namespace. You might encounter issues with deleting a single Ark namespace that runs everything.
(edits for clarity only)
one edit for clarity, otherwise /lgtm |
68526f8
to
65d3934
Compare
Thanks, I've updated (with a minor edit to your suggestion). |
/lgtm (yeah, I tripped a bit over that wording, didn't I?) |
name: ark | ||
roleRef: | ||
kind: ClusterRole | ||
name: cluster-admin | ||
apiGroup: rbac.authorization.k8s.io | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 |
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.
why's the RBAC stuff going away?
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.
Because our service account has cluster-admin (granted above)
Move ark server deployment & minio deployment to a separate namespace from the backups/schedules/restores/config because backups now have a finalizer. If everything lives in one namespace, you have to delete all the backups and wait for the GC controller to process them and remove the finalizer from each before deleting the namespace. By moving the server into a separate namespace, users can now delete the heptio-ark namespace the normal way (kubectl delete), and once that namespace is fully removed, they can delete the heptio-ark-server namespace. Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
65d3934
to
08d4fc8
Compare
To store your backups, schedules, restores, and config in another namespace, you edit the relevant | ||
files, changing `heptio-ark` to your desired namespace. | ||
|
||
WARNING: It is recommended to run the Ark server in one namespace, and place your backups, schedules, |
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.
Given that someone could still end up "stuck" if they remove Ark in the wrong way (i.e. delete the server NS first), it'd probably be helpful to add an entry to the Troubleshooting
section in the docs about what to do if that happens (including your cmd @ncdc ?)
Also, @Bradamant3 can we add a link to the GH pages site near the top of the README? How do folks find it otherwise?
Did some testing on GKE and code/config changes LGTM. One other observation is that using the jq snippet from @ncdc to remove finalizers doesn't seem to work if there's only a single backup. |
Oh that's probably because it returns/prints a single one instead of a list |
We can use |
yep, confirmed that works |
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
LGTM |
Going to merge as-is and @Bradamant3 will submit a follow-up for any additional docs edits. |
Move ark server deployment & minio deployment to a separate namespace
from the backups/schedules/restores/config because backups now have a
finalizer. If everything lives in one namespace, you have to delete all
the backups and wait for the GC controller to process them and remove the
finalizer from each before deleting the namespace.
By moving the server into a separate namespace, users can now delete the
heptio-ark namespace the normal way (kubectl delete), and once that
namespace is fully removed, they can delete the heptio-ark-server
namespace.
Signed-off-by: Andy Goldstein andy.goldstein@gmail.com