first-commit

This commit is contained in:
zeaslity
2023-05-15 16:49:09 +08:00
commit 06cba6ca3c
816 changed files with 157018 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