Is it possible to access GCP resources using api without a user interaction.?

0 votes

Everywhere the REST API needs a user interaction for authentication. Is there a possible way to access the GCP resource without an interaction from user.?

I'm asking in general, i have no specific application.

Thanks!

Sep 19, 2018 in Kubernetes by lina
• 8,110 points
46 views

1 answer to this question.

0 votes

yes that's totally possible.

You'd have to create a service account representing your application (executed as the cron job) and in your application you'd authenticate the REST API calls using that service account's credentials.

service account is a Google account that represents an application, as opposed to representing an end user.

For details on how to use service account go through this article

https://cloud.google.com/docs/authentication/#service_accounts

answered Sep 19, 2018 by Kalgi
• 42,510 points

Related Questions In Kubernetes

0 votes
1 answer
0 votes
1 answer

Is it possible to force the pod to run on a specific node?

By default, anti-affinity is not attempted by ...READ MORE

answered Jul 15 in Kubernetes by Sirajul
• 39,540 points
54 views
0 votes
1 answer

How to start and stop a cluster on AWS using kops without stopping the instance

Export your KOPS_STAT_STORE variable export KOPS_STATE_STORE=s3://your-bucket-name Get your instances ...READ MORE

answered Jan 8 in Kubernetes by Kashish
1,300 views
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17 in Others by anonymous
3,105 views
+3 votes
1 answer
0 votes
1 answer

Not able to access kubernetes api from a pod in azure

Follow these steps Add --bind-address=0.0.0.0 option to the line https://github.com/kubernetes/kubernetes/blob/v1.2.0/docs/getting-started-guides/coreos/azure/cloud_config_templates/kubernetes-cluster-main-nodes-template.yml#L218  Created ...READ MORE

answered Aug 30, 2018 in Kubernetes by Kalgi
• 42,510 points
80 views
0 votes
1 answer

Is possible to have same k8s service for multiple pods?

Reserve a static IP and then assign ...READ MORE

answered Jul 20, 2018 in Kubernetes by Kalgi
• 42,510 points
49 views