github.com/smartcontractkit/chainlink-testing-framework/libs@v0.0.0-20240227141906-ec710b4eb1a3/charts/schema-registry/templates/deployment.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: {{ include "schema-registry.fullname" . }} 5 spec: 6 replicas: {{ .Values.replicaCount }} 7 selector: 8 matchLabels: 9 {{- include "schema-registry.selectorLabels" . | nindent 6 }} 10 template: 11 metadata: 12 {{- with .Values.podAnnotations }} 13 annotations: 14 {{- toYaml . | nindent 8 }} 15 {{- end }} 16 labels: 17 {{- include "schema-registry.selectorLabels" . | nindent 8 }} 18 spec: 19 containers: 20 - name: {{ .Chart.Name }} 21 env: 22 {{- range $key, $value := .Values.env }} 23 {{- if $value }} 24 - name: {{ $key | upper}} 25 {{- if kindIs "string" $value}} 26 value: {{ $value | quote}} 27 {{- else }} 28 value: {{ $value }} 29 {{- end }} 30 {{- end }} 31 {{- end }} 32 image: {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }} 33 imagePullPolicy: {{ .Values.image.pullPolicy }} 34 ports: 35 - name: http 36 containerPort: 8081 37 livenessProbe: 38 httpGet: 39 path: / 40 port: http 41 initialDelaySeconds: 1 42 periodSeconds: 5 43 readinessProbe: 44 httpGet: 45 path: / 46 port: http 47 initialDelaySeconds: 1 48 periodSeconds: 5 49 startupProbe: 50 httpGet: 51 path: / 52 port: http 53 initialDelaySeconds: 35 54 periodSeconds: 5 55 failureThreshold: 20 56 resources: 57 {{- toYaml .Values.resources | nindent 12 }} 58 {{- with .Values.nodeSelector }} 59 nodeSelector: 60 {{ toYaml . | indent 8 }} 61 {{- end }} 62 {{- with .Values.affinity }} 63 affinity: 64 {{ toYaml . | indent 8 }} 65 {{- end }} 66 {{- with .Values.tolerations }} 67 tolerations: 68 {{ toYaml . | indent 8 }} 69 {{- end }}