GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cloud-code-samples/python/python-hello-world at master · kchoksi/cloud-code-samples

Expand file tree

/

python-hello-world

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

python-hello-world

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
.idea
.idea
 
 
.vscode
.vscode
 
 
img
img
 
 
kubernetes-manifests
kubernetes-manifests
 
 
src
src
 
 
tests
tests
 
 
README.md
README.md
 
 
skaffold.yaml
skaffold.yaml
 
 

README.md

Outline

Hello World with Cloud Code

Architecture Diagram

"Hello World" is a simple Kubernetes application that contains a single Deployment and a corresponding Service. The Deployment contains a Flask-based web server that simply prints "Hello World".


Table of Contents

Cloud Code for Visual Studio Code

  1. Getting Started
  2. What's in the box
  3. Using Cloud Code
    • Set up a Google Kubernetes Engine Cluster
    • Deploy the app
    • Continuous Deployment
    • View Container Logs
    • Debug Your Code
    • Open a Terminal in Your Container
  4. Using the Command Line
    • Skaffold
    • kubectl

Getting Started

This sample was written to demonstrate how to use the Cloud Code extension for Visual Studio code.

  • Install Cloud Code for VS Code
  • Creating a new app
  • Editing YAML files

Using the Command Line

As an alternative to using the Cloud Code extension, the application can be deployed to a cluster using standard command line tools

Skaffold

Skaffold is a command line tool that can be used to build, push, and deploy your container images

skaffold run --default-repo=gcr.io/your-project-id-here/cloudcode

kubectl

kubectl is the official Kubernetes command line tool. It can be used to deploy Kubernetes manifests to your cluster, but images must be build seperately using another tool (for example, using the Docker CLI)

-----|------

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.