Sha256: f15161718c2f5a431415d4dc9ca5ebdfc3d5474723f36f5bbd4362e8694c98d2

Contents?: true

Size: 1.66 KB

Versions: 3

Compression:

Stored size: 1.66 KB

Contents

---
title: Google Helpers
---

List of Google helpers:

{% assign docs = site.docs | where: "categories","helpers-aws" %}
{% for doc in docs -%}
  * [{{ doc.nav_text }}]({{ doc.url }})
{% endfor %}

## Notes

* By default, `KubeGoogle.logger = Kubes.logger`. This means, you can set `logger.level = "debug"` in `.kubes/config.rb` to see more details.
* The `gcloud` cli is used to create IAM roles. So `gcloud` is required.
* Note: Would like to use the google sdk, but it wasn't obvious how to do so. PRs are welcomed.
* The Google helpers are provided by the [boltops-tools/kubes_google](https://github.com/boltops-tools/kubes_google) library.

## Authentication

Most of the Google helpers use the SDK to call the Google Cloud API. As such, it needs to be authenticated.  You can do this by setting the `GOOGLE_APPLICATION_CREDENTIALS` environment variable point to the path with a service account credentials file. IE:

.bash_profile

    export GOOGLE_APPLICATION_CREDENTIALS=~/.gcp/service-account.json

If you would like to use a user IAM credentials instead of a service account. You can also run use [application-default login](https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login). Example:

    gcloud auth application-default login

This generates an Application Default Credentials at `.config/gcloud/application_default_credentials.json`. Note, make sure that `GOOGLE_APPLICATION_CREDENTIALS` is not set or else the `application_default_credentials.json` will not be used.  Also, the google sdk prints a warning to use a service account instead. You can suppress that warning with this:

.bash_profile

    export GOOGLE_AUTH_SUPPRESS_CREDENTIALS_WARNINGS=1

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kubes-0.6.7 docs/_docs/helpers/google.md
kubes-0.6.6 docs/_docs/helpers/google.md
kubes-0.6.5 docs/_docs/helpers/google.md