add healthz check (#286)
* add healthz check Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * add testing Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
@@ -19,3 +19,9 @@ spec:
|
||||
args: ["-c", "config.yml", "-e", "redis", "--redis-addr", "redis:6379"]
|
||||
ports:
|
||||
- containerPort: 8088
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 8088
|
||||
initialDelaySeconds: 3
|
||||
periodSeconds: 3
|
||||
|
||||
@@ -7,12 +7,14 @@ metadata:
|
||||
app: gorush
|
||||
tier: frontend
|
||||
spec:
|
||||
selector:
|
||||
app: gorush
|
||||
tier: frontend
|
||||
# if your cluster supports it, uncomment the following to automatically create
|
||||
# an external load-balanced IP for the frontend service.
|
||||
type: LoadBalancer
|
||||
# type: NodePort
|
||||
ports:
|
||||
- port: 8088
|
||||
selector:
|
||||
app: gorush
|
||||
tier: frontend
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 8088
|
||||
|
||||
Reference in New Issue
Block a user