Your commit message

This commit is contained in:
zeaslity
2024-11-27 10:33:20 +08:00
commit 080c7bb97f
911 changed files with 168439 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
apiVersion: v1
kind: Pod
metadata:
name: {{ include "common.names.fullname" . }}-test
annotations:
"helm.sh/hook": test-success
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
spec:
containers:
- name: {{ .Release.Name }}-test
image: nginx:latest
command: ["sh", "-c", "curl -I -m 10 -o /dev/null -s -w %{http_code} http://$NACOS_SERVICE_HOST:$NACOS_SERVER_PORT/nacos/"]
env:
- name: NACOS_SERVER_PORT
value: "8848"
- name: NACOS_SERVICE_HOST
value: {{ include "common.names.fullname" . }}
restartPolicy: Never