Membuat template yang dapat digunakan kembali dari aplikasi yang sedang berjalan
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Jika aplikasi App Hub sudah berhasil berjalan, Anda dapat membuat template yang dapat digunakan kembali dari aplikasi tersebut. Praktik ini memungkinkan tim developer
melakukan deployment sendiri dengan cara yang konsisten dan mematuhi standar organisasi Anda.
Panduan ini menunjukkan cara menstandardisasi arsitektur aplikasi App Hub yang sudah ada dan terdaftar dengan membuat template yang diatur dan dapat digunakan kembali.
Alur kerja ini cocok untuk mempromosikan praktik terbaik dan mendukung deployment layanan yang konsisten dan aman. Misalnya, gunakan arsitektur aplikasi translator_v4.0 yang sedang berjalan untuk membuat template aplikasi translator_v5.0 yang akan datang.
Sebelum memulai
Anda harus menyelesaikan langkah-langkah berikut sebelum membuat template dari aplikasi yang ada:
Buka folder atau project host yang mendukung aplikasi, bergantung pada
model penyiapan Anda.
Mengidentifikasi dan meninjau aplikasi sumber
Gunakan App Hub untuk mendapatkan cetak biru yang jelas tentang arsitektur aplikasi yang ada:
Di konsol Google Cloud , gunakan pemilih project untuk memilih project host atau project pengelolaan folder yang mendukung aplikasi, bergantung pada model penyiapan Anda.
Dalam daftar aplikasi, cari dan pilih aplikasi yang sedang berjalan yang ingin Anda gunakan sebagai model.
Di halaman detail aplikasi, tinjau layanan dan beban kerjanya yang terdaftar. Tampilan ini berfungsi sebagai sumber kebenaran untuk arsitektur
aplikasi.
Membuat dan memparameterisasi template
Dengan blueprint aplikasi dari App Hub, buat template yang fleksibel dan dapat digunakan kembali di Application Design Center:
Mendesain template aplikasi,
memetakan inventaris layanan dan workload dari aplikasi sumber
ke kanvas desain.
Identifikasi nilai konfigurasi apa pun dalam komponen yang harus disesuaikan
oleh developer untuk setiap deployment, seperti region, ukuran mesin, atau jumlah
instance. Tentukan parameter ini sebagai parameter input dalam template. Praktik ini memungkinkan pengguna template menentukan setelan sambil mempertahankan arsitektur inti.
Tambahkan deskripsi mendetail, nomor versi, dan metadata relevan lainnya ke
template.
Memublikasikan dan memvalidasi template
Setelah selesai mendesain dan memparameterisasi template, publikasikan ke katalog agar tersedia untuk tim lain:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-10 UTC."],[],[],null,["When an App Hub application is already running successfully, you can\ncreate a reusable template from it. This practice lets developer teams\nself-serve their deployments in a way that is consistent and compliant with your\norganization's standards.\n\nThis guide shows you how to standardize the architecture of an existing,\nregistered App Hub application by creating a governed, reusable\ntemplate.\n\nThis workflow is suitable for promoting best practices and supporting a\nconsistent and secure deployment of services. For example, use the architecture\nof a running `translator_v4.0` application to create a template for an upcoming\n`translator_v5.0` application.\n\nBefore you begin\n\nYou must complete the following steps before creating templates from existing\napplications:\n\n- **For administrators**:\n\n 1. [Set up Application Design Center](/application-design-center/docs/setup). You must configure Application Design Center to let users create application templates.\n 2. [Grant access to users](/resource-manager/docs/manage-applications#assign-roles). Assign appropriate IAM roles based on user's responsibilities in the application lifecycle.\n- **For developers and operators**:\n\n 1. Confirm with your administrator that the initial setup is finalized.\n 2. [Make sure you have the necessary IAM roles](/resource-manager/docs/manage-applications#assign-roles) for the tasks you want to perform.\n 3. Open your app-enabled folder or host project, depending on your [setup model](/app-hub/docs/set-up-app-hub).\n\nIdentify and review the source application\n\nUse App Hub to get a clear blueprint of the existing application's\narchitecture:\n\n1. In the Google Cloud console, use the project picker to select your host project or the management project of the app-enabled folder, depending on your [setup model](/app-hub/docs/set-up-app-hub).\n2. Navigate to the **Applications** page from App Hub:\n\n\n [Go to Applications](https://console.cloud.google.com/apphub/applications)\n\n \u003cbr /\u003e\n\n3. In the list of applications, find and select the running application you\n want to use as a model.\n\n4. In the application details page, review its registered services and\n workloads. This view serves as the source of truth for the application's\n architecture.\n\nGenerate and parametrize the template\n\nWith the application blueprint from App Hub, build a flexible, reusable\ntemplate in Application Design Center:\n\n1. [Design an application template](/application-design-center/docs/design-application-templates), mapping the inventory of services and workloads from your source application onto the design canvas.\n2. Identify any configuration values within the components that developers must customize for each deployment, such as region, machine sizes, or instance counts. Define these as input parameters in the template. This practice lets template users specify settings while maintaining the core architecture.\n3. Add a detailed description, version number, and other relevant metadata to the template.\n\nPublish and validate the template\n\nWhen you finish designing and parametrizing the template, publish it to a\ncatalog to make it available to other teams:\n\n1. [Verify your template](/application-design-center/docs/design-application-templates#verify_your_template).\n2. [Share the template to a catalog](/application-design-center/docs/design-application-templates#share-template-to-catalog).\n3. As a final validation, verify that the architecture of a test application matches the original [source application](#identify-application).\n\nDevelopers can now reuse the template for applications that are consistent and\ncompliant with your organization's standards."]]