apiVersion: v1
kind: Pod
metadata:
  name: "{{ .Release.Name }}-available-externally"
  annotations:
    "helm.sh/hook": test
spec:
  containers:
    - name: available-externally
      image: curlimages/curl
      command: ['curl']
      args:
      - --fail
      - --write-out 
      - '%{http_code}' 
      - --silent 
      - --output 
      - /dev/null 
      - -X
      - POST
      - -H
      - "Content-Type: application/json"
      - --data 
      - '{ "jsonrpc": "2.0", "method": "Filecoin.ChainHead", "params": [], "id": 1 }'
      - 'https://{{ .Values.ingress.host }}/{{ .Release.Name }}/lotus/rpc/v0'
  restartPolicy: Never
