Update command to get webapp deployer pod id

This commit is contained in:
Adw8 2024-10-28 11:18:20 +05:30 committed by Prathamesh Musale
parent 43b6268d7b
commit 96f15aa8fe

View File

@ -8,7 +8,6 @@ Follow steps from <https://git.vdb.to/cerc-io/testnet-ops/src/branch/main/servic
* webapp deployer API: https://webapp-deployer-api.pwa.laconic.com
* webapp deployer UI: https://webapp-deployer-ui.pwa.laconic.com
## Update webapp deployer
* Stop the deployer
@ -374,7 +373,7 @@ Follow the steps given below to connect the webapp-deployer to testnet2
# api url of webapp deployer
LACONIC_HOSTED_CONFIG_app_api_url=
# url of laconic console
LACONIC_HOSTED_CONFIG_app_console_link=http://console-sapo.laconic.com
LACONIC_HOSTED_CONFIG_app_console_link=https://console-sapo.laconic.com
```
</details>
@ -389,24 +388,28 @@ Follow the steps given below to connect the webapp-deployer to testnet2
laconic-so deployment --dir webapp-deployer start
```
* Get the most recent pod id
* Get the webapp-deployer pod id
```bash
kubie ctx default
kubectl get pods
```
```bash
laconic-so deployment --dir webapp-deployer ps
* Copy the GPG key file to the webapp-deployer container
# Expected output
# Running containers:
# id: default/laconic-096fed46af974a47-deployment-644db859c7-snbq6, name: laconic-096fed46af974a47-deployment-644db859c7-snbq6, ports: 10.42.2.11:9555->9555
```bash
# Get the webapp-deployer pod id
kubectl get pods --sort-by=.metadata.creationTimestamp -o jsonpath='{.items[-1].metadata.name}'
# laconic-ac473c31db9ac9fd-deployment-674bf7bf9f-529bs
# Set pod id
export POD_ID=
# Example:
# export POD_ID=laconic-096fed46af974a47-deployment-644db859c7-snbq6
```
# Copy the GPG key files to the pod
kubectl cp <path-to-your-gpg-private-key> laconic-ac473c31db9ac9fd-deployment-674bf7bf9f-529bs:/app
kubectl cp <path-to-your-gpg-public-key> laconic-ac473c31db9ac9fd-deployment-674bf7bf9f-529bs:/app
```
* Copy the GPG key file to the webapp-deployer container
```bash
# Copy the GPG key files to the pod
kubectl cp <path-to-your-gpg-private-key> POD_ID:/app
kubectl cp <path-to-your-gpg-public-key> POD_ID:/app
````
* Check logs