Stay organized with collections Save and categorize content based on your preferences.
Deploy a Linux application containerThis page describes how to prepare your cluster for deployment, and how to deploy your Linux application containers using Skaffold.
Note: Using Skaffold is the recommended approach, but is not required. You can also build directly withdocker build
and apply the changes with kubectl
.
Skaffold handles the workflow for building, pushing, and deploying your application. Linux, Tomcat, WebSphere, JBoss, Apache, and WordPress support Skaffold artifact creation by default.
If you use Cloud Shell, Skaffold is already installed. If you need to install Skaffold, see Installing Skaffold.
Before you beginkubectl
and connect to the cluster.As part of your deployment, you build and upload the Docker image of your container to a Docker registry.
For the Docker registry you can choose to use:
Artifact Registry
Any Docker registry that supports basic authentication
The recommended solution is to use Artifact Registry in the same project of the deployment cluster. GKE can access the registry by default. For more information, see the requirements to integrate with GKE.
If you want to use you a private Docker registry, learn how to configure the registry.
Use Skaffold with Linux-based workloadsThe skaffold.yaml
file is at the root folder of the generated artifacts. To learn how to edit the skaffold.yaml
file, see the Skaffold file reference.
To build and deploy your container, from the root folder of the generated artifacts, run the following command:
skaffold run -d REPOSITORY_PATH
Replace REPOSITORY_PATH with the path to your artifact repository. For example, us-central1-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME
.
This command builds the image, uploads it to the selected repository, and then deploys it to the default cluster.
To run Skaffold while building using Cloud Build, use the following command:
skaffold run -d REPOSITORY_PATH -p cloudbuild
What's next
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4