Last active
October 29, 2019 08:51
-
-
Save thxCode/1a2463e7475367c24d2426fe91218160 to your computer and use it in GitHub Desktop.
Research yaml
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: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: probe-research | |
name: probe-research | |
spec: | |
selector: | |
matchLabels: | |
app: probe-research | |
template: | |
metadata: | |
labels: | |
app: probe-research | |
name: probe-research | |
spec: | |
affinity: | |
nodeAffinity: | |
requiredDuringSchedulingIgnoredDuringExecution: | |
nodeSelectorTerms: | |
- matchExpressions: | |
- key: beta.kubernetes.io/os | |
operator: In | |
values: | |
- linux | |
- matchExpressions: | |
- key: kubernetes.io/os | |
operator: In | |
values: | |
- linux | |
containers: | |
- name: fake-prometheus-agent | |
image: maiwj/curl | |
command: | |
- /bin/sh | |
- -c | |
- i=0; while :; do echo $i; let i++; sleep 1; done | |
tty: true | |
stdin: true | |
livenessProbe: | |
timeoutSeconds: 5 | |
httpGet: | |
# delay 10s to trigger timeout error | |
path: /delay/10 | |
port: 80 | |
scheme: HTTP | |
periodSeconds: 10 | |
successThreshold: 1 | |
failureThreshold: 2 | |
readinessProbe: | |
timeoutSeconds: 30 | |
httpGet: | |
path: /delay/20 | |
port: 80 | |
scheme: HTTP | |
successThreshold: 1 | |
failureThreshold: 1 | |
# set up the httpbin as Prometheus | |
- name: fake-prometheus | |
image: kennethreitz/httpbin | |
ports: | |
- containerPort: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment