Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ansible/group_vars/alpha-api-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ volume_mounts:
path: /etc/ssl/docker
kind: configMap

tcp_readiness_probe_port: "{{ api_port }}"

api_base_container_envs:
- name: DOCKER_IMAGE_BUILDER_CACHE
value: "/home/anandkumarpatel/cache"
Expand Down
7 changes: 7 additions & 0 deletions ansible/roles/k8-deployment/templates/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ spec:
exec:
command: ["/bin/bash", "-c", "{{ post_start_command }}"]
{% endif %}
{% if tcp_readiness_probe_port is defined %}
readinessProbe:
tcpSocket:
port: {{ tcp_readiness_probe_port }}
initialDelaySeconds: 5
periodSeconds: 5
{% endif %}
{% if container_run_args != '' %}
args:
{% if advance_arg is defined and advance_arg == true %}
Expand Down