Skip to content

Latest commit

 

History

History
 
 

api-client

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Google Container Engine Python Samples

This directory contains samples for Google Container Engine. Google Container Engine runs Docker containers on Google Cloud Platform, powered by Kubernetes.

Setup

Authentication

This sample requires you to have authentication setup. Refer to the Authentication Getting Started Guide for instructions on setting up credentials for applications.

Install Dependencies

  1. Install pip and virtualenv if you do not already have them.

  2. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.

    $ virtualenv env
    $ source env/bin/activate
  3. Install the dependencies needed to run the samples.

    $ pip install -r requirements.txt

Samples

Snippets

To run this sample:

$ python snippets.py

usage: snippets.py [-h] {list_clusters_and_nodepools} ...

positional arguments:
  {list_clusters_and_nodepools}
    list_clusters_and_nodepools
                        Lists all clusters and associated node pools.

optional arguments:
  -h, --help            show this help message and exit