Last active
September 5, 2018 19:21
-
-
Save masroorhasan/e33285add25f82b22bb633ec0caac4ba to your computer and use it in GitHub Desktop.
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: myapp-deployment | |
namespace: default | |
labels: | |
app: myapp | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: | |
app: myapp | |
template: | |
metadata: | |
labels: | |
app: myapp | |
spec: | |
containers: | |
- name: myapp | |
image: masroorhasan/myapp | |
ports: | |
- containerPort: 80 | |
env: | |
- name: JAEGER_SERVICE_NAME | |
value: myapp | |
- name: JAEGER_AGENT_HOST # NOTE: Point to the Agent daemon on the Node | |
valueFrom: | |
fieldRef: | |
fieldPath: status.hostIP | |
- name: JAEGER_AGENT_PORT | |
value: "6831" | |
resources: | |
limits: | |
memory: 500M | |
cpu: 250m | |
requests: | |
memory: 500M | |
cpu: 250m | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: DaemonSet | |
metadata: | |
name: jaeger-agent | |
namespace: monitoring | |
labels: | |
app: jaeger | |
jaeger-infra: agent-daemonset | |
spec: | |
template: | |
metadata: | |
labels: | |
app: jaeger | |
jaeger-infra: agent-instance | |
spec: | |
hostNetwork: true # NOTE: Agent is configured to have same IP as the host/node | |
dnsPolicy: ClusterFirstWithHostNet | |
containers: | |
- name: agent-instance | |
image: jaegertracing/jaeger-agent:1.6.0 | |
command: | |
- "/go/bin/agent-linux" | |
- "--collector.host-port=jaeger-collector.monitoring:14267" | |
- "--processor.jaeger-binary.server-queue-size=2000" | |
- "--discovery.conn-check-timeout=500ms" | |
ports: | |
- containerPort: 5775 | |
protocol: UDP | |
- containerPort: 6831 | |
protocol: UDP | |
hostPort: 6831 | |
- containerPort: 6832 | |
protocol: UDP | |
- containerPort: 5778 | |
protocol: TCP | |
resources: | |
requests: | |
memory: 200M | |
cpu: 200m | |
limits: | |
memory: 200M | |
cpu: 200m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment