odo icon indicating copy to clipboard operation
odo copied to clipboard

Use odo with OpenShift Service Mesh (aka Istio)

Open dudash opened this issue 5 years ago • 7 comments

[kind/Feature]

Which functionality do you think we should add?

I think it'd be great to have the ability to use odo in conjunction with Istio/OpenShift Service Mesh. Service Mesh requires an annotation on the DeploymentConfigs created for each component. This is in order for the platform to inject a sidecar container with each pod. (spec/template/metadata/annotations of sidecar.istio.io/inject: "true").

See ref docs here: https://docs.openshift.com/container-platform/4.3/service_mesh/service_mesh_day_two/prepare-to-deploy-applications-ossm.html#ossm-automatic-sidecar-injection_deploying-applications-ossm

Additionally, Services that get created should have port names that follow the naming listed here (for full support of routing and metrics): https://istio.io/docs/ops/configuration/traffic-management/protocol-selection/ e.g.

  spec:
    ports:
    - port: 8080
      targetPort: 8080
      name: http

Why is this needed?

To allow odo to be used in conjunction with OpenShift Service Mesh

dudash avatar Feb 20 '20 23:02 dudash

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

openshift-bot avatar Jun 09 '20 16:06 openshift-bot

Can we keep this open? I think it's still important.

dudash avatar Jun 11 '20 21:06 dudash

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten /remove-lifecycle stale

openshift-bot avatar Jul 12 '20 00:07 openshift-bot

/lifecycle frozen

dudash avatar Jul 24 '20 14:07 dudash

Can we keep this open? I think it's still important.

Yes, sorry about not following up on that. This is definitely something that we want to get to. Now we are finishing our transition to using Devfiles as a common format to describe the development environment. We will look into this right after we finish this transition

kadel avatar Jul 31 '20 14:07 kadel

Being able to use annotations with odo would also be useful for dapr.io which also uses a sidecar.

faysou avatar Oct 03 '21 04:10 faysou

Devfile API was just updated to allow specifying annotations. (https://github.com/devfile/api/pull/661) Before we can levarege this in odo we still need to wait for github.com/devfile/library to implement it.

kadel avatar Nov 03 '21 07:11 kadel