Skip to content

Instantly share code, notes, and snippets.

@gotwarlost
Created May 5, 2019 20:23
Show Gist options
  • Save gotwarlost/a2947cf86460f1fa0243d9f0044f000e to your computer and use it in GitHub Desktop.
Save gotwarlost/a2947cf86460f1fa0243d9f0044f000e to your computer and use it in GitHub Desktop.
envoy sidecar errors when a service maps 2 service ports to the same container port
apiVersion: v1
kind: Namespace
metadata:
name: twosvcports
labels:
istio-injection: enabled
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: twosvcports
namespace: twosvcports
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: twosvcports
namespace: twosvcports
labels:
app: twosvcports
spec:
selector:
matchLabels:
app: twosvcports
template:
metadata:
labels:
app: twosvcports
spec:
serviceAccountName: twosvcports
containers:
- name: twosvcports
image: gotwarlost/istio-test:latest
ports:
- containerPort: 8080
name: http
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: multiport
namespace: twosvcports
labels:
app: multi
spec:
ports:
- name: http-external
port: 80
targetPort: 8080
protocol: TCP
- name: http-internal
port: 8080
targetPort: 8080
protocol: TCP
selector:
app: twosvcports
$ kc logs twosvcports-79d97f79fb-94gvz -c istio-proxy
...
2019-05-05T20:16:00.929216Z	info	Envoy proxy is NOT ready: 2 errors occurred:

* failed checking application ports. listeners="0.0.0.0:15090"
* envoy missing listener for inbound application port: 8080

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment