orientdb kubernetes 就绪探测错误:gzip:无效 header
orientdb kubernetes readiness probe errored: gzip : invalid header
我正在尝试使用以下 yaml 文件在 kubernetes 集群上创建 orient db 部署,使用 orientdb:2.125 docker 来自 docker 中心的图像。
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: orientdb
namespace: default
labels:
name: orientdb
spec:
replicas: 2
revisionHistoryLimit: 100
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
minReadySeconds: 5
template:
metadata:
labels:
service: orientdb
spec:
containers:
# Custom pod name.
- name: orientdb-node
image: orientdb:2.1.25
imagePullPolicy: Always
ports:
- name: http-port
containerPort: 2480 # WEB port number.
- name: binary-port
containerPort: 2424
livenessProbe:
httpGet:
path: /
port: http-port
initialDelaySeconds: 60
timeoutSeconds: 30
readinessProbe:
httpGet:
path: /
port: http-port
initialDelaySeconds: 5
timeoutSeconds: 5
但我收到以下消息
Readiness probe errored: gzip: invalid header
Liveness probe errored: gzip: invalid header
如何修复 orient db 的就绪性和活性探测?
orientdb web 应用程序在端口 2480 returns 压缩 HTTP 响应,所以你应该添加自定义 HTTP 头来支持你的 httpGet
livenessProbe 和 readinessProbe:
livenessProbe:
httpGet:
path: /
port: http-port
httpHeaders:
- name: Accept-Encoding
value: gzip
initialDelaySeconds: 60
timeoutSeconds: 30
readinessProbe:
httpGet:
path: /
port: http-port
httpHeaders:
- name: Accept-Encoding
value: gzip
initialDelaySeconds: 5
timeoutSeconds: 5
我正在尝试使用以下 yaml 文件在 kubernetes 集群上创建 orient db 部署,使用 orientdb:2.125 docker 来自 docker 中心的图像。
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: orientdb
namespace: default
labels:
name: orientdb
spec:
replicas: 2
revisionHistoryLimit: 100
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
minReadySeconds: 5
template:
metadata:
labels:
service: orientdb
spec:
containers:
# Custom pod name.
- name: orientdb-node
image: orientdb:2.1.25
imagePullPolicy: Always
ports:
- name: http-port
containerPort: 2480 # WEB port number.
- name: binary-port
containerPort: 2424
livenessProbe:
httpGet:
path: /
port: http-port
initialDelaySeconds: 60
timeoutSeconds: 30
readinessProbe:
httpGet:
path: /
port: http-port
initialDelaySeconds: 5
timeoutSeconds: 5
但我收到以下消息
Readiness probe errored: gzip: invalid header
Liveness probe errored: gzip: invalid header
如何修复 orient db 的就绪性和活性探测?
orientdb web 应用程序在端口 2480 returns 压缩 HTTP 响应,所以你应该添加自定义 HTTP 头来支持你的 httpGet
livenessProbe 和 readinessProbe:
livenessProbe:
httpGet:
path: /
port: http-port
httpHeaders:
- name: Accept-Encoding
value: gzip
initialDelaySeconds: 60
timeoutSeconds: 30
readinessProbe:
httpGet:
path: /
port: http-port
httpHeaders:
- name: Accept-Encoding
value: gzip
initialDelaySeconds: 5
timeoutSeconds: 5