Skip to content

Commit

Permalink
Merge pull request istio#158 from GregHanson/add_egress
Browse files Browse the repository at this point in the history
added egress proxy to istio install folder
  • Loading branch information
kyessenov authored Apr 25, 2017
2 parents 00921bb + d5b4e62 commit 56c6ed1
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions kubernetes/istio-install/istio-egress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
################################
# Istio egress envoy
################################
apiVersion: v1
kind: Service
metadata:
name: istio-egress
spec:
ports:
- port: 80
selector:
app: istio-egress
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: istio-egress
spec:
replicas: 1
template:
metadata:
labels:
app: istio-egress
spec:
containers:
- name: proxy
image: docker.io/istio/proxy:2017-04-24-23.54.11
imagePullPolicy: Always
args: ["proxy", "egress", "-v", "2"]
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
---
2 changes: 1 addition & 1 deletion tests/kubeUtils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function find_istio_endpoints() {
local endpoints=($(${K8CLI} get endpoints -n ${NAMESPACE} \
-o jsonpath='{.items[*].subsets[*].addresses[*].ip}'))
echo ${endpoints[@]}
[[ ${#endpoints[@]} -eq 3 ]] && return 0
[[ ${#endpoints[@]} -eq 4 ]] && return 0
return 1
}

Expand Down

0 comments on commit 56c6ed1

Please sign in to comment.