New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid HTTP port #441
Comments
Could you elaborate a bit more on this? Not sure if related but we introduced these changes regarding the port: |
Server:Docker |
Container StdoutPod yamlapiVersion: v1
kind: Pod
metadata:
labels:
app: cerebro
pod-template-hash: "6954484579"
name: cerebro-6954484579-kdnhj
spec:
containers:
- image: lmenezes/cerebro:0.9.0
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
httpGet:
path: /
port: 9000
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 2
name: cerebro
ports:
- containerPort: 9000
name: http
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /
port: 9000
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 2
timeoutSeconds: 2
resources:
limits:
cpu: 500m
memory: 800Mi
requests:
cpu: 100m
memory: 800Mi
securityContext:
capabilities: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-b4655
readOnly: true
dnsPolicy: ClusterFirst
enableServiceLinks: true
priority: 0
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 30 |
Can also confirm that 0.8.5 works, while 0.9.1 is giving the Invalid HTTP Port error. |
We experienced similar issue during upgrade to Cerebro 9.0 Root cause: Cerebro 9.0 introduced Kubernetes generates (by default) environment variables for services deployed in same namespace (see https://kubernetes.io/docs/concepts/services-networking/service/#environment-variables). When Cerebro starts, it execute
Work-around We identified 2 workarounds:
|
@vmercierfr - tried it with work-around #2 and can confirm this works fine with the 0.9.1 image.
|
Thx,it works. |
Thank you very much for the investigation @vmercierfr |
Invalid HTTP port: tcp://172.31.14.133:9000
when upgrade from 0.8.5 to 0.9.0.The text was updated successfully, but these errors were encountered: