Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new destinationrule generation breaks ISTIO_MUTUAL tls #205

Closed
ghost opened this issue Jun 14, 2019 · 0 comments
Closed

new destinationrule generation breaks ISTIO_MUTUAL tls #205

ghost opened this issue Jun 14, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 14, 2019

When deploying istio with global MTLS enabled, a destinationrule is created in the istio-system namespace that enables MTLS for *.local.

apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"networking.istio.io/v1alpha3","kind":"DestinationRule","metadata":{"annotations":{},"labels":{"app":"security","chart":"security","heritage":"Tiller","release":"istio"},"name":"default","namespace":"istio-system"},"spec":{"host":"*.local","trafficPolicy":{"tls":{"mode":"ISTIO_MUTUAL"}}}}
  creationTimestamp: "2019-04-02T03:00:12Z"
  generation: 1
  labels:
    app: security
    chart: security
    heritage: Tiller
    release: istio
  name: default
  namespace: istio-system
  resourceVersion: "59457681"
  selfLink: /apis/networking.istio.io/v1alpha3/namespaces/istio-system/destinationrules/default
  uid: 6ecd30a4-54f3-11e9-8fb4-0e7290ce94ea
spec:
  host: '*.local'
  trafficPolicy:
    tls:
      mode: ISTIO_MUTUAL

This means we need to specify ISTIO_MUTUAL in the canary spec:

   trafficPolicy:
     loadBalancer:
       simple: LEAST_CONN
     tls:
       mode: ISTIO_MUTUAL

Maybe we want this documented somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants