add proxy environment variables to k8s-cluster flux
This commit is contained in:
parent
c7e2c28d6d
commit
1ce673153d
@ -1,5 +1,25 @@
|
|||||||
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- gotk-components.yaml
|
- gotk-components.yaml
|
||||||
- gotk-sync.yaml
|
- gotk-sync.yaml
|
||||||
|
patches:
|
||||||
|
- patch: |
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: all
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: manager
|
||||||
|
env:
|
||||||
|
- name: "https_proxy"
|
||||||
|
value: "http://proxy-lb.lab.kill0.net:3128"
|
||||||
|
- name: "no_proxy"
|
||||||
|
value: ".svc, 10.0.0.0/8, 127.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, k8s-ctrl-lb.lab.kill0.net, localhost"
|
||||||
|
target:
|
||||||
|
kind: Deployment
|
||||||
|
labelSelector: app.kubernetes.io/part-of=flux
|
||||||
|
Loading…
x
Reference in New Issue
Block a user