|
31 | 31 | - netcat |
32 | 32 | - -v |
33 | 33 | - -a |
34 | | - - $(DRYCC_MINIO_SERVICE_HOST):$(DRYCC_MINIO_SERVICE_PORT) |
| 34 | + - $(DRYCC_MINIO_ENDPOINT) |
| 35 | + {{- include "builder.envs" . | indent 8 }} |
35 | 36 | containers: |
36 | 37 | - name: drycc-builder |
37 | 38 | image: {{.Values.imageRegistry}}/{{.Values.imageOrg}}/builder:{{.Values.imageTag}} |
|
41 | 42 | name: ssh |
42 | 43 | - containerPort: 8092 |
43 | 44 | name: healthsrv |
44 | | -{{- if or (.Values.limitsCpu) (.Values.limitsMemory)}} |
45 | | - resources: |
46 | | - limits: |
47 | | -{{- if (.Values.limitsCpu) }} |
48 | | - cpu: {{.Values.limitsCpu}} |
49 | | -{{- end}} |
50 | | -{{- if (.Values.limitsMemory) }} |
51 | | - memory: {{.Values.limitsMemory}} |
52 | | -{{- end}} |
53 | | -{{- end}} |
54 | | - env: |
55 | | - # NOTE(bacongobbler): use drycc/registry_proxy to work around Docker --insecure-registry requirements |
56 | | - - name: "DRYCC_REGISTRY_PROXY_HOST" |
57 | | - value: "127.0.0.1" |
58 | | - - name: "DRYCC_REGISTRY_PROXY_PORT" |
59 | | - value: "{{ .Values.global.registryProxyPort }}" |
60 | | - - name: "HEALTH_SERVER_PORT" |
61 | | - value: "8092" |
62 | | - - name: "EXTERNAL_PORT" |
63 | | - value: "2223" |
64 | | - - name: BUILDER_STORAGE |
65 | | - value: "{{ .Values.global.storage }}" |
66 | | - - name: "DRYCC_REGISTRY_LOCATION" |
67 | | - value: "{{ .Values.global.registryLocation }}" |
68 | | - - name: "TTL_SECONDS_AFTER_FINISHED" |
69 | | - value: "{{ .Values.global.ttlSecondsAfterFinished }}" |
70 | | - # Set GIT_LOCK_TIMEOUT to number of minutes you want to wait to git push again to the same repository |
71 | | - - name: "GIT_LOCK_TIMEOUT" |
72 | | - value: "30" |
73 | | - - name: IMAGEBUILDER_IMAGE_PULL_POLICY |
74 | | - valueFrom: |
75 | | - configMapKeyRef: |
76 | | - name: imagebuilder-config |
77 | | - key: imagePullPolicy |
78 | | - # This var needs to be passed so that the minio client (https://github.com/minio/mc) will work in Alpine linux |
79 | | - - name: "DOCKERIMAGE" |
80 | | - value: "1" |
81 | | - - name: "DRYCC_DEBUG" |
82 | | - value: "false" |
83 | | - - name: "POD_NAMESPACE" |
84 | | - valueFrom: |
85 | | - fieldRef: |
86 | | - fieldPath: metadata.namespace |
87 | | - - name: DRYCC_BUILDER_KEY |
88 | | - valueFrom: |
89 | | - secretKeyRef: |
90 | | - name: builder-key-auth |
91 | | - key: builder-key |
92 | | -{{- if (.Values.builder_pod_node_selector) }} |
93 | | - - name: BUILDER_POD_NODE_SELECTOR |
94 | | - value: {{.Values.builder_pod_node_selector}} |
95 | | -{{- end}} |
| 45 | + {{- include "builder.limits" . | indent 8 }} |
| 46 | + {{- include "builder.envs" . | indent 8 }} |
96 | 47 | livenessProbe: |
97 | 48 | httpGet: |
98 | 49 | path: /healthz |
|
0 commit comments