sidebar | permalink | summary |
---|---|---|
sidebar |
create-auth-credentials-on-gce.html |
Learn how to locate your GCE auth credentials, or create a new set of credentials, so that you can use NKS. |
To create a Google Compute Engine (GCE) cluster through NetApp Kubernetes Service (NKS) you will need to either create a new GCE project and credentials, or get the Service Account JSON data from your existing GCE project.
To use this feature, you will need an NKS account. If you don’t have one already, you can sign up for a free 30-day trial with no credit card required at https://nks.netapp.io.
After you have added your GCE credentials to your NKS account, click here to learn how to create a Kubernetes cluster on GCE
To create a new set of GCE credentials you will need to:
-
Create a new project.
-
Enable the Google Compute Engine API.
-
Create the credentials.
NKS must be set up to manage a project within your Google Compute Engine (GCE) account. To do this, log into the Google cloud console at https://console.cloud.google.com.
Click Project to open the drop-down menu.
In the pop-up window which appears, select an organization from the drop-down menu.
Click the + to Create Project.
Fill in "NKS" as the project name, then click Create.
It may take a few moments for the project to be created. Once the task is complete, you will be redirected to the project Dashboard.
The next step is to use the API Manager to enable the Google Compute Engine API for this project. Click APIs & Services > Dashboard in the navigation column on the left.
This will take you to the API Manager Dashboard. Click ENABLE APIS AND SERVICES.
This will take you to the API Library. Click Compute Engine API.
This will take you to the Compute Engine API page. Click ENABLE to enable the API.
After the new project has been created, click the Credentials link on the left to create credentials.
In the pop-up window which appears, click Create credentials.
From the drop-down menu, choose Service account key.
Click the Service account drop-down menu and choose New service account.
Fill out the following:
-
In the Service Account Name field, give your account a name like
nks-admin
. -
For Role select Project > Owner.
-
For Key type select JSON.
Then click Create.
The JSON credentials (keyset) will automatically be saved to your local computer.
Locate the new .json
file in your downloads folder and open it with a plaintext editor such as Notepad. Copy and paste the contents into the NKS website when you create a new cluster.
You can only view or download the Service Account JSON file when you create the key. However, you can create a new key at any time.
Log in to the Google cloud console. Click IAM & Admin.
Click Service Accounts.
Click the Service Account for which you need to generate a new key.
Click +CREATE KEY.
Select JSON
as the key type. Click CREATE to download the JSON credentials.
Locate the new .json
file in your downloads folder and open it with a plaintext editor such as Notepad. Copy and paste the contents into NetApp Kubernetes Service (NKS) when you create a new cluster.
Did this article answer your question? If not, contact us.