Skip to content

Commit

Permalink
switch to downstream API and env var for Envoy's --service-cluster an…
Browse files Browse the repository at this point in the history
…d --service-node flags

Signed-off-by: Steve Sloka <[email protected]>
  • Loading branch information
stevesloka authored and davecheney committed Jul 31, 2019
1 parent ed817b4 commit f442a9b
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 14 deletions.
15 changes: 13 additions & 2 deletions examples/deployment-grpc-v2/02-contour.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,20 @@ spec:
command: ["envoy"]
args:
- --config-path /config/contour.json
- --service-cluster cluster0
- --service-node node0
- --service-cluster $(CONTOUR_NAMESPACE)
- --service-node $(ENVOY_POD_NAME)
- --log-level info
env:
- name: CONTOUR_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: ENVOY_POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
readinessProbe:
httpGet:
path: /healthz
Expand Down
15 changes: 13 additions & 2 deletions examples/ds-grpc-v2/02-contour.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,20 @@ spec:
command: ["envoy"]
args:
- --config-path /config/contour.json
- --service-cluster cluster0
- --service-node node0
- --service-cluster $(CONTOUR_NAMESPACE)
- --service-node $(ENVOY_POD_NAME)
- --log-level info
env:
- name: CONTOUR_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: ENVOY_POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
readinessProbe:
httpGet:
path: /healthz
Expand Down
18 changes: 14 additions & 4 deletions examples/ds-hostnet-split/03-envoy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,25 @@ spec:
- args:
- -c
- /config/contour.json
- --service-cluster
- cluster0
- --service-node
- node0
- --service-cluster $(CONTOUR_NAMESPACE)
- --service-node $(ENVOY_POD_NAME)
- --log-level info
command:
- envoy
image: docker.io/envoyproxy/envoy:v1.10.0
imagePullPolicy: IfNotPresent
name: envoy
env:
- name: CONTOUR_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: ENVOY_POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
ports:
- containerPort: 80
hostPort: 80
Expand Down
15 changes: 13 additions & 2 deletions examples/ds-hostnet/02-contour.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,20 @@ spec:
command: ["envoy"]
args:
- --config-path /config/contour.json
- --service-cluster cluster0
- --service-node node0
- --service-cluster $(CONTOUR_NAMESPACE)
- --service-node $(ENVOY_POD_NAME)
- --log-level info
env:
- name: CONTOUR_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: ENVOY_POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
readinessProbe:
httpGet:
path: /healthz
Expand Down
15 changes: 13 additions & 2 deletions examples/render/daemonset-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,20 @@ spec:
command: ["envoy"]
args:
- --config-path /config/contour.json
- --service-cluster cluster0
- --service-node node0
- --service-cluster $(CONTOUR_NAMESPACE)
- --service-node $(ENVOY_POD_NAME)
- --log-level info
env:
- name: CONTOUR_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: ENVOY_POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
readinessProbe:
httpGet:
path: /healthz
Expand Down
15 changes: 13 additions & 2 deletions examples/render/deployment-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,20 @@ spec:
command: ["envoy"]
args:
- --config-path /config/contour.json
- --service-cluster cluster0
- --service-node node0
- --service-cluster $(CONTOUR_NAMESPACE)
- --service-node $(ENVOY_POD_NAME)
- --log-level info
env:
- name: CONTOUR_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: ENVOY_POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
readinessProbe:
httpGet:
path: /healthz
Expand Down

0 comments on commit f442a9b

Please sign in to comment.