You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicecomb.apache.org by Xiaoliang Tian <xi...@gmail.com> on 2018/09/12 07:38:12 UTC

[DISCUSS]ServiceComb Injector

I am hoping service comb can leverage kubernetes webhookmutating to
automatically inject sc, apollo, zipkin, prom, etc,  related config into
java chassis runtime

all user need to do is use k8s annotation to tell it is writen in java
chassis, for example

*serviceomb.io/framework <http://serviceomb.io/framework>: java-chassis*

then developer never need to consider about the env-related things in this
k8s cluster. to let developer focus more on coding


our team wrote a sidecar for servicemesh already, same pattern can apply to
framework
https://github.com/go-mesh/sidecar-injector

Re: [DISCUSS]ServiceComb Injector

Posted by Xiaoliang Tian <xi...@gmail.com>.
that is a the procedure if user depoy app by k8s spec file with only a
special annotation    "*serviceomb.io/framework
<http://serviceomb.io/framework>: java-chassis*"

*roles:*
servicecomb injector
k8s API server
kubectl
app written in java chassis


kubectl create   k8s spec file  ---> spec hijacked by injector --->
injector rewrote this spec(injector sc address, for example) ---> call k8s
API server to deploy



Willem Jiang <wi...@gmail.com> 于2018年9月12日周三 下午3:51写道:

> It looks like a configuration loader from my side.
> Can you show me more detail about that?
>
> Willem Jiang
>
> Twitter: willemjiang
> Weibo: 姜宁willem
>
> On Wed, Sep 12, 2018 at 3:48 PM Xiaoliang Tian <xi...@gmail.com>
> wrote:
> >
> > sidecar injector is for service mesh pattern only, it inject a new
> > container in this pod
> >
> > for java chassis, it is another story.
> >
> > I am taking about another kind of injector, say servicecomb-injector
> >
> > it just injects java chassis configurations, for example like sc, zipkin,
> > prom address, nothing else. then developer don't need to care about those
> > infrastructures
> >
> > Willem Jiang <wi...@gmail.com> 于2018年9月12日周三 下午3:44写道:
> >
> > > What we need to do on the framework side.
> > > AFAIK, application doesn't need to know anything about the sidecar, as
> > > the network traffic is hijacked by the injector. Am I right?
> > >
> > > Willem Jiang
> > >
> > > Twitter: willemjiang
> > > Weibo: 姜宁willem
> > >
> > > On Wed, Sep 12, 2018 at 3:38 PM Xiaoliang Tian <
> xiaoliang.tian@gmail.com>
> > > wrote:
> > > >
> > > > I am hoping service comb can leverage kubernetes webhookmutating to
> > > > automatically inject sc, apollo, zipkin, prom, etc,  related config
> into
> > > > java chassis runtime
> > > >
> > > > all user need to do is use k8s annotation to tell it is writen in
> java
> > > > chassis, for example
> > > >
> > > > *serviceomb.io/framework <http://serviceomb.io/framework>:
> java-chassis*
> > > >
> > > > then developer never need to consider about the env-related things in
> > > this
> > > > k8s cluster. to let developer focus more on coding
> > > >
> > > >
> > > > our team wrote a sidecar for servicemesh already, same pattern can
> apply
> > > to
> > > > framework
> > > > https://github.com/go-mesh/sidecar-injector
> > >
>

Re: [DISCUSS]ServiceComb Injector

Posted by Willem Jiang <wi...@gmail.com>.
It looks like a configuration loader from my side.
Can you show me more detail about that?

Willem Jiang

Twitter: willemjiang
Weibo: 姜宁willem

On Wed, Sep 12, 2018 at 3:48 PM Xiaoliang Tian <xi...@gmail.com> wrote:
>
> sidecar injector is for service mesh pattern only, it inject a new
> container in this pod
>
> for java chassis, it is another story.
>
> I am taking about another kind of injector, say servicecomb-injector
>
> it just injects java chassis configurations, for example like sc, zipkin,
> prom address, nothing else. then developer don't need to care about those
> infrastructures
>
> Willem Jiang <wi...@gmail.com> 于2018年9月12日周三 下午3:44写道:
>
> > What we need to do on the framework side.
> > AFAIK, application doesn't need to know anything about the sidecar, as
> > the network traffic is hijacked by the injector. Am I right?
> >
> > Willem Jiang
> >
> > Twitter: willemjiang
> > Weibo: 姜宁willem
> >
> > On Wed, Sep 12, 2018 at 3:38 PM Xiaoliang Tian <xi...@gmail.com>
> > wrote:
> > >
> > > I am hoping service comb can leverage kubernetes webhookmutating to
> > > automatically inject sc, apollo, zipkin, prom, etc,  related config into
> > > java chassis runtime
> > >
> > > all user need to do is use k8s annotation to tell it is writen in java
> > > chassis, for example
> > >
> > > *serviceomb.io/framework <http://serviceomb.io/framework>: java-chassis*
> > >
> > > then developer never need to consider about the env-related things in
> > this
> > > k8s cluster. to let developer focus more on coding
> > >
> > >
> > > our team wrote a sidecar for servicemesh already, same pattern can apply
> > to
> > > framework
> > > https://github.com/go-mesh/sidecar-injector
> >

Re: [DISCUSS]ServiceComb Injector

Posted by Xiaoliang Tian <xi...@gmail.com>.
sidecar injector is for service mesh pattern only, it inject a new
container in this pod

for java chassis, it is another story.

I am taking about another kind of injector, say servicecomb-injector

it just injects java chassis configurations, for example like sc, zipkin,
prom address, nothing else. then developer don't need to care about those
infrastructures

Willem Jiang <wi...@gmail.com> 于2018年9月12日周三 下午3:44写道:

> What we need to do on the framework side.
> AFAIK, application doesn't need to know anything about the sidecar, as
> the network traffic is hijacked by the injector. Am I right?
>
> Willem Jiang
>
> Twitter: willemjiang
> Weibo: 姜宁willem
>
> On Wed, Sep 12, 2018 at 3:38 PM Xiaoliang Tian <xi...@gmail.com>
> wrote:
> >
> > I am hoping service comb can leverage kubernetes webhookmutating to
> > automatically inject sc, apollo, zipkin, prom, etc,  related config into
> > java chassis runtime
> >
> > all user need to do is use k8s annotation to tell it is writen in java
> > chassis, for example
> >
> > *serviceomb.io/framework <http://serviceomb.io/framework>: java-chassis*
> >
> > then developer never need to consider about the env-related things in
> this
> > k8s cluster. to let developer focus more on coding
> >
> >
> > our team wrote a sidecar for servicemesh already, same pattern can apply
> to
> > framework
> > https://github.com/go-mesh/sidecar-injector
>

Re: [DISCUSS]ServiceComb Injector

Posted by Willem Jiang <wi...@gmail.com>.
What we need to do on the framework side.
AFAIK, application doesn't need to know anything about the sidecar, as
the network traffic is hijacked by the injector. Am I right?

Willem Jiang

Twitter: willemjiang
Weibo: 姜宁willem

On Wed, Sep 12, 2018 at 3:38 PM Xiaoliang Tian <xi...@gmail.com> wrote:
>
> I am hoping service comb can leverage kubernetes webhookmutating to
> automatically inject sc, apollo, zipkin, prom, etc,  related config into
> java chassis runtime
>
> all user need to do is use k8s annotation to tell it is writen in java
> chassis, for example
>
> *serviceomb.io/framework <http://serviceomb.io/framework>: java-chassis*
>
> then developer never need to consider about the env-related things in this
> k8s cluster. to let developer focus more on coding
>
>
> our team wrote a sidecar for servicemesh already, same pattern can apply to
> framework
> https://github.com/go-mesh/sidecar-injector