Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Aplikasi Kf dapat di-deploy di node khusus dalam cluster.
Fitur ini diperlukan jika Anda memiliki situasi saat Anda mungkin menginginkan kontrol
lebih besar pada node tempat Pod Aplikasi di-deploy. Contoh:
Jika Anda berbagi cluster yang sama untuk Aplikasi yang berbeda, tetapi menginginkan node khusus
untuk Aplikasi tertentu.
Jika Anda menginginkan node khusus untuk organisasi tertentu (Ruang Kf).
Jika Anda ingin menargetkan sistem operasi tertentu seperti Windows.
Jika Anda ingin menempatkan Pod secara bersama-sama dari dua layanan berbeda yang sering
berkomunikasi.
Untuk mengaktifkan isolasi komputasi, Kf menggunakan nodeSelector Kubernetes. Untuk
menggunakan fitur ini, tambahkan label terlebih dahulu di node atau kumpulan node tempat Anda ingin
Pod Aplikasi di-deploy, lalu tambahkan label penentu yang sama di Ruang Kf.
Semua Aplikasi yang diinstal di Ruang ini kemudian akan ditempatkan di node dengan label yang cocok.
Mengonfigurasi nodeSelector di cluster Kf
Secara default, isolasi komputasi dinonaktifkan. Gunakan prosedur berikut untuk mengonfigurasi label dan nodeSelector.
Tambahkan label (distype=ssd) di node tempat Anda ingin pod aplikasi
ditempatkan.
kubectllabelnodesnodeiddisktype=ssd
Tambahkan label yang sama di Ruang Kf. Semua Aplikasi yang di-deploy di Ruang ini
akan diarahkan ke node yang memenuhi syarat.
Deployment Aplikasi Kf dapat ditargetkan lebih lanjut berdasarkan
stack (buildpack) yang digunakan untuk mem-build dan memaketkan Aplikasi. Misalnya, jika Anda ingin aplikasi yang di-build dengan spaceStacksV2 di-deploy ke
node dengan kernel Linux 4.4.1., Nilai nodeSelector di stack akan menggantikan
nilai yang dikonfigurasi di Ruang.
Untuk mengonfigurasi nodeSelector di stack:
Edit config-defaults cluster Kf Anda dan tambahkan label.
[[["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-04 UTC."],[],[],null,["# Enable compute isolation\n\nKf Apps can be deployed on dedicated nodes in the cluster.\nThis feature is required if you have the circumstances where you might want more\ncontrol on a node where an App Pod lands. For example:\n\n- If you are sharing the same cluster for different Apps but want dedicated nodes for a particular App.\n- If you want dedicated nodes for a given organization (Kf Space).\n- If you want to target a specific operating system like Windows.\n- If you want to co-locate Pods from two different services that frequently communicate.\n\nTo enable compute isolation, Kf uses the Kubernetes [nodeSelector](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node). To\nuse this feature, first add labels on the nodes or node pools where you want\nyour App Pods to land and then add the same qualifying labels on the Kf Space.\nAll the Apps installed in this Space then land on the nodes with matching labels.\n\nConfigure nodeSelector in a Kf cluster\n--------------------------------------\n\nBy default, compute isolation is disabled. Use the following procedure\nto configure labels and nodeSelector.\n\n1. Add a label (`distype=ssd`) on the node where you want your application pods to\n land.\n\n kubectl label nodes \u003cvar translate=\"no\"\u003enodeid\u003c/var\u003e disktype=ssd\n\n2. Add the same label on the Kf Space. All Apps deployed in this Space\n will then land on the qualifying nodes.\n\n kf configure-space set-nodeselector \u003cvar translate=\"no\"\u003espace-name\u003c/var\u003e disktype ssd\n\n You can add multiple labels by running the same command again.\n3. Check the label is configured.\n\n kf configure-space get-nodeselector \u003cvar translate=\"no\"\u003espace-name\u003c/var\u003e\n\n4. Delete the label from the space.\n\n kf configure-space unset-nodeselector \u003cvar translate=\"no\"\u003espace-name\u003c/var\u003e disktype\n\nOverride nodeSelector for [Kf stacks](/migrate/kf/docs/2.7/cli/kf-stacks)\n-------------------------------------------------------------------------\n\nDeployment of Kf Apps can be further targeted based\non what stack (buildpack) is being used to build and package the App. For\nexample, if you want your applications built with `spaceStacksV2` to land on\nnodes with Linux kernel 4.4.1., `nodeSelector` values on a stack override the\nvalues configured on the Space.\n\nTo configure the `nodeSelector` on a stack:\n\n1. Edit the `config-defaults` of your Kf cluster and add the labels.\n\n $ kubectl -n kf edit configmaps config-defaults\n\n2. Add `nodeSelector` to the stacks definition.\n\n .....\n .....\n spaceStacksV2: |\n - name: cflinuxfs3\n image: cloudfoundry/cflinuxfs3\n nodeSelector:\n OS_KERNEL: LINUX_4.4.1 \n .....\n ....."]]