github.com/smartcontractkit/chainlink-testing-framework/libs@v0.0.0-20240227141906-ec710b4eb1a3/charts/geth/templates/geth-deployment.yml (about)

     1  apiVersion: apps/v1
     2  kind: StatefulSet
     3  metadata:
     4    name: geth
     5  spec:
     6    serviceName: {{ .Release.Name }}
     7    volumeClaimTemplates:
     8    - metadata:
     9        name: geth
    10      spec:
    11        accessModes:
    12        - ReadWriteOnce
    13        resources:
    14          requests:
    15            storage: {{ .Values.geth.capacity }}
    16    replicas: {{ .Values.replicas }}
    17    selector:
    18      matchLabels:
    19        app: geth
    20        release: {{ .Release.Name }}
    21    template:
    22      metadata:
    23        labels:
    24          app: geth
    25          release: {{ .Release.Name }}
    26        annotations:
    27          {{- range $key, $value := .Values.podAnnotations }}
    28          {{ $key }}: {{ $value | quote }}
    29          {{- end }}
    30      spec:
    31        restartPolicy: Always
    32        volumes:
    33        - name: configmap-volume
    34          configMap:
    35            name: geth-cm
    36        containers:
    37        - name: geth-network
    38          image: "{{ .Values.geth.image.image }}:{{ .Values.geth.image.version }}"
    39          command: [ "sh", "./root/init.sh" ]
    40          volumeMounts: 
    41          - name: geth
    42            mountPath: /root/.ethereum/devchain/
    43          - name : configmap-volume
    44            mountPath: /root/init.sh
    45            subPath: init.sh
    46          - name: configmap-volume
    47            mountPath: /root/config
    48          - name: configmap-volume
    49            mountPath: /root/.ethereum/devchain/keystore/key1
    50            subPath: key1
    51          - name: configmap-volume
    52            mountPath: /root/.ethereum/devchain/keystore/key2
    53            subPath: key2
    54          - name: configmap-volume
    55            mountPath: /root/.ethereum/devchain/keystore/key3
    56            subPath: key3
    57          args:
    58            - '--dev'
    59            - '--password'
    60            - '/root/config/password.txt'
    61            - '--datadir'
    62            - '/root/.ethereum/devchain'
    63            - '--unlock'
    64            - '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266'
    65            - '--unlock'
    66            - '0x70997970C51812dc3A010C7d01b50e0d17dc79C8'
    67            - '--unlock'
    68            - '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC'
    69            - '--mine'
    70            - '--miner.etherbase'
    71            - '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266'
    72            - '--ipcdisable'
    73            - '--http'
    74            - '--http.vhosts'
    75            - '*'
    76            - '--http.addr'
    77            - '0.0.0.0'
    78            - '--http.port=8544'
    79            - '--ws'
    80            - '--ws.origins'
    81            - '*'
    82            - '--ws.addr'
    83            - '0.0.0.0'
    84            - '--ws.port=8546'
    85            - '--graphql'
    86            - '-graphql.corsdomain'
    87            - '*'
    88            - '--allow-insecure-unlock'
    89            - '--rpc.allow-unprotected-txs'
    90            - '--http.corsdomain'
    91            - '*'
    92            - '--vmdebug'
    93            - '--networkid={{ .Values.geth.networkid }}'
    94            - '--rpc.txfeecap'
    95            - '0'
    96            - '--dev.period'
    97            - '{{ .Values.geth.blocktime }}'
    98            - '--miner.threads'
    99            - '1'
   100            - '--miner.gasprice'
   101            - '10000000000'
   102            - '--miner.gastarget'
   103            - '80000000000'
   104          ports:
   105          - name: http-rpc
   106            containerPort: 8544
   107          - name: ws-rpc
   108            containerPort: 8546
   109          resources:
   110            requests:
   111              memory: {{ .Values.resources.requests.memory }}
   112              cpu: {{ .Values.resources.requests.cpu }}
   113            limits:
   114              memory: {{ .Values.resources.limits.memory }}
   115              cpu: {{ .Values.resources.limits.cpu }}
   116  {{- with .Values.nodeSelector }}
   117        nodeSelector:
   118  {{ toYaml . | indent 8 }}
   119  {{- end }}
   120  {{- with .Values.affinity }}
   121        affinity:
   122  {{ toYaml . | indent 8 }}
   123  {{- end }}
   124  {{- with .Values.tolerations }}
   125        tolerations:
   126  {{ toYaml . | indent 8 }}
   127  {{- end }}