[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-09-04 UTC。"],[[["\u003cp\u003eYou can configure how container images are built for Kubernetes deployments within the "Develop on Kubernetes" run configuration.\u003c/p\u003e\n"],["\u003cp\u003eCloud Code supports various builders like Docker, Jib, and Buildpacks, allowing you to choose based on your project's needs, including building locally or via Cloud Build.\u003c/p\u003e\n"],["\u003cp\u003eWhen a \u003ccode\u003eskaffold.yaml\u003c/code\u003e file is absent, Cloud Code's UI prompts you to set up build configurations, which are then stored as default build preferences in your Skaffold configuration.\u003c/p\u003e\n"],["\u003cp\u003eSkaffold profiles enable the customization of build, test, and deployment configurations for different contexts, and you can manage them through the Cloud Code UI or directly in the \u003ccode\u003eskaffold.yaml\u003c/code\u003e file.\u003c/p\u003e\n"],["\u003cp\u003eThe Build environment filter in Cloud Code allows you to filter and select Skaffold profiles based on the desired build environment, such as local or remote.\u003c/p\u003e\n"]]],[],null,["# Explore your build options with buildpacks, Jib, or Docker\n\nTo run or debug an application on Kubernetes, you'll need to set your\npreference for how your container image is built by configuring it in the\n**Develop on Kubernetes** run configuration.\n\nIn a project that doesn't contain a `skaffold.yaml` file at the root or doesn't\nreference `skaffold.yaml` you can use the Cloud Code UI to choose\na builder and build environment.\n\nBuilding locally is free of charge since it uses your own resources. Building\nwith [Cloud Build](/build) is good for slower machines or machines that\ndon't match the processor architecture of the target cluster. For information\nabout the cost of building your application using Cloud Build, see\n[Cloud Build Pricing](/build/pricing).\n\nSpecify how your images are built\n---------------------------------\n\nCloud Code supports\n[Docker](https://skaffold.dev/docs/pipeline-stages/builders/docker/),\n[Jib](https://skaffold.dev/docs/pipeline-stages/builders/jib/), and\n[Buildpacks](https://skaffold.dev/docs/pipeline-stages/builders/buildpacks/)\n[artifact types](https://skaffold.dev/docs/builders/).\n\nTo set or edit build options, navigate to the Run/Debug configuration selector\nin the Navigation bar or the top-level main menu: **Run** \\\u003e\n**Edit Configurations** \\\u003e **Develop on Kubernetes** and then click the\n**Build/Deploy** tab.\n\n\n### Without a skaffold.yaml\n\nWhen importing an existing application without a `skaffold.yaml` file or running\nan application that doesn't have a `skaffold.yaml`, you're prompted to specify\nsettings when initializing.\n\nIf you're using one of the Cloud Code sample applications, to use\nthe UI, delete the `skaffold.yaml` file before running a build action. For steps\nto choose a builder and build environment without the UI, see\n[Manually creating a Skaffold configuration](/code/docs/intellij/use-existing-kubernetes-app#manually_create_a_skaffold_configuration).\nTo edit the builder for an image, follow these steps:\n\n\u003cbr /\u003e\n\n1. Navigate to the Run/Debug configuration selector in the Navigation bar or the top-level main menu: **Run** \\\u003e **Edit Configurations** \\\u003e **Develop on Kubernetes** and click the **Build/Deploy** tab.\n2. Click **Initialize**.\n3. In the **Initialize Kubernetes project with Cloud Code** dialog under **Build settings** , select the image you want to build, and then click the **Edit** icon or press **Enter**.\n4. Select the builder that you want to use and then click **Okay**.\n\n The builder and settings you specify are stored in your [Skaffold](/skaffold)\n configuration as your default build preference.\n5. To return to your Run Configuration dialog with your new settings, click\n **Initialize**.\n\n### With an existing skaffold.yaml\n\nOn the **Build/Deploy** tab of your Run configuration settings, you can\nconfigure the build settings for your default profile.\n\nYou can also view the image name, builder, and builder arguments for all your\nexisting images.\n\n\nUse Skaffold profiles in Cloud Code\n-----------------------------------\n\nCloud Code uses the Skaffold tool under the hood to power the functionality in the **Build/Deploy** tab. To configure Cloud Code for different build or deploy environments such as local or remote builds, [Skaffold profiles](https://skaffold.dev/docs/environment/profiles/) are used.\n\n\u003cbr /\u003e\n\nCreate a new skaffold profile\n-----------------------------\n\nIf you'd like to define build, test and deployment configurations for\ndifferent contexts, you can have different Skaffold profiles.\n1. To create a new profile, navigate to **Run** \\\u003e **Edit Configurations** \\\u003e **Develop on Kubernetes** and choose the **Build/Deploy** tab.\n\n\u003cbr /\u003e\n\n1. In the **Deployment profile** box, click **+ Add Skaffold profile**.\n\n2. In the Create a new profile dialog, enter a profile name, select the build\n environment, and then click **OK**.\n\n After you've created the new profile, it will be automatically selected in the\n **Deployment profile** combo box in the run configuration panel.\n\nYou can also add profiles by editing your `skaffold.yaml` file manually.\n\nThe following sample shows a profile named `cloudbuild` used to to build images\nwith Cloud Build: \n\n profiles:\n # use the cloudbuild profile to build images using Google Cloud Build\n - name: cloudbuild\n build:\n googleCloudBuild: {}\n\nFor more information on Skaffold profiles, see the [Skaffold profiles documentation](https://skaffold.dev/docs/environment/profiles/)\n\n\u003cbr /\u003e\n\nFilter profiles by build environment\n------------------------------------\n\nUsing the **Build environment filter** input in the **Cloud Code: Kubernetes**\nrun configuration panel, you can filter your skaffold profiles based on the\nbuild environment you're interested in.\n\n1. Navigate to the Run/Debug configuration selector in the Navigation bar or the\n top-level main menu: **Run** \\\u003e **Edit Configurations** \\\u003e\n **Develop on Kubernetes** and click the **Build/Deploy** tab.\n\n By default, **Any** build environment will be selected. This filter shows all\n skaffold profiles in the selected skaffold profile.\n2. In the **Build environment filter** drop-down menu, select the build\n environment you want to see.\n\n Profiles matching your build environment selection are available in the\n **Deployment profile** drop down. If you select a build environment that has\n no available profiles, you may be prompted to create a profile.\n\nWhat's next\n-----------\n\n- Use [file sync and hot reloading](/code/docs/intellij/speed-up-k8s-development#enable-skaffold-file-sync-and-hot-reloading) to speed up development.\n- Learn more about [Cloud Native Buildpacks](https://buildpacks.io/).\n- Read about the benefits of [Cloud Build](/build)."]]