Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add extra container for sidecar uploader #926

Merged
merged 11 commits into from
Jul 26, 2024
Prev Previous commit
Next Next commit
revert
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
  • Loading branch information
JeffreyDallas committed Jul 16, 2024
commit 5d677e787a7a2b6a1102b1e4c181a8a1cdc709d9
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ spec:
- name: {{ default $defaults.nameOverride $haproxy.nameOverride }}
image: {{ include "fullstack.container.image" (dict "image" $haproxy.image "Chart" $.Chart "defaults" $defaults ) }}
imagePullPolicy: {{ include "fullstack.images.pullPolicy" (dict "image" $haproxy.image "defaults" $defaults ) }}
livenessProbe:
httpGet:
path: /v2/services/haproxy/stats/native?type=backend
port: 5555
readinessProbe:
httpGet:
path: /v2/services/haproxy/stats/native?type=backend
port: 5555
startupProbe:
exec:
command:
Expand All @@ -62,7 +70,7 @@ spec:
}
probe() {
jq_check || return 1
wget -q -O response.json --header "Authorization: Basic $(echo -n "admin:{{ $.Values.global.haproxy_password }}" | base64)" http://localhost:5555/v2/services/haproxy/stats/native?type=backend || return 1
wget -q -O response.json --header "Authorization: Basic $(echo -n "admin:{{ $.Values.global.haproxy_password }}")" http://localhost:5555/v2/services/haproxy/stats/native?type=backend || return 1
BACKEND_STATUS=$(jq -r '.[] | .stats[] | select(.name == "http_backend") | .stats.status' < response.json)
echo "http_backend status: $BACKEND_STATUS"
if [ "$BACKEND_STATUS" = "UP" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Secret
metadata:
name: haproxy-secrets
type: Opaque
data:
haproxy_user: {{ $username | b64enc }}
haproxy_password: {{ $password | b64enc }}
stringData:
haproxy_user: {{ $username }}
haproxy_password: {{ $password }}
---