Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit feb9915

Browse files
authored
Merge pull request #95 from dlipovetsky/readinessprobe-httpget
Use `httpGet` readiness probe for proxy Pod
2 parents 182fa79 + 9d65e78 commit feb9915

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

demo/manifests/components/kube-oidc-proxy.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ local READINESS_PORT = 8080;
104104
},
105105

106106
readinessProbe: {
107-
tcpSocket: { port: READINESS_PORT },
107+
httpGet: { path: '/ready', port: READINESS_PORT },
108108
initialDelaySeconds: 15,
109109
periodSeconds: 10,
110110
},

demo/yaml/kube-oidc-proxy.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ spec:
3434
- containerPort: 443
3535
- containerPort: 8080
3636
readinessProbe:
37-
tcpSocket:
37+
httpGet:
38+
path: /ready
3839
port: 8080
39-
initialDelaySeconds: 5
40+
initialDelaySeconds: 15
4041
periodSeconds: 10
4142
name: kube-oidc-proxy
4243
command: ["kube-oidc-proxy"]

0 commit comments

Comments
 (0)