Uploaded image for project: 'OpenShift Service Mesh'
  1. OpenShift Service Mesh
  2. OSSM-8194

Istio Pilot - Update container working dir to match upstream

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Major Major
    • OSSM 3.0-TP2
    • OSSM 3.0-TP1
    • Sail Operator
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      The OSSM pilot image has `/tmp` as it's working directory in contrast to upstream which has `/` as it's working directory.

      This has consequences for 1. Custom Root Certs which affects multi-cluster and 2. istio-csr / certmanager integration. Pilot expects certificates to be mounted at `./<path-to-cert>`. See https://github.com/istio/istio/blob/226f8b845d37b354a21eb2373fa5a6951f2b5ac3/pkg/config/constants/constants.go#L26-L33 and https://istio.io/latest/docs/reference/commands/pilot-discovery/#envvars --> ROOT_CA_DIR defaults. Without manually specifying overrides, both these integrations do not work when you are using the OSSM pilot image.

      You can specify overrides for these though like so:

      ```

          pilot:
            env:
              ENABLE_CA_SERVER: "false"
              ROOT_CA_DIR: /etc/cacerts
            volumeMounts:
              - mountPath: /tmp/var/run/secrets/istiod/tls
                name: istio-csr-dns-cert
                readOnly: true
            volumes:
              - name: istio-csr-dns-cert
                secret:
                  optional: true
                  secretName: istiod-tls

      ```

              asmigala@redhat.com Andrej Smigala
              nfox@redhat.com Nick Fox
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: