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/java/java-hello-world at master · kivixcharita/cloud-code-samples

Expand file tree

/

java-hello-world

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

java-hello-world

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
.idea
.idea
 
 
.mvn/wrapper
.mvn/wrapper
 
 
.vscode
.vscode
 
 
img
img
 
 
kubernetes-manifests
kubernetes-manifests
 
 
src
src
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
checkstyle.xml
checkstyle.xml
 
 
mvnw
mvnw
 
 
mvnw.cmd
mvnw.cmd
 
 
pom.xml
pom.xml
 
 
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 Spring-based web server that simply prints "Hello World".


Table of Contents

  • VS Code Guide
    1. Getting Started
    2. What's in the box
  • IntelliJ Guide
    1. Getting Started
    2. What's in the box
  • Using the Command Line

VS Code Guide

VS Code 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 Cloud Code

  • Set up a Google Kubernetes Engine Cluster
  • Running the app
  • Debug the app
  • View Container Logs
  • Open a Terminal in Your Container

IntelliJ Guide

IntelliJ Getting Started

This sample was written to demonstrate how to use the Cloud Code plugin for IntelliJ.

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

Using Cloud Code

  • Creating an app
  • Develop an app
  • Debug an app
  • View Container Logs

Using the Command Line

As an alternative to using Cloud Code, 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 separately 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.