As Eric said, you can use google/cloud-sdk image. If your backup job 
requires multiple commands, you can extend this image with a custom 
entrypoint script.

On Google Kubernetes Engine (GKE) if you cluster's default service account 
(i.e. Compute Engine default service account) has enough roles in IAM, you 
won't need additional configuration.

But you should probably create a new Cloud IAM Service Account for this 
backup task, give it the roles it needs (e.g. Datastore etc), then set the 
GOOGLE_APPLICATION_CREDENTIALS to the container as described in this 
tutorial 
https://cloud.google.com/kubernetes-engine/docs/tutorials/authenticating-to-cloud-platform.

Hope this helps.

On Tuesday, February 27, 2018 at 10:51:43 AM UTC-8, Eric Tune wrote:
>
> Kubernetes Cron Jobs do not have any special relationship to App Engine 
> Cron Files or Datastore.
>
> It looks like you can trigger a backup using the gcloud command: 
> https://cloud.google.com/datastore/docs/export-import-entities
> And you could run that gcloud command in a Container (
> https://hub.docker.com/r/google/cloud-sdk/)
> And CronJob can help you run that container periodically.
> But, you are going to have to roll your own solution.
>  
> On Monday, February 26, 2018 at 4:47:48 PM UTC-8, jl...@papego.de wrote:
>>
>> Hi there,
>>
>> is there any possibility to trigger a backup a Datastore backup via a 
>> kubernetes CronJobs like previously via app engine described here: 
>> https://cloud.google.com/appengine/articles/scheduled_backups#Specifying_Backups_in_a_Cron_File
>>
>> Greeting
>>
>> Jan
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.
  • [kubernetes-... jloos
    • [kubern... 'Eric Tune' via Kubernetes user discussion and Q&A
      • [ku... 'Ahmet Alp Balkan' via Kubernetes user discussion and Q&A

Reply via email to