Istio導入時に注意した方がよいところ

事前準備

Istio導入の初期

ServiceのPort名の命名規則

kind: Service
apiVersion: v1
metadata:
name: foo
spec:
selector:
app: bar
ports:
- name: http-baz ← ココ
protocol: TCP
port: 80
targetPort: 9376
  • grpc
  • http
  • http2
  • https
  • mongo
  • redis
  • tcp
  • tls
  • udp

ServiceEntry

HeaderのHost

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: reviews-route
spec:
hosts:
- reviews.prod.svc.cluster.local
http:
- match:
- uri:
prefix: "/wpcatalog"
- uri:
prefix: "/consumercatalog"
rewrite:
uri: "/newcatalog"
route:
- destination:
host: reviews.prod.svc.cluster.local
subset: v2
- route:
- destination:
host: reviews.prod.svc.cluster.local
subset: v1

Job

annotations:
sidecar.istio.io/inject: "false"

最後に

--

--

--

Software engineer

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Takanori Ishibashi

Takanori Ishibashi

Software engineer

More from Medium

Telepresence

Breaking the Monolith

Noisy Neighbor antipattern