Compare commits
2 Commits
v0.8.1
...
105bc71e9c
Author | SHA1 | Date | |
---|---|---|---|
105bc71e9c | |||
a6d6e91ffa |
@ -64,8 +64,8 @@ data:
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
[ $(curl -kLs -w "%{http_code}" -o /dev/null https://$URL) != 200 ] && {
|
[[ $(getent hosts $URL) ]] || {
|
||||||
echo 'Could not connect to' $URL
|
echo 'Could not resolve' $URL
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,18 +60,25 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/bash
|
||||||
- -c
|
- -c
|
||||||
- "/opt/update.sh -u {{ .Values.sidecar.targetUrl }}"
|
- "/opt/update.sh -u {{ .Values.sidecar.targetUrl }}"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: {{ .Release.Name }}-configmap
|
- name: {{ .Release.Name }}-configmap
|
||||||
mountPath: /opt/update.sh
|
mountPath: /opt/update.sh
|
||||||
subPath: update.sh
|
subPath: update.sh
|
||||||
defaultMode: 0744
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: {{ .Release.Name }}-configmap
|
- name: {{ .Release.Name }}-configmap
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ .Release.Name }}-configmap
|
name: {{ .Release.Name }}-configmap
|
||||||
|
items:
|
||||||
|
- key: db.json
|
||||||
|
path: db.json
|
||||||
|
- key: index.html
|
||||||
|
path: index.html
|
||||||
|
- key: update.sh
|
||||||
|
path: update.sh
|
||||||
|
mode: 0744
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
Reference in New Issue
Block a user