forked from kuberhealthy/kuberhealthy
-
Notifications
You must be signed in to change notification settings - Fork 4
/
ssl-ca-expiry-check.yaml
30 lines (30 loc) · 1006 Bytes
/
ssl-ca-expiry-check.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
apiVersion: comcast.github.io/v1
kind: KuberhealthyCheck
metadata:
name: ssl-expiry
namespace: kuberhealthy
spec:
runInterval: 24h
timeout: 15m
podSpec:
containers:
- env:
# Domain name env variable must be updated to the domain on which you wish to check the SSL for
- name: DOMAIN_NAME
value: "corporate.comcast.com"
# If not using default SSL port of 443, port name env variable must be updated
- name: PORT
value: "443"
# Number of days until certificate expiration to test for
- name: DAYS
value: "60"
# Set INSECURE to "false" for CA issued certificates. If "false", a TLS handshake will be performed during the expiry check.
- name: INSECURE
value: "false"
image: kuberhealthy/ssl-expiry-check:v3.2.0
imagePullPolicy: IfNotPresent
name: main
resources:
requests:
cpu: 10m
memory: 50Mi