Loading

How to Enter the Shell of a RTF App

Дата публикации: Mar 5, 2025
Действия

CONTENTS

You need to enter the shell prompt of a RTF app to perform some troubleshooting, such as to run curl and openssl commands. There may be differences when running these commands from the app versus from the controller or workers.

STEPS TO FOLLOW

1) Please run the following command from the Ops Center shell or from SSH prompt as root in one of the controller nodes:
[root@ip-172-31-0-254 ec2-user]# kubectl get pods --all-namespaces

You will see the following results. Note the first two columns of your target app. In this case, it is "c7895e44-650d-45ad-abc7-2ff6a9c84def   www-67f8bf4c67-l5kvs", which correspond to <namespace> and <pod>:
 
[root@ip-172-31-0-254 ec2-user]# kubectl get pods --all-namespaces
NAMESPACE                              NAME                                      READY   STATUS      RESTARTS   AGE
c7895e44-650d-45ad-abc7-2ff6a9c84def   www-67f8bf4c67-l5kvs                      2/2     Running     0          9m21s
kube-system                            coredns-ngtnx                             1/1     Running     0          19m
kube-system                            coredns-worker-jplsd                      1/1     Running     0          16m
kube-system                            coredns-worker-kgbdf                      1/1     Running     0          16m
kube-system                            dns-app-install-3b470d-45grj              0/1     Completed   0          19m
kube-system                            gravity-install-69dc7c-2r5jb              0/1     Completed   0          19m
kube-system                            gravity-site-nqrrf                        1/1     Running     0          18m
kube-system                            log-collector-fc97d699f-mkhr4             1/1     Running     0          18m
kube-system                            log-forwarder-59dch                       1/1     Running     0          16m
kube-system                            log-forwarder-pjf6z                       1/1     Running     0          16m
kube-system                            log-forwarder-pz79d                       1/1     Running     0          19m
kube-system                            logging-app-bootstrap-af9311-82s6j        0/1     Completed   0          19m
kube-system                            monitoring-app-install-7862ab-cssq7       0/1     Completed   0          19m
kube-system                            rtf-install-hook-90bdaa-vjlnx             0/1     Completed   0          18m
kube-system                            site-app-post-install-ff254e-mqmwz        0/1     Completed   2          18m
kube-system                            tiller-app-bootstrap-3c42b0-xhdn8         0/1     Completed   0          19m
kube-system                            tiller-deploy-7f5cd54c97-gsxjj            1/1     Running     0          18m
monitoring                             grafana-5fd4fdbd85-r7gxc                  2/2     Running     0          18m
monitoring                             heapster-5858fcb487-d7fjl                 1/1     Running     0          18m
monitoring                             influxdb-7754bf8967-r6gqd                 2/2     Running     1          17m
monitoring                             kapacitor-9d6954f84-4mvkl                 3/3     Running     0          18m
monitoring                             nethealth-8bl6g                           1/1     Running     0          16m
monitoring                             nethealth-fkvf8                           1/1     Running     0          19m
monitoring                             nethealth-mdj25                           1/1     Running     0          16m
monitoring                             telegraf-ddbcb564f-zbk69                  1/1     Running     0          18m
monitoring                             telegraf-node-master-r9b7k                1/1     Running     0          19m
monitoring                             telegraf-node-worker-87z4p                1/1     Running     0          16m
monitoring                             telegraf-node-worker-qv2mj                1/1     Running     0          16m
rtf                                    agent-795b9cf98b-647xr                    1/1     Running     0          16m
rtf                                    cluster-status-1637171400-n5h4z           0/1     Completed   0          3m17s
rtf                                    ingress-x6jk4                             1/1     Running     0          10m
rtf                                    initial-cluster-status-fplhz              0/1     Completed   0          15m

2) Run the following command to enter the pod, pasting the information noted from the previous step :
kubectl exec -it -n <namespace> <pod> -c app -- sh
In this example, it would look like:
kubectl exec -it -n c7895e44-650d-45ad-abc7-2ff6a9c84def   www-67f8bf4c67-l5kvs  -c app -- sh
3) Now, you should be inside the container with a prompt:
$



 
Номер статьи базы знаний

001116677

 
Загрузка
Salesforce Help | Article