In doing the terraform setup and following the tutorial on Cloud Shell, when I attempt to follow Scenario 2 and run the pod labeler, every version of the yaml is able to get the Running
state successfully and have this error in the logs:
aprindle@gke-tutorial-admin:~$ kubectl logs -l app=pod-labeler
/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py:1235: UserWarning: /tmp is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
warnings.warn(msg, UserWarning)
Attempting to list pods
2019-01-30 20:38:49,336 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f024b73e290>: Failed to establish a new connection: [Errno 110] Connection timed out',)': /api/v1/namespaces/default/pods?watch=False
aprindle@gke-tutorial-admin:~$ kubectl logs -l app=pod-labeler
/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py:1235: UserWarning: /tmp is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
warnings.warn(msg, UserWarning)
Attempting to list pods
2019-01-30 20:38:49,336 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f024b73e290>: Failed to establish a new connection: [Errno 110] Connection timed out',)': /api/v1/namespaces/default/pods?watch=False
I expected the initial deployments to fail as described in the scenario and then have a successful run in the end.