Skip to content

Commit

Permalink
fix CHECK_URL in kuberhealthy checks to respect namespaces (#2779)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcmcand authored Oct 22, 2024
2 parents ccb8b7e + 40a74ec commit eb0c01f
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ spec:
image: kuberhealthy/http-check:v1.5.0
imagePullPolicy: IfNotPresent
env:
- name: CHECK_URL
value: "http://nebari-conda-store-server.dev:5000"
- name: COUNT #### default: "0"
value: "5"
- name: SECONDS #### default: "0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ spec:
image: kuberhealthy/http-check:v1.5.0
imagePullPolicy: IfNotPresent
env:
- name: CHECK_URL
value: "http://hub.dev:8081"
- name: COUNT #### default: "0"
value: "5"
- name: SECONDS #### default: "0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ spec:
image: kuberhealthy/http-check:v1.5.0
imagePullPolicy: IfNotPresent
env:
- name: CHECK_URL
value: "http://keycloak-http.dev"
- name: COUNT #### default: "0"
value: "5"
- name: SECONDS #### default: "0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,31 @@ patches:
- op: replace
path: /metadata/namespace
value: "{{ namespace }}"
- target:
kind: KuberhealthyCheck
name: conda-store-http-check
patch: |-
- op: add
path: /spec/podSpec/containers/0/env/-
value:
name: CHECK_URL
value: "http://nebari-conda-store-server.{{ namespace }}:5000"
- target:
kind: KuberhealthyCheck
name: jupyterhub-http-check
patch: |-
- op: add
path: /spec/podSpec/containers/0/env/-
value:
name: CHECK_URL
value: "http://
hub.{{ namespace }}:8081"
- target:
kind: KuberhealthyCheck
name: keycloak-http-check
patch: |-
- op: add
path: /spec/podSpec/containers/0/env/-
value:
name: CHECK_URL
value: "http://keycloak-http.{{ namespace }}"

0 comments on commit eb0c01f

Please sign in to comment.