Add HealthCheck for KubernetesCRD ExternalName services
This commit is contained in:
parent
c0a2e6b4b6
commit
7fc56454ea
13 changed files with 885 additions and 22 deletions
|
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: test.route
|
||||
namespace: default
|
||||
|
||||
spec:
|
||||
entryPoints:
|
||||
- foo
|
||||
|
||||
routes:
|
||||
- match: Host(`foo.com`) && PathPrefix(`/foo`)
|
||||
kind: Rule
|
||||
priority: 12
|
||||
|
||||
services:
|
||||
- name: external-svc
|
||||
port: 443
|
||||
healthCheck:
|
||||
path: /health
|
||||
interval: 15s
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: test.route
|
||||
namespace: default
|
||||
|
||||
spec:
|
||||
entryPoints:
|
||||
- foo
|
||||
|
||||
routes:
|
||||
- match: Host(`foo.com`) && PathPrefix(`/foo`)
|
||||
kind: Rule
|
||||
priority: 12
|
||||
|
||||
services:
|
||||
- name: external-svc
|
||||
port: 443
|
||||
healthCheck:
|
||||
path: /health1
|
||||
interval: 15s
|
||||
- name: whoami2
|
||||
port: 443
|
||||
healthCheck:
|
||||
path: /health3
|
||||
interval: 30s
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: test.route
|
||||
namespace: default
|
||||
|
||||
spec:
|
||||
entryPoints:
|
||||
- foo
|
||||
|
||||
routes:
|
||||
- match: Host(`foo.com`) && PathPrefix(`/foo`)
|
||||
kind: Rule
|
||||
priority: 12
|
||||
|
||||
services:
|
||||
- name: external-svc
|
||||
port: 443
|
||||
healthCheck:
|
||||
path: /health1
|
||||
interval: 15s
|
||||
- name: external-svc-with-https
|
||||
port: 443
|
||||
healthCheck:
|
||||
path: /health2
|
||||
interval: 20s
|
||||
Loading…
Add table
Add a link
Reference in a new issue