mirror of https://github.com/openkruise/charts.git
support extra env in manager DaemonSet (#25)
Now is possible to add extra environment variables in the manager DaemonSet. This allows for example to support corporate proxy when downloading images with ImagePullJob setting the HTTP_PROXY, HTTPS_PROXY, NO_PROXY env vars. Signed-off-by: Marco Geri <m.geri1974@gmail.com> Signed-off-by: Marco Geri <m.geri1974@gmail.com>
This commit is contained in:
parent
4cf0011744
commit
284394fd99
|
|
@ -21,3 +21,4 @@ sources:
|
|||
annotations:
|
||||
artifacthub.io/changes: |
|
||||
- "[Changed]: https://github.com/openkruise/kruise/blob/master/CHANGELOG.md"
|
||||
- "[Changed]: Support extra environment variables in the manager DaemonSet"
|
||||
|
|
@ -23,6 +23,7 @@ The following table lists the configurable parameters of the kruise chart and th
|
|||
| `manager.nodeAffinity` | Node affinity policy for kruise-manager pod | `{}` |
|
||||
| `manager.nodeSelector` | Node labels for kruise-manager pod | `{}` |
|
||||
| `manager.tolerations` | Tolerations for kruise-manager pod | `[]` |
|
||||
| `daemon.extraEnvs` | Extra environment variables that will be pass onto pods | `[]` |
|
||||
| `daemon.log.level` | Log level that kruise-daemon printed | `4` |
|
||||
| `daemon.port` | Port of metrics and healthz that kruise-daemon served | `10221` |
|
||||
| `daemon.pprofAddr` | Address of pprof served | `localhost:10222` |
|
||||
|
|
|
|||
|
|
@ -197,6 +197,9 @@ spec:
|
|||
fieldRef:
|
||||
apiVersion: v1
|
||||
fieldPath: spec.nodeName
|
||||
{{- if .Values.daemon.extraEnvs }}
|
||||
{{- toYaml .Values.daemon.extraEnvs | nindent 8 }}
|
||||
{{- end }}
|
||||
livenessProbe:
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
|
|
|
|||
|
|
@ -72,5 +72,17 @@ daemon:
|
|||
cpu: "0"
|
||||
memory: "0"
|
||||
|
||||
# Extra environment variables that will be pass onto pods.
|
||||
# For example, when the daemon is used behind a http proxy, you can set the proxy environment variables here.
|
||||
# This will be appended to the current 'env:' key. You can use any of the kubernetes env
|
||||
# syntax here.
|
||||
extraEnvs: []
|
||||
# - name: HTTP_PROXY
|
||||
# value: http://my-proxy:8080/
|
||||
# - name: HTTPS_PROXY
|
||||
# value: http://my-proxy:8080/
|
||||
# - name: NO_PROXY
|
||||
# value: localhost,0.0.0.0,127.0.0.1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,.svc,.cluster.local
|
||||
|
||||
serviceAccount:
|
||||
annotations: {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue