-
Notifications
You must be signed in to change notification settings - Fork 991
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from stefanprodan/jaeger
Add X-Ray, Jaeger and Datadog tracing to App Mesh Inject
- Loading branch information
Showing
13 changed files
with
444 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: v2 | ||
name: appmesh-jaeger | ||
description: AWS App Mesh Jaeger Helm chart for Kubernetes | ||
type: application | ||
version: 0.1.0 | ||
appVersion: 1.14.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
AWS App Mesh Jaeger installed! | ||
Jaeger UI port: 16686 | ||
Jaeger Zipkin port: 9411 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "appmesh-jaeger.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
If release name contains chart name it will be used as a full name. | ||
*/}} | ||
{{- define "appmesh-jaeger.fullname" -}} | ||
{{- if .Values.fullnameOverride -}} | ||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- else -}} | ||
{{- $name := default .Chart.Name .Values.nameOverride -}} | ||
{{- if contains $name .Release.Name -}} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" -}} | ||
{{- else -}} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "appmesh-jaeger.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "appmesh-jaeger.labels" -}} | ||
app.kubernetes.io/name: {{ include "appmesh-jaeger.name" . }} | ||
helm.sh/chart: {{ include "appmesh-jaeger.chart" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create the name of the service account to use | ||
*/}} | ||
{{- define "appmesh-jaeger.serviceAccountName" -}} | ||
{{- if .Values.serviceAccount.create -}} | ||
{{ default (include "appmesh-jaeger.fullname" .) .Values.serviceAccount.name }} | ||
{{- else -}} | ||
{{ default "default" .Values.serviceAccount.name }} | ||
{{- end -}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{- if .Values.serviceAccount.create }} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ template "appmesh-jaeger.serviceAccountName" . }} | ||
labels: | ||
{{ include "appmesh-jaeger.labels" . | indent 4 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ template "appmesh-jaeger.fullname" . }} | ||
labels: | ||
{{ include "appmesh-jaeger.labels" . | indent 4 }} | ||
spec: | ||
replicas: {{ .Values.replicaCount }} | ||
strategy: | ||
type: Recreate | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: {{ include "appmesh-jaeger.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: {{ include "appmesh-jaeger.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
annotations: | ||
prometheus.io/scrape: "true" | ||
prometheus.io/port: "14269" | ||
spec: | ||
serviceAccountName: {{ include "appmesh-jaeger.serviceAccountName" . }} | ||
volumes: | ||
- name: data | ||
{{- if .Values.persistentVolumeClaim.claimName }} | ||
persistentVolumeClaim: | ||
claimName: {{ .Values.persistentVolumeClaim.claimName }} | ||
{{- else }} | ||
emptyDir: {} | ||
{{- end }} | ||
containers: | ||
- name: {{ .Chart.Name }} | ||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" | ||
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
ports: | ||
# agent: accept zipkin.thrift over compact thrift protocol (deprecated, used by legacy clients only) | ||
- containerPort: 5775 | ||
protocol: UDP | ||
# agent: accept jaeger.thrift over compact thrift protocol | ||
- containerPort: 6831 | ||
protocol: UDP | ||
# agent: accept jaeger.thrift over binary thrift protocol | ||
- containerPort: 6832 | ||
protocol: UDP | ||
# collector: Zipkin compatible endpoint | ||
- containerPort: 9411 | ||
protocol: TCP | ||
# query: serve frontend | ||
- containerPort: 16686 | ||
protocol: TCP | ||
# agent: serve configs | ||
- containerPort: 5778 | ||
protocol: TCP | ||
# collector: accept jaeger.thrift directly from clients | ||
- containerPort: 14268 | ||
protocol: TCP | ||
# collector: Health Check server | ||
- containerPort: 14269 | ||
protocol: TCP | ||
env: | ||
- name: MEMORY_MAX_TRACES | ||
value: "{{ .Values.memory.maxTraces }}" | ||
- name: COLLECTOR_ZIPKIN_HTTP_PORT | ||
value: "9411" | ||
- name: BADGER_EPHEMERAL | ||
value: "false" | ||
- name: SPAN_STORAGE_TYPE | ||
value: "badger" | ||
- name: BADGER_DIRECTORY_VALUE | ||
value: "/badger/data" | ||
- name: BADGER_DIRECTORY_KEY | ||
value: "/badger/key" | ||
- name: QUERY_BASE_PATH | ||
value: /jaeger | ||
livenessProbe: | ||
httpGet: | ||
path: / | ||
port: 14269 | ||
readinessProbe: | ||
httpGet: | ||
path: / | ||
port: 14269 | ||
volumeMounts: | ||
- name: data | ||
mountPath: /badger | ||
resources: | ||
{{ toYaml .Values.resources | indent 12 }} | ||
{{- with .Values.nodeSelector }} | ||
nodeSelector: | ||
{{ toYaml . | indent 8 }} | ||
{{- end }} | ||
{{- with .Values.affinity }} | ||
affinity: | ||
{{ toYaml . | indent 8 }} | ||
{{- end }} | ||
{{- with .Values.tolerations }} | ||
tolerations: | ||
{{ toYaml . | indent 8 }} | ||
{{- end }} |
Oops, something went wrong.