lxkaka commented on issue #5711: K8s: through pulsar proxy visit api return 502 URL: https://github.com/apache/pulsar/issues/5711#issuecomment-558614853 Other components work well, sometimes proxy return 200, but more proable return 520. so service of proxy is configured correctly. ``` apiVersion: v1 kind: ConfigMap metadata: name: proxy-config data: PULSAR_MEM: "\" -Xms64m -Xmx128m -XX:MaxDirectMemorySize=128m\"" zookeeperServers: zookeeper.kafka.svc.cluster.local configurationStoreServers: zookeeper.kafka.svc.cluster.local clusterName: zaihui-pulsar --- ## ## Expose all nodes on port so that you can reach cluster from outside k8 ## apiVersion: v1 kind: Service metadata: name: proxy labels: app: pulsar component: proxy spec: ports: - name: tcp targetPort: 8080 port: 80 protocol: TCP selector: app: pulsar component: proxy --- apiVersion: v1 kind: Service metadata: annotations: service.beta.kubernetes.io/alicloud-loadbalancer-address-type: intranet service.beta.kubernetes.io/alicloud-loadbalancer-id: lb-uf60mqjlrkxtp3gv8gl68 name: proxy-tcp labels: app: pulsar component: proxy spec: type: LoadBalancer ports: - name: tcp targetPort: 6650 port: 6650 protocol: TCP selector: app: pulsar component: proxy --- ## ## Proxy deployment definition ## apiVersion: apps/v1 kind: Deployment metadata: name: proxy spec: # Must match template:metadata:labels selector: matchLabels: app: pulsar component: proxy replicas: 1 template: metadata: labels: app: pulsar component: proxy annotations: prometheus.io/scrape: "true" prometheus.io/port: "8080" spec: containers: - name: proxy image: docker-inter.kezaihui.com/inf/common/pulsar:2.4.1 command: ["sh", "-c"] args: - > bin/apply-config-from-env.py conf/proxy.conf && bin/apply-config-from-env.py conf/pulsar_env.sh && bin/pulsar proxy ports: - containerPort: 8080 - containerPort: 6650 envFrom: - configMapRef: name: proxy-config ``` I doubt that I give too few memory?
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
