stg-debug-guide

Ready Precontact

https://se-pm.iad2.infery.com

password is RSA passcode on mobile phone, after entering the 8-digit pin for the code

LDAP, Ephemeral Hosts

check slack bot message for login info

novassh, choose PCI jumpbox

login with the password set inside iad2, not the passcode

1
ssh stgk8smaster-pci-01
1
ssh stgk8smaster-nonpci-01

They are the two master nodes

PCI is for components related with credit card money

get all pods

1
sudo kubectl get pod -A

get pods inside specific namespace

1
sudo kbuectl get pod -n stg-nucleus

0/1 service down, need redeploy

ipgeo and Completed jobs can be ignored

Reboot pod

1
sudo kubectl delete pod -n stg-xxx stgxxx-1
1
sudo kubectl exec -it -n stg-xxx stgxxx-1 bash

kubectl describe pod

~/xxx.app/serv

alert.log 内有详细信息

vim -R 可以让 vim 只读

Manually Deploy image to STG

1
2
3
kubectl edit sts -n stg-xxx
kubectl delete pod -n stg-xxx stgxxx-0

edit sts !!
delete pod !!