Created
February 18, 2020 15:33
-
-
Save ncracker/2c37f5b820f3423c46ac98c5f922a6fd to your computer and use it in GitHub Desktop.
This file contains hidden or 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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: myApp | |
spec: | |
replicas: 2 | |
template: | |
metadata: | |
name: myApp | |
labels: | |
app: myApp | |
spec: | |
containers: | |
- name: myApp | |
image: myCorp/myApp:latest | |
ports: | |
- protocol: TCP | |
containerPort: 8080 | |
- name: datadog-agent | |
image: datadog/agent:7 | |
imagePullPolicy: Always | |
ports: | |
- protocol: TCP | |
containerPort: 8126 | |
env: | |
- name: DD_API_KEY | |
value: <DD_API_KEY> | |
- name: DD_HOSTNAME | |
valueFrom: | |
fieldRef: | |
fieldPath: spec.nodeName | |
- name: DD_PROCESS_AGENT_ENABLED | |
value: False | |
- name: DD_APM_ENABLED | |
value: True | |
- name: DD_LOGS_ENABLED | |
value: True | |
- name: DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL | |
value: True | |
resources: | |
requests: | |
memory: "256Mi" | |
cpu: "200m" | |
limits: | |
memory: "256Mi" | |
cpu: "200m" | |
livenessProbe: | |
httpGet: | |
path: /health | |
port: 5555 | |
initialDelaySeconds: 15 | |
periodSeconds: 15 | |
timeoutSeconds: 5 | |
successThreshold: 1 | |
failureThreshold: 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment