![Stanislav Egorov](/assets/img/avatar_default.png)
New replacements provide ability to use proxy configuration for worker nodes and workload deployment. To use proxy the following env vars should be exported for the session when running phases: HTTP_PROXY, HTTPS_PROXY and NO_PROXY Make sure to define all of them, especially NO_PROXY. For example, without adding cluster IP addresses the deployment will fail. Change-Id: Id08126f77e0a9da31318f1a239c51a6c78a7c88e
64 lines
1.5 KiB
YAML
64 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: helm-operator
|
|
namespace: flux
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
name: helm-operator
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
prometheus.io/scrape: "true"
|
|
labels:
|
|
name: helm-operator
|
|
spec:
|
|
tolerations:
|
|
- key: node-role.kubernetes.io/master
|
|
effect: NoSchedule
|
|
containers:
|
|
- args:
|
|
- --enabled-helm-versions=v3
|
|
image: docker.io/fluxcd/helm-operator:1.2.0
|
|
imagePullPolicy: IfNotPresent
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 3030
|
|
initialDelaySeconds: 1
|
|
timeoutSeconds: 5
|
|
name: helm-operator
|
|
ports:
|
|
- containerPort: 3030
|
|
name: http
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 3030
|
|
initialDelaySeconds: 1
|
|
timeoutSeconds: 5
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 64Mi
|
|
env:
|
|
- name: http_proxy
|
|
value: REPLACEMENT_HTTP_PROXY
|
|
- name: https_proxy
|
|
value: REPLACEMENT_HTTPS_PROXY
|
|
- name: no_proxy
|
|
value: REPLACEMENT_NO_PROXY
|
|
serviceAccountName: helm-operator
|
|
# See https://github.com/fluxcd/flux/pull/2116
|
|
dnsPolicy: None
|
|
dnsConfig:
|
|
nameservers:
|
|
- 10.96.0.10
|
|
options:
|
|
- name: ndots
|
|
value: "1"
|