github.com/dominant-strategies/go-quai@v0.28.2/helm/templates/_statefulset.yaml (about)

     1  {{- define "go-quai.clusterIP" }}
     2  - name: prime-http
     3    port: <HTTP>
     4    protocol: TCP
     5    targetPort: <HTTP>
     6  - name: prime-ws
     7    port: <WS>
     8    protocol: TCP
     9    targetPort: <WS>
    10  - name: prime-disc
    11    port: <DISC>
    12    protocol: UDP
    13    targetPort: <DISC>
    14  {{- end }}
    15  {{- define "go-quai.statefulset" }}
    16  - image: {{ .Values.goQuai.image.name -}}:{{- .Values.goQuai.image.version }}
    17    imagePullPolicy: Always
    18    name: prime-go-quai
    19    command: ["./build/bin/go-quai", --$(NETWORK), "--logtostdout", "--verbosity", $(VERBOSITY), "--slices", $(SLICES), "--syncmode", "full", "--http", "--http.vhosts=*", "--ws", <MINER_ETHERBASE>, "--http.addr", "0.0.0.0", "--http.api", "eth,net,web3,quai,txpool,debug", "--ws.addr", "0.0.0.0", "--ws.api", "eth,net,web3,quai,txpool,debug", "--port", $(TCP_PORT), "--http.port", $(HTTP_PORT), "--ws.port", $(WS_PORT), "--ws.origins=*", "--http.corsdomain=*", "--gcmode", "archive", "--nonce", $(NONCE), <REGION>, <ZONE>, <SUB>, <DOM>]
    20    env:
    21    - name: COINBASE_ADDR
    22      valueFrom:
    23        secretKeyRef:
    24          name: {{ include "go-quai.name" $ }}
    25          key: PRIME_COINBASE_ADDR
    26    - name: NONCE
    27      valueFrom:
    28        secretKeyRef:
    29          name: {{ include "go-quai.name" $ }}
    30          key: NONCE
    31    - name: TCP_PORT
    32      value: "<DISC>"
    33    - name: HTTP_PORT
    34      value: "<HTTP>"
    35    - name: WS_PORT
    36      value: "<WS>"
    37    - name: NETWORK
    38      value: {{ .Values.goQuai.network }}
    39    - name: SLICES
    40      value: {{ squote .Values.goQuai.slices }}
    41    - name: VERBOSITY
    42      value: {{ quote .Values.goQuai.verbosity }}
    43    ports:
    44    - containerPort: <HTTP>
    45      name: prime-http
    46      protocol: TCP
    47    - containerPort: <WS>
    48      name: prime-ws
    49      protocol: TCP
    50    - containerPort: <DISC>
    51      name: prime-disc
    52      protocol: UDP
    53    volumeMounts:
    54    - mountPath: /root/.quai/
    55      name: {{ include "go-quai.name" $ }}
    56  {{- end }}