Skip to content

Commit

Permalink
Update probe files
Browse files Browse the repository at this point in the history
  • Loading branch information
slashpai committed May 31, 2023
1 parent 7799b10 commit 096e024
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion probe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
kubectl apply -f ./static_target
```

- Refresh prometheus target page it should display probe ingress target
- Refresh prometheus target page it should display probe static target

![img](img/probe_static_target.png)

Expand Down
Binary file modified probe/img/probe_ingress.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified probe/img/sample_query.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions probe/ingress/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: example-app
name: example-app-ingress
namespace: default
labels:
app.kubernetes.io/name: example-app
app.kubernetes.io/name: example-app-ingress
spec:
replicas: 3
selector:
matchLabels:
app.kubernetes.io/name: example-app
app.kubernetes.io/name: example-app-ingress
template:
metadata:
labels:
app.kubernetes.io/name: example-app
app.kubernetes.io/name: example-app-ingress
spec:
containers:
- name: prometheus-example-app
Expand Down
6 changes: 3 additions & 3 deletions probe/ingress/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ metadata:
name: example-app-ingress
namespace: default
labels:
app.kubernetes.io/name: example-app
app.kubernetes.io/name: example-app-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
rules:
- host: example-app
- host: example-app-ingress.info
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: example-app
name: example-app-ingress
port:
number: 8080
2 changes: 1 addition & 1 deletion probe/ingress/probe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ spec:
ingress:
selector:
matchLabels:
app.kubernetes.io/name: example-app
app.kubernetes.io/name: example-app-ingress
6 changes: 3 additions & 3 deletions probe/ingress/service.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
kind: Service
apiVersion: v1
metadata:
name: example-app
name: example-app-ingress
namespace: default
labels:
app.kubernetes.io/name: example-app
app.kubernetes.io/name: example-app-ingress
spec:
selector:
app.kubernetes.io/name: example-app
app.kubernetes.io/name: example-app-ingress
type: NodePort
ports:
- name: web
Expand Down

0 comments on commit 096e024

Please sign in to comment.