根据官网基于k8s部署社区版4.3.2,到 ODP步骤是报错

前面的部署都是完全按照官网的部署,没有改动
部署代码如下
apiVersion: v1
kind: Service
metadata:
name: svc-obproxy
namespace: oceanbase
spec:
type: ClusterIP
selector:
app: obproxy
ports:
- name: “sql”
port: 2883
targetPort: 2883
- name: “prometheus”
port: 2884
targetPort: 2884


apiVersion: apps/v1
kind: Deployment
metadata:
name: obproxy
namespace: oceanbase
spec:
selector:
matchLabels:
app: obproxy
replicas: 2
template:
metadata:
labels:
app: obproxy
spec:
containers:
- name: obproxy
image: oceanbase/obproxy-ce:4.2.1.0-11
ports:
- containerPort: 2883
name: “sql”
- containerPort: 2884
name: “prometheus”
env:
- name : OBPROXY_ROOT
value: /home/admin/obproxy/bin/obproxy
- name: APP_NAME
value: helloworld
- name: OB_CLUSTER
value: obcluster
- name: RS_LIST
value: ${RS_LIST}
- name: PROXYRO_PASSWORD
valueFrom:
secretKeyRef:
name: proxyro-password
key: password
# resources:
#limits:
# memory: 6Gi
#cpu: “2”
#requests:
#memory: 500Mi
#cpu: 200m

  • name: PROXYRO_PASSWORD
    valueFrom:
    secretKeyRef:
    name: proxyro-password
    key: password
    #resources:
    #limits:
    #memory: 6Gi
    #cpu: “2”
    #requests:
    #memory: 500Mi
    #cpu: 200m
    检查一下这里面的参数

你好,请问提示的错误信息和不符合预期的表现是什么?截图里面的输出是正常的


如图,oceanbase代理pod出错,没有正常运行

前面的secret是复制官网上执行的

我把资源这段加了备注,否则pod都无法建立,提示


执行kubectl describe pod kubectl describe pod obproxy-7899449dfb-nx5x7 -n oceanbase

这个提示的意思是 k8s 集群的 CPU 资源不足了,能 describe 另外两个 CrashLoopBackOff 的 Pod 看一下返回内容吗?


谢谢,这是另外两个pod出错信息的内容

你好,麻烦检查一下是不是 k8s 节点资源不足。

kubectl top nodes
kubectl get nodes -o jsonpath='{.items[*].status.allocatable}'