Skip to content

Commit 4ba22dc

Browse files
author
Myztiq
committed
Added readiness probe
1 parent 2d8c8f6 commit 4ba22dc

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

ansible/group_vars/alpha-api-base.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ volume_mounts:
1717
path: /etc/ssl/docker
1818
kind: configMap
1919

20+
http_readiness_probe_port: 80
21+
2022
api_base_container_envs:
2123
- name: DOCKER_IMAGE_BUILDER_CACHE
2224
value: "/home/anandkumarpatel/cache"

ansible/roles/k8-deployment/templates/deployment.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ spec:
3030
exec:
3131
command: ["/bin/bash", "-c", "{{ post_start_command }}"]
3232
{% endif %}
33+
{% if http_readiness_probe_port is defined %}
34+
readinessProbe:
35+
httpGet:
36+
path: /health
37+
port: {{ http_readiness_probe_port }}
38+
initialDelaySeconds: 5
39+
periodSeconds: 5
40+
{% endif %}
3341
{% if container_run_args != '' %}
3442
args:
3543
{% if advance_arg is defined and advance_arg == true %}

0 commit comments

Comments
 (0)