目录
1、怎么进入k3s的pods
要进入 k3s 的 Pods 中,可以使用 kubectl exec
命令。以下是进入 PostgreSQL Pod 的步骤:
1. 使用 kubectl get pods
命令查看当前运行的 Pod 列表,并找到名称为 postgresql
的 Pod 对象:
kubectl get pods -n my-namespace
目录
要进入 k3s 的 Pods 中,可以使用 kubectl exec
命令。以下是进入 PostgreSQL Pod 的步骤:
1. 使用 kubectl get pods
命令查看当前运行的 Pod 列表,并找到名称为 postgresql
的 Pod 对象:
kubectl get pods -n my-namespace