github.com/smartcontractkit/chainlink-testing-framework/libs@v0.0.0-20240227141906-ec710b4eb1a3/charts/geth-non-root/templates/geth-deployment.yml (about) 1 {{ if (hasKey .Values "geth") }} 2 apiVersion: apps/v1 3 kind: Deployment 4 metadata: 5 name: geth 6 spec: 7 selector: 8 matchLabels: 9 app: geth 10 # Used for testing. 11 # havoc-component-group and havoc-network-group are used by "havoc" chaos testing tool 12 havoc-component-group: "blockchain" 13 havoc-network-group: "blockchain" 14 release: {{ .Release.Name }} 15 template: 16 metadata: 17 labels: 18 app: geth 19 # Used for testing. 20 # havoc-component-group and havoc-network-group are used by "havoc" chaos testing tool 21 havoc-component-group: "blockchain" 22 havoc-network-group: "blockchain" 23 release: {{ .Release.Name }} 24 annotations: 25 {{- range $key, $value := .Values.podAnnotations }} 26 {{ $key }}: {{ $value | quote }} 27 {{- end }} 28 spec: 29 volumes: 30 - name: configmap-volume 31 configMap: 32 name: geth-cm 33 - name: devchain-volume 34 emptyDir: {} 35 securityContext: 36 {{- toYaml $.Values.geth.podSecurityContext | nindent 8 }} 37 containers: 38 - name: geth-network 39 securityContext: 40 {{- toYaml $.Values.geth.securityContext | nindent 12 }} 41 image: "{{ default "ethereum/client-go" .Values.geth.image }}:{{ default "stable" .Values.geth.version }}" 42 command: [ "sh", "/chain/init.sh" ] 43 volumeMounts: 44 - name: devchain-volume 45 mountPath: /chain/chain-data 46 - name : configmap-volume 47 mountPath: /chain/genesis.json 48 subPath: genesis.json 49 - name : configmap-volume 50 mountPath: /chain/init.sh 51 subPath: init.sh 52 - name: configmap-volume 53 mountPath: /chain/config 54 args: 55 - '--password' 56 - '/chain/config/password.txt' 57 - '--datadir' 58 - '/chain/chain-data/' 59 - '--unlock' 60 - '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266' 61 - '--mine' 62 - '--miner.etherbase' 63 - '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266' 64 - '--ipcdisable' 65 - '--http.api' 66 - 'admin,debug,clique,eth,miner,net,personal,txpool,web3' 67 - '--http' 68 - '--http.vhosts' 69 - '*' 70 - '--http.addr' 71 - '0.0.0.0' 72 - '--http.port=8544' 73 - '--ws' 74 - '--ws.origins' 75 - '*' 76 - '--ws.addr' 77 - '0.0.0.0' 78 - '--ws.port=8546' 79 - '--graphql' 80 - '-graphql.corsdomain' 81 - '*' 82 - '--allow-insecure-unlock' 83 - '--rpc.allow-unprotected-txs' 84 - '--http.corsdomain' 85 - '*' 86 - '--vmdebug' 87 - '--networkid={{ .Values.geth.networkId }}' 88 - '--rpc.txfeecap' 89 - '0' 90 - '--dev.period' 91 - '{{ .Values.geth.blocktime }}' 92 - '--miner.gasprice' 93 - '10000000000' 94 ports: 95 - name: http-rpc 96 containerPort: 8544 97 - name: ws-rpc 98 containerPort: 8546 99 {{ if (hasKey .Values.geth "resources") }} 100 resources: 101 requests: 102 memory: {{ default "1024Mi" .Values.geth.resources.requests.memory }} 103 cpu: {{ default "1000m" .Values.geth.resources.requests.cpu }} 104 limits: 105 memory: {{ default "1024Mi" .Values.geth.resources.limits.memory }} 106 cpu: {{ default "1000m" .Values.geth.resources.limits.cpu }} 107 {{ else }} 108 {{ end }} 109 {{- with .Values.nodeSelector }} 110 nodeSelector: 111 {{ toYaml . | indent 8 }} 112 {{- end }} 113 {{- with .Values.affinity }} 114 affinity: 115 {{ toYaml . | indent 8 }} 116 {{- end }} 117 {{- with .Values.tolerations }} 118 tolerations: 119 {{ toYaml . | indent 8 }} 120 {{- end }} 121 {{ end }}