forked from datreeio/datree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add 5 new probe rules (datreeio#690)
* feat: add 5 new probe rules * feat: fix titles * feat: fix titles * add tests * revise failure message * fix rule titles
- Loading branch information
Showing
12 changed files
with
631 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: k8s-probes | ||
labels: | ||
app: nginx | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: nginx | ||
template: | ||
metadata: | ||
labels: | ||
app: nginx | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx | ||
ports: | ||
- containerPort: 80 | ||
readinessProbe: | ||
initialDelaySeconds: 0 | ||
periodSeconds: 2 | ||
timeoutSeconds: 1 | ||
successThreshold: 1 | ||
failureThreshold: 1 | ||
exec: | ||
command: | ||
- cat | ||
- /etc/nginx/nginx.conf | ||
startupProbe: | ||
timeoutSeconds: 1 | ||
failureThreshold: 2 |
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,35 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: k8s-probes | ||
labels: | ||
app: nginx | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: nginx | ||
template: | ||
metadata: | ||
labels: | ||
app: nginx | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx | ||
ports: | ||
- containerPort: 80 | ||
readinessProbe: | ||
initialDelaySeconds: 0 | ||
periodSeconds: 2 | ||
timeoutSeconds: 1 | ||
successThreshold: 1 | ||
failureThreshold: 1 | ||
exec: | ||
command: | ||
- cat | ||
- /etc/nginx/nginx.conf | ||
startupProbe: | ||
timeoutSeconds: 1 | ||
failureThreshold: 2 | ||
initialDelaySeconds: 0 |
Oops, something went wrong.