-
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
ARK backup failed with efs provisioner #579
Comments
@rosskukulinski I don't know how we would necessarily do it, but it might be nice to find a way to somehow inform users that their volumes aren't getting backed up, or that they need to use Restic. I know we currently have a log message that you can find after the backup has completed, such as the one in the report above:
but I wonder if we could make this more visible somehow. |
Hi @ncdc , I see restic example yaml used cloud-credentials, but I don't want to use it on production. I just used IAM role instead of. Is there any chance for it ? |
Yes, it works with IAM role credentials. If you have trouble getting it to
work, please let us know.
…On Tue, Jun 26, 2018 at 5:42 AM RAI ***@***.***> wrote:
Hi,
I see restic example yaml used cloud-credentials, but I don't want to use
it on production. I just used IAM role instead of. Is there any chance for
it ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#579 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAABYshyej-vrAgiE96j3GBw7vmP05Ggks5uAgIGgaJpZM4U1ush>
.
|
I mean in this yaml :
I will remove all aws cloud-credentials and add annotation to use IAM role ( use kube2iam ). Will it work ? |
It should work
…On Tue, Jun 26, 2018 at 7:21 AM RAI ***@***.***> wrote:
I mean in this yaml :
kind: DaemonSet
metadata:
name: restic
namespace: heptio-ark
spec:
selector:
matchLabels:
name: restic
template:
metadata:
labels:
name: restic
spec:
serviceAccountName: ark
securityContext:
runAsUser: 0
volumes:
- name: cloud-credentials
secret:
secretName: cloud-credentials
- name: host-pods
hostPath:
path: /var/lib/kubelet/pods
- name: scratch
emptyDir: {}
containers:
- name: ark
image: gcr.io/heptio-images/ark:latest
command:
- /ark
args:
- restic
- server
volumeMounts:
- name: cloud-credentials
mountPath: /credentials
- name: host-pods
mountPath: /host_pods
mountPropagation: HostToContainer
- name: scratch
mountPath: /scratch
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: HEPTIO_ARK_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: AWS_SHARED_CREDENTIALS_FILE
value: /credentials/cloud
- name: ARK_SCRATCH_DIR
value: /scratch
I will remove all aws cloud-credentials and add annotation to use IAM role
( use kube2iam ). Will it work ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#579 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAABYqIruQC9TwNG9PslDRxyVaXbyaDtks5uAhlQgaJpZM4U1ush>
.
|
thanks @ncdc , let me try. |
hi @ncdc , I meet this error:
Could you help me check ? |
You need to change the tag for the image in the daemonset to v0.9.0.alpha.2
or master - whatever you used for the ark deployment.
…On Wed, Jun 27, 2018 at 1:56 AM RAI ***@***.***> wrote:
hi @ncdc <https://github.com/ncdc> ,
I meet this error:
~ 123491$ kubectl logs --tail 100 restic-2jgld -n heptio-ark
Error: unknown command "restic" for "ark"
Run 'ark --help' for usage.
An error occurred: unknown command "restic" for "ark"
Could you help me check ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#579 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAABYmZOGQdVl96KSrJWaHHe-N3iDDIEks5uAx6ogaJpZM4U1ush>
.
|
same @ncdc :)
|
ah, it should be v0.9.0-alpha.2 |
it still doesn't work @ncdc |
What errors do you get?
…On Wed, Jun 27, 2018 at 6:13 AM RAI ***@***.***> wrote:
it still doesn't work @ncdc <https://github.com/ncdc>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#579 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAABYkG9c7o818rgIjDDPI-EChBuxQF9ks5uA1q0gaJpZM4U1ush>
.
|
same @ncdc :
And I don't know why I give wrong tag and k8s still can pull the image :| |
There are 29 instances of the restic pod (1 per node, and the output above shows that you have 29 nodes). It's possible you're looking at the logs from one of the older pods, before you set the image tag correctly. Please examine one of the new pods (created most recently) and confirm that its tag is correct, and then check to see if it's running / look at the logs. |
you're right :) Its working now. Thank you. |
Looks like this is resolved so closing out. Feel free to open a new issue if needed! |
I used efs provisioner for creating PV for PO and ark can not backup PV.
This is yaml file to create nginx with efs pv.
Log:
The text was updated successfully, but these errors were encountered: