You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by pe...@apache.org on 2022/01/03 04:34:09 UTC

[cloudstack] 05/07: Add ssh to k8s nodes details in the Access tab on the UI

This is an automated email from the ASF dual-hosted git repository.

pearl11594 pushed a commit to branch test-opt
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit 50d0b6abe541e08bd8c30bb91193ba07a5fc47ae
Author: Pearl Dsilva <pe...@gmail.com>
AuthorDate: Tue Dec 21 14:55:25 2021 +0530

    Add ssh to k8s nodes details in the Access tab on the UI
---
 ui/public/locales/en.json                     | 2 ++
 ui/src/views/compute/KubernetesServiceTab.vue | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/ui/public/locales/en.json b/ui/public/locales/en.json
index 372cd31..f4872cb 100644
--- a/ui/public/locales/en.json
+++ b/ui/public/locales/en.json
@@ -46,6 +46,7 @@
 "label.accept": "Accept",
 "label.accept.project.invitation": "Accept project invitation",
 "label.access": "Access",
+"label.acess.kubernetes.nodes": "Access Kubernetes Nodes",
 "label.accesskey": "Access Key",
 "label.account": "Account",
 "label.account.and.security.group": "Account - Security group",
@@ -1229,6 +1230,7 @@
 "label.keypair": "SSH Key Pair",
 "label.kubeconfig.cluster": "Kubernetes Cluster Config",
 "label.kubernetes": "Kubernetes",
+"label.kubernetes.access.details": "The kubernetes nodes can be accessed via ssh using: <br> <code><b> ssh -i [ssh_key] -p [port_number] core@[public_ip_address] </b></code> <br><br> where, <br> <code><b>ssh_key:</b></code> points to the ssh private key file corresponding to the key that was associated while creating the Kubernetes cluster. If no ssh key was provided during Kubernetes cluster creation, use the ssh private key of the management server. <br> <code><b>port_number:</b></code [...]
 "label.kubernetes.cluster": "Kubernetes cluster",
 "label.kubernetes.cluster.create": "Create Kubernetes Cluster",
 "label.kubernetes.cluster.delete": "Delete Kubernetes Cluster",
diff --git a/ui/src/views/compute/KubernetesServiceTab.vue b/ui/src/views/compute/KubernetesServiceTab.vue
index 3a738f7..5861c65 100644
--- a/ui/src/views/compute/KubernetesServiceTab.vue
+++ b/ui/src/views/compute/KubernetesServiceTab.vue
@@ -88,6 +88,9 @@
           </a-timeline>
           <p>{{ $t('label.more.access.dashboard.ui') }}, <a href="https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/#accessing-the-dashboard-ui">https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/#accessing-the-dashboard-ui</a></p>
         </a-card>
+        <a-card :title="$t('label.acess.kubernetes.nodes')">
+          <p v-html="$t('label.kubernetes.access.details')"></p>
+        </a-card>
       </a-tab-pane>
       <a-tab-pane :tab="$t('label.instances')" key="instances">
         <a-table