github.com/smartcontractkit/chainlink-testing-framework/libs@v0.0.0-20240227141906-ec710b4eb1a3/charts/geth-reorg/templates/bootnode.deployment.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: {{ template "ethereum.fullname" . }}-bootnode-deployment 5 labels: 6 app: {{ template "ethereum.name" . }}-bootnode-deployment 7 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} 8 release: {{ .Release.Name }} 9 heritage: {{ .Release.Service }} 10 spec: 11 replicas: {{ .Values.bootnode.replicas }} 12 selector: 13 matchLabels: 14 app: {{ template "ethereum.name" . }}-bootnode 15 release: {{ .Release.Name }} 16 template: 17 metadata: 18 labels: 19 app: {{ template "ethereum.name" . }}-bootnode 20 release: {{ .Release.Name }} 21 annotations: 22 {{- range $key, $value := .Values.podAnnotations }} 23 {{ $key }}: {{ $value | quote }} 24 {{- end }} 25 spec: 26 containers: 27 - name: bootnode 28 image: {{ .Values.bootnode.image.repository }}:{{ .Values.bootnode.image.tag }} 29 imagePullPolicy: {{ .Values.imagePullPolicy }} 30 command: ["/bin/sh"] 31 args: 32 - "-c" 33 - "bootnode --nodekey=/etc/bootnode/node.key --verbosity=4" 34 volumeMounts: 35 - name: data 36 mountPath: /etc/bootnode 37 ports: 38 - name: discovery 39 containerPort: 30301 40 protocol: UDP 41 - name: bootnode-server 42 image: {{ .Values.bootnode.image.repository }}:{{ .Values.bootnode.image.tag }} 43 imagePullPolicy: {{.Values.imagePullPolicy}} 44 command: ["/bin/sh"] 45 args: 46 - "-c" 47 - "while [ 1 ]; do echo -e \"HTTP/1.1 200 OK\n\nenode://$(bootnode -writeaddress --nodekey=/etc/bootnode/node.key)@$(POD_IP):30301\" | nc -l -v -p 8080 || break; done;" 48 volumeMounts: 49 - name: data 50 mountPath: /etc/bootnode 51 env: 52 - name: POD_IP 53 valueFrom: 54 fieldRef: 55 fieldPath: status.podIP 56 ports: 57 - name: bootnode 58 containerPort: 8080 59 initContainers: 60 - name: genkey 61 image: {{ .Values.bootnode.image.repository }}:{{ .Values.bootnode.image.tag }} 62 imagePullPolicy: {{ .Values.imagePullPolicy }} 63 command: ["/bin/sh"] 64 args: 65 - "-c" 66 - "bootnode --genkey=/etc/bootnode/node.key" 67 volumeMounts: 68 - name: data 69 mountPath: /etc/bootnode 70 volumes: 71 - name: data 72 emptyDir: {} 73 {{- with .Values.nodeSelector }} 74 nodeSelector: 75 {{ toYaml . | indent 8 }} 76 {{- end }} 77 {{- with .Values.affinity }} 78 affinity: 79 {{ toYaml . | indent 8 }} 80 {{- end }} 81 {{- with .Values.tolerations }} 82 tolerations: 83 {{ toYaml . | indent 8 }} 84 {{- end }}