Skip to content

Commit

Permalink
added Phobos K8s services back (#23)
Browse files Browse the repository at this point in the history
* added Phobos K8s services back

* fixed pricing infra
  • Loading branch information
Aaronontheweb authored May 27, 2019
1 parent 7152dc1 commit 320ce6a
Show file tree
Hide file tree
Showing 4 changed files with 244 additions and 3 deletions.
159 changes: 159 additions & 0 deletions k8s/jaeger-all-in-one.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
#
# Copyright 2017-2019 The Jaeger Authors
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under
# the License.
#

apiVersion: v1
kind: List
items:
- apiVersion: extensions/v1beta1
kind: Deployment
metadata:
namespace: akka-cqrs
name: jaeger
labels:
app: jaeger
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: all-in-one
spec:
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: jaeger
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: all-in-one
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "16686"
spec:
containers:
- env:
- name: COLLECTOR_ZIPKIN_HTTP_PORT
value: "9411"
image: jaegertracing/all-in-one
name: jaeger
ports:
- containerPort: 5775
protocol: UDP
- containerPort: 6831
protocol: UDP
- containerPort: 6832
protocol: UDP
- containerPort: 5778
protocol: TCP
- containerPort: 16686
protocol: TCP
- containerPort: 9411
protocol: TCP
readinessProbe:
httpGet:
path: "/"
port: 14269
initialDelaySeconds: 5
- apiVersion: v1
kind: Service
metadata:
namespace: akka-cqrs
name: jaeger-query
labels:
app: jaeger
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: query
spec:
ports:
- name: query-http
port: 8881
protocol: TCP
targetPort: 16686
selector:
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: all-in-one
type: LoadBalancer
- apiVersion: v1
kind: Service
metadata:
namespace: akka-cqrs
name: jaeger-collector
labels:
app: jaeger
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: collector
spec:
ports:
- name: jaeger-collector-tchannel
port: 14267
protocol: TCP
targetPort: 14267
- name: jaeger-collector-http
port: 14268
protocol: TCP
targetPort: 14268
- name: jaeger-collector-zipkin
port: 9411
protocol: TCP
targetPort: 9411
selector:
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: all-in-one
type: ClusterIP
- apiVersion: v1
kind: Service
metadata:
namespace: akka-cqrs
name: jaeger-agent
labels:
app: jaeger
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: agent
spec:
ports:
- name: agent-zipkin-thrift
port: 5775
protocol: UDP
targetPort: 5775
- name: agent-compact
port: 6831
protocol: UDP
targetPort: 6831
- name: agent-binary
port: 6832
protocol: UDP
targetPort: 6832
- name: agent-configs
port: 5778
protocol: TCP
targetPort: 5778
clusterIP: None
selector:
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: all-in-one
- apiVersion: v1
kind: Service
metadata:
name: zipkin
labels:
app: jaeger
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: zipkin
spec:
ports:
- name: jaeger-collector-zipkin
port: 9411
protocol: TCP
targetPort: 9411
clusterIP: None
selector:
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: all-in-one
8 changes: 8 additions & 0 deletions k8s/pricing-web-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ spec:
value: "$(POD_NAME).pricing-web"
- name: CLUSTER_SEEDS
value: akka.tcp://AkkaTrader@pricing-0.pricing:5110,akka.tcp://AkkaTrader@pricing-1.pricing:5110,akka.tcp://AkkaTrader@pricing-2.pricing:5110
- name: ENABLE_PHOBOS
value: "true"
- name: STATSD_PORT
value: "8125"
- name: STATSD_URL
value: "statsd-agent"
- name: JAEGER_AGENT_HOST
value: "jaeger-agent"
livenessProbe:
tcpSocket:
port: 16666
Expand Down
75 changes: 75 additions & 0 deletions k8s/statsd-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
apiVersion: v1
kind: Service
metadata:
name: statsd-agent
namespace: akka-cqrs
labels:
app: statsd
spec:
ports:
- port: 8125
name: statsd-agent
protocol: UDP
- port: 8126
name: statsd-agent2
protocol: TCP
- port: 2003
name: graphite-1
protocol: TCP
- port: 2004
name: graphite-2
protocol: TCP
selector:
app: statsd
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
namespace: akka-cqrs
name: graphite-http
labels:
app: statsd
spec:
ports:
- name: query-http
port: 8080
protocol: TCP
targetPort: 80
selector:
app: statsd
type: LoadBalancer
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
namespace: akka-cqrs
name: statsd
labels:
app: statsd
spec:
replicas: 1
template:
metadata:
labels:
app: statsd
spec:
containers:
- name: statsd
image: graphiteapp/graphite-statsd
ports:
- containerPort: 80
protocol: TCP
- containerPort: 8125
protocol: UDP
- containerPort: 8126
protocol: TCP
- containerPort: 2003
protocol: TCP
- containerPort: 2004
protocol: TCP
readinessProbe:
httpGet:
path: "/"
port: 80
initialDelaySeconds: 5
5 changes: 2 additions & 3 deletions src/Akka.CQRS.Infrastructure/Akka.CQRS.Infrastructure.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
</ItemGroup>

<ItemGroup Condition="'$(Configuration)' == 'Phobos'">
<!-- Uncomment these to install Phobos binaries -->
<!--<PackageReference Include="Phobos.Actor.Cluster" Version="$(PhobosVersion)" />
<PackageReference Include="Phobos.Actor.Cluster" Version="$(PhobosVersion)" />
<PackageReference Include="Phobos.Tracing.Jaeger" Version="$(PhobosTracingVersion)" />
<PackageReference Include="Phobos.Monitoring.StatsD" Version="$(PhobosMonitoringVersion)" />-->
<PackageReference Include="Phobos.Monitoring.StatsD" Version="$(PhobosMonitoringVersion)" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 320ce6a

Please sign in to comment.