I am using a pure client that is not listening on a service, and needs to talk to a service on the mesh. Does consul connect support pure-clients that are not listening on some port?
I had a simple client that freezes when deployed with CSM:
apiVersion: apps/v1
kind: Deployment
metadata:
name: pydgraph-client
spec:
replicas: 1
selector:
matchLabels:
app: pydgraph-client
template:
metadata:
annotations:
consul.hashicorp.com/connect-inject: "true"
consul.hashicorp.com/transparent-proxy: "true"
labels:
app: pydgraph-client
spec:
containers:
- env:
- name: DGRAPH_ALPHA_SERVER
value: dgraph-dgraph-alpha.dgraph.svc.cluster.local
image: darknerd/pydgraph-client
name: pydgraph-client
After 3 hours, the containers (init and side car) have not yet be injected:
NAME READY STATUS RESTARTS AGE
pod/pydgraph-client-85b788bb79-pwp7w 0/2 Pending 0 3h6m
I opened a bug for this at: Injection fails and freezes on pure clients w/o service specified · Issue #1528 · hashicorp/consul-k8s · GitHub