chore: worker ip
This commit is contained in:
@@ -98,5 +98,7 @@ Same applies to the <span class="bold-text">/opt/dtk</span> directory.`,
|
|||||||
'Specify a name for the worker container.',
|
'Specify a name for the worker container.',
|
||||||
'clusters.addworker.dataVolume': 'GPUStack Data Volume',
|
'clusters.addworker.dataVolume': 'GPUStack Data Volume',
|
||||||
'clusters.addworker.dataVolume.tips':
|
'clusters.addworker.dataVolume.tips':
|
||||||
'Specify a data storage path for GPUStack.'
|
'Specify a data storage path for GPUStack.',
|
||||||
|
'clusters.table.ip.internal': 'Internal',
|
||||||
|
'clusters.table.ip.external': 'External'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -98,7 +98,9 @@ Same applies to the <span class="bold-text">/opt/dtk</span> directory.`,
|
|||||||
'Specify a name for the worker container.',
|
'Specify a name for the worker container.',
|
||||||
'clusters.addworker.dataVolume': 'GPUStack Data Volume',
|
'clusters.addworker.dataVolume': 'GPUStack Data Volume',
|
||||||
'clusters.addworker.dataVolume.tips':
|
'clusters.addworker.dataVolume.tips':
|
||||||
'Specify a data storage path for GPUStack.'
|
'Specify a data storage path for GPUStack.',
|
||||||
|
'clusters.table.ip.internal': 'Internal',
|
||||||
|
'clusters.table.ip.external': 'External'
|
||||||
};
|
};
|
||||||
|
|
||||||
// ========== To-Do: Translate Keys (Remove After Translation) ==========
|
// ========== To-Do: Translate Keys (Remove After Translation) ==========
|
||||||
@@ -181,5 +183,7 @@ Same applies to the <span class="bold-text">/opt/dtk</span> directory.`,
|
|||||||
// 75. 'clusters.addworker.containerName': 'Worker Container Name',
|
// 75. 'clusters.addworker.containerName': 'Worker Container Name',
|
||||||
// 76. 'clusters.addworker.containerName.tips':'Specify a name for the worker container.',
|
// 76. 'clusters.addworker.containerName.tips':'Specify a name for the worker container.',
|
||||||
// 77. 'clusters.addworker.dataVolume': 'GPUStack Data Volume',
|
// 77. 'clusters.addworker.dataVolume': 'GPUStack Data Volume',
|
||||||
// 78. 'clusters.addworker.dataVolume.tips': 'Specify a data storage path for GPUStack.'
|
// 78. 'clusters.addworker.dataVolume.tips': 'Specify a data storage path for GPUStack.',
|
||||||
|
// 79. 'clusters.table.ip.internal': 'Internal',
|
||||||
|
// 80. 'clusters.table.ip.external': 'External'
|
||||||
// ========== End of To-Do List ==========
|
// ========== End of To-Do List ==========
|
||||||
|
|||||||
@@ -98,7 +98,9 @@ export default {
|
|||||||
'Specify a name for the worker container.',
|
'Specify a name for the worker container.',
|
||||||
'clusters.addworker.dataVolume': 'GPUStack Data Volume',
|
'clusters.addworker.dataVolume': 'GPUStack Data Volume',
|
||||||
'clusters.addworker.dataVolume.tips':
|
'clusters.addworker.dataVolume.tips':
|
||||||
'Specify a data storage path for GPUStack.'
|
'Specify a data storage path for GPUStack.',
|
||||||
|
'clusters.table.ip.internal': 'Internal',
|
||||||
|
'clusters.table.ip.external': 'External'
|
||||||
};
|
};
|
||||||
|
|
||||||
// ========== To-Do: Translate Keys (Remove After Translation) ==========
|
// ========== To-Do: Translate Keys (Remove After Translation) ==========
|
||||||
@@ -112,5 +114,7 @@ export default {
|
|||||||
// 6. 'clusters.addworker.containerName': 'Worker Container Name',
|
// 6. 'clusters.addworker.containerName': 'Worker Container Name',
|
||||||
// 7. 'clusters.addworker.containerName.tips':'Specify a name for the worker container.',
|
// 7. 'clusters.addworker.containerName.tips':'Specify a name for the worker container.',
|
||||||
// 8. 'clusters.addworker.dataVolume': 'GPUStack Data Volume',
|
// 8. 'clusters.addworker.dataVolume': 'GPUStack Data Volume',
|
||||||
// 9. 'clusters.addworker.dataVolume.tips': 'Specify a data storage path for GPUStack.'
|
// 9. 'clusters.addworker.dataVolume.tips': 'Specify a data storage path for GPUStack.',
|
||||||
|
// 10. 'clusters.table.ip.internal': 'Internal',
|
||||||
|
// 11. 'clusters.table.ip.external': 'External'
|
||||||
// ================================================================
|
// ================================================================
|
||||||
|
|||||||
@@ -94,5 +94,7 @@ export default {
|
|||||||
'clusters.addworker.containerName': '节点容器名称',
|
'clusters.addworker.containerName': '节点容器名称',
|
||||||
'clusters.addworker.containerName.tips': '为节点容器指定一个名称。',
|
'clusters.addworker.containerName.tips': '为节点容器指定一个名称。',
|
||||||
'clusters.addworker.dataVolume': 'GPUStack 数据卷',
|
'clusters.addworker.dataVolume': 'GPUStack 数据卷',
|
||||||
'clusters.addworker.dataVolume.tips': '为 GPUStack 指定数据存储路径。'
|
'clusters.addworker.dataVolume.tips': '为 GPUStack 指定数据存储路径。',
|
||||||
|
'clusters.table.ip.internal': '内',
|
||||||
|
'clusters.table.ip.external': '外'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ export interface ListItem {
|
|||||||
cluster_id: number;
|
cluster_id: number;
|
||||||
state_message: string;
|
state_message: string;
|
||||||
ssh_key_id: string;
|
ssh_key_id: string;
|
||||||
|
advertise_address: string;
|
||||||
provision_progress: string;
|
provision_progress: string;
|
||||||
maintenance: {
|
maintenance: {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
|
|||||||
@@ -279,9 +279,14 @@ const useWorkerColumns = ({
|
|||||||
{
|
{
|
||||||
title: 'IP',
|
title: 'IP',
|
||||||
dataIndex: 'ip',
|
dataIndex: 'ip',
|
||||||
render: (text: string) => (
|
render: (text: string, record) => (
|
||||||
<AutoTooltip ghost maxWidth={240}>
|
<AutoTooltip ghost maxWidth={240}>
|
||||||
{text}
|
{record.advertise_address || text}
|
||||||
|
{record.advertise_address
|
||||||
|
? ` (${intl.formatMessage({ id: 'clusters.table.ip.external' })})`
|
||||||
|
: record.ip
|
||||||
|
? ` (${intl.formatMessage({ id: 'clusters.table.ip.internal' })})`
|
||||||
|
: ''}
|
||||||
</AutoTooltip>
|
</AutoTooltip>
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user