Translation blog-2018-egress-tcp (#2410)

Keep consistent with the latest version
This commit is contained in:
flydragon 2018-08-27 15:50:57 +08:00 committed by istio-bot
parent 3876c74cd2
commit 6a4296bd71
1 changed files with 4 additions and 5 deletions

View File

@ -211,20 +211,19 @@ keywords: [流量管理,egress,tcp]
{{< text bash >}}
$ cat <<EOF | kubectl apply -f -
apiVersion: networking.istio.io/v1alpha3 $MYSQL_DB_PORT
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
name: mysql-external
spec:
hosts:
- $MYSQL_DB_HOST
addresses:
addresses:
- $MYSQL_DB_IP/32
ports:
ports:
- name: tcp
number: $MYSQL_DB_PORT
protocol: tcp
protocol: tcp
location: MESH_EXTERNAL
EOF
{{< /text >}}