-
Notifications
You must be signed in to change notification settings - Fork 303
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
GCE Ingress creates a Network Endpoint Group with 0 configured #832
Comments
@rramkumar1 adding the deployment config as requested - apiVersion: apps/v1
kind: Deployment
metadata:
name: mgmt
namespace: riscale-test
spec:
replicas: 1
selector:
matchLabels:
app: mgmt
template:
metadata:
labels:
app: mgmt
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: cloud.google.com/gke-nodepool
operator: In
values:
- default-pool
restartPolicy: Always
containers:
- name: mgmt
image: eu.gcr.io/riscale/mgmt
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: 50m
memory: 10Mi
limits:
cpu: 150m
memory: 50Mi
ports:
- name: mgmt-port
containerPort: 8080
readinessProbe:
httpGet:
path: /m/health
port: mgmt-port
initialDelaySeconds: 2
periodSeconds: 15
successThreshold: 2
failureThreshold: 4
livenessProbe:
httpGet:
path: /m/health
port: mgmt-port
periodSeconds: 15
failureThreshold: 4
envFrom:
- configMapRef:
name: common-config
- configMapRef:
name: service-discovery
- configMapRef:
name: postgres-config
- configMapRef:
name: mongo-config
- secretRef:
name: rethinkdb-secrets
- secretRef:
name: postgres-secrets
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/mgmt-kms-encrypt.json
volumeMounts:
- name: google-cloud-key
mountPath: /var/secrets/google
readOnly: true
volumes:
- name: google-cloud-key
secret:
secretName: mgmt-kms-encrypt-secret |
We are suffering exactly same issue. |
After changing targetPort to port number, ingress works now, but we found PODs in a zone never get ready, we deployed our PODs in a,b,c zone, in this case, b zone POD got the issue. READINESS GATES show 0/1 and the endpoint did not be added in service, also deployment rolling update never completed.
UPDATES, |
Okay. I think I uncover the problem. Will add a fix and e2e test for this. |
GCE Ingress creates a network endpoint group with 0 configured, when setting targetPort name instead of the actual number.
This config will not work and will essentially create a useless network endpoint group, which doesn't recognise the pods.
However, when changing the
targetPort
to 8080, the network endpoint group will recognise the running pods.This was a tough bug to catch :-(
The text was updated successfully, but these errors were encountered: