Skip to content
This repository has been archived by the owner on May 18, 2020. It is now read-only.

Commit

Permalink
Use recommended labels (#113)
Browse files Browse the repository at this point in the history
Use recommended labels

Signed-off-by: Naseem Ullah <[email protected]>
  • Loading branch information
naseemkullah authored and jpkrohling committed Feb 22, 2019
1 parent 14f375e commit 39dc136
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 47 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ Assuming that your application is named `myapp` and the image is for it is `myna
spec:
selector:
matchLabels:
app: myapp
app.kubernetes.io/name: myapp
template:
metadata:
labels:
app: myapp
app.kubernetes.io/name: myapp
spec:
containers:
- image: mynamespace/hello-myimage
Expand Down
32 changes: 21 additions & 11 deletions all-in-one/jaeger-all-in-one-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ items:
- apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: jaeger-deployment
name: jaeger
labels:
app: jaeger
jaeger-infra: jaeger-deployment
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: all-in-one
spec:
replicas: 1
strategy:
Expand All @@ -30,7 +31,8 @@ items:
metadata:
labels:
app: jaeger
jaeger-infra: jaeger-pod
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: all-in-one
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "16686"
Expand Down Expand Up @@ -65,23 +67,26 @@ items:
name: jaeger-query
labels:
app: jaeger
jaeger-infra: jaeger-service
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: query
spec:
ports:
- name: query-http
port: 80
protocol: TCP
targetPort: 16686
selector:
jaeger-infra: jaeger-pod
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: all-in-one
type: LoadBalancer
- apiVersion: v1
kind: Service
metadata:
name: jaeger-collector
labels:
app: jaeger
jaeger-infra: collector-service
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: collector
spec:
ports:
- name: jaeger-collector-tchannel
Expand All @@ -97,15 +102,17 @@ items:
protocol: TCP
targetPort: 9411
selector:
jaeger-infra: jaeger-pod
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: all-in-one
type: ClusterIP
- apiVersion: v1
kind: Service
metadata:
name: jaeger-agent
labels:
app: jaeger
jaeger-infra: agent-service
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: agent
spec:
ports:
- name: agent-zipkin-thrift
Expand All @@ -126,14 +133,16 @@ items:
targetPort: 5778
clusterIP: None
selector:
jaeger-infra: jaeger-pod
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: all-in-one
- apiVersion: v1
kind: Service
metadata:
name: zipkin
labels:
app: jaeger
jaeger-infra: zipkin-service
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: zipkin
spec:
ports:
- name: jaeger-collector-zipkin
Expand All @@ -142,5 +151,6 @@ items:
targetPort: 9411
clusterIP: None
selector:
jaeger-infra: jaeger-pod
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: all-in-one

44 changes: 28 additions & 16 deletions jaeger-production-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ items:
name: jaeger-collector
labels:
app: jaeger
jaeger-infra: collector-deployment
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: collector
spec:
replicas: 1
strategy:
Expand All @@ -30,13 +31,14 @@ items:
metadata:
labels:
app: jaeger
jaeger-infra: collector-pod
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: collector
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "14268"
spec:
containers:
- image: jaegertracing/jaeger-collector:1.7.0
- image: jaegertracing/jaeger-collector:1.9.0
name: jaeger-collector
args: ["--config-file=/conf/collector.yaml"]
ports:
Expand Down Expand Up @@ -72,7 +74,8 @@ items:
name: jaeger-collector
labels:
app: jaeger
jaeger-infra: collector-service
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: collector
spec:
ports:
- name: jaeger-collector-tchannel
Expand All @@ -88,31 +91,35 @@ items:
protocol: TCP
targetPort: 9411
selector:
jaeger-infra: collector-pod
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: collector
type: ClusterIP
- apiVersion: v1
kind: Service
metadata:
name: zipkin
labels:
app: jaeger
jaeger-infra: zipkin-service
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: zipkin
spec:
ports:
- name: jaeger-collector-zipkin
port: 9411
protocol: TCP
targetPort: 9411
selector:
jaeger-infra: collector-pod
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: collector
type: ClusterIP
- apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: jaeger-query
labels:
app: jaeger
jaeger-infra: query-deployment
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: query
spec:
replicas: 1
strategy:
Expand All @@ -121,13 +128,14 @@ items:
metadata:
labels:
app: jaeger
jaeger-infra: query-pod
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: query
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "16686"
spec:
containers:
- image: jaegertracing/jaeger-query:1.7.0
- image: jaegertracing/jaeger-query:1.9.0
name: jaeger-query
args: ["--config-file=/conf/query.yaml"]
ports:
Expand Down Expand Up @@ -159,36 +167,40 @@ items:
name: jaeger-query
labels:
app: jaeger
jaeger-infra: query-service
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: query
spec:
ports:
- name: jaeger-query
port: 80
protocol: TCP
targetPort: 16686
selector:
jaeger-infra: query-pod
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: query
type: LoadBalancer
- apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: jaeger-agent
labels:
app: jaeger
jaeger-infra: agent-daemonset
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: agent
spec:
template:
metadata:
labels:
app: jaeger
jaeger-infra: agent-instance
app.kubernetes.io/name: jaeger
app.kubernetes.io/component: agent
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "5778"
spec:
containers:
- name: agent-instance
image: jaegertracing/jaeger-agent:1.7.0
- name: jaeger-agent
image: jaegertracing/jaeger-agent:1.9.0
args: ["--config-file=/conf/agent.yaml"]
volumeMounts:
- name: jaeger-configuration-volume
Expand Down
2 changes: 1 addition & 1 deletion production-elasticsearch/configmap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ metadata:
name: jaeger-configuration
labels:
app: jaeger
jaeger-infra: configuration
app.kubernetes.io/name: jaeger
data:
span-storage-type: elasticsearch
collector: |
Expand Down
22 changes: 15 additions & 7 deletions production-elasticsearch/elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,20 @@ items:
metadata:
name: elasticsearch
labels:
app: jaeger
jaeger-infra: elasticsearch-statefulset
app: elasticsearch
app.kubernetes.io/name: elasticsearch
app.kubernetes.io/component: storage-backend
app.kubernetes.io/part-of: jaeger
spec:
serviceName: elasticsearch
replicas: 1
template:
metadata:
labels:
app: jaeger-elasticsearch
jaeger-infra: elasticsearch-replica
app: elasticsearch
app.kubernetes.io/name: elasticsearch
app.kubernetes.io/component: storage-backend
app.kubernetes.io/part-of: jaeger
spec:
containers:
- name: elasticsearch
Expand Down Expand Up @@ -65,12 +69,16 @@ items:
metadata:
name: elasticsearch
labels:
app: jaeger
jaeger-infra: elasticsearch-service
app: elasticsearch
app.kubernetes.io/name: elasticsearch
app.kubernetes.io/component: storage-backend
app.kubernetes.io/part-of: jaeger
spec:
clusterIP: None
selector:
app: jaeger-elasticsearch
app.kubernetes.io/name: elasticsearch
app.kubernetes.io/component: storage-backend
app.kubernetes.io/part-of: jaeger
ports:
- port: 9200
name: elasticsearch
Expand Down
27 changes: 18 additions & 9 deletions production/cassandra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ items:
metadata:
name: cassandra
labels:
app: jaeger
name: jaeger-cassandra-service
jaeger-infra: cassandra-service
app: cassandra
app.kubernetes.io/name: cassandra
app.kubernetes.io/component: storage-backend
app.kubernetes.io/part-of: jaeger
spec:
ports:
- port: 7000
Expand All @@ -37,22 +38,28 @@ items:
name: thrift
clusterIP: None
selector:
app: cassandra
app.kubernetes.io/name: cassandra
app.kubernetes.io/component: storage-backend
app.kubernetes.io/part-of: jaeger
- apiVersion: "apps/v1beta1"
kind: StatefulSet
metadata:
name: cassandra
labels:
app: jaeger
jaeger-infra: cassandra-statefulset
app: cassandra
app.kubernetes.io/name: cassandra
app.kubernetes.io/component: storage-backend
app.kubernetes.io/part-of: jaeger
spec:
serviceName: cassandra
replicas: 3
template:
metadata:
labels:
app: cassandra
jaeger-infra: cassandra-replica
app.kubernetes.io/name: cassandra
app.kubernetes.io/component: storage-backend
app.kubernetes.io/part-of: jaeger
spec:
terminationGracePeriodSeconds: 1800
containers:
Expand Down Expand Up @@ -110,8 +117,10 @@ items:
metadata:
name: jaeger-cassandra-schema-job
labels:
app: jaeger
jaeger-infra: cassandra-schema-job
app: cassandra-schema
app.kubernetes.io/name: cassandra-schema
app.kubernetes.io/component: storage-backend
app.kubernetes.io/part-of: jaeger
spec:
activeDeadlineSeconds: 120
template:
Expand Down
2 changes: 1 addition & 1 deletion production/configmap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ metadata:
name: jaeger-configuration
labels:
app: jaeger
jaeger-infra: configuration
app.kubernetes.io/name: jaeger
data:
span-storage-type: cassandra
collector: |
Expand Down

0 comments on commit 39dc136

Please sign in to comment.