Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions config/helmchart/templates/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ spec:
{{- end }}
containers:
- args:
- --secure-listen-address=0.0.0.0:8443
- --upstream=http://127.0.0.1:8080/
- --secure-listen-address=0.0.0.0:{{ .Values.kube_rbac_proxy.securePort }}
- --upstream=http://127.0.0.1:{{ .Values.metricsPort }}/
- --logtostderr=true
- --tls-cert-file=/etc/certs/tls/tls.crt
- --tls-private-key-file=/etc/certs/tls/tls.key
- --v=0
image: "{{ .Values.kube_rbac_proxy.image.repository }}:{{ .Values.kube_rbac_proxy.image.tag }}"
name: kube-rbac-proxy
ports:
- containerPort: 8443
- containerPort: {{ .Values.kube_rbac_proxy.securePort }}
name: https
volumeMounts:
- mountPath: /etc/certs/tls
Expand All @@ -48,6 +48,8 @@ spec:
- /manager
args:
- --leader-elect
- --metrics-bind-address=0.0.0.0:{{ .Values.metricsPort }}
- --health-probe-bind-address=0.0.0.0:{{ .Values.healthProbePort }}
{{- with .Values.args }}
{{- toYaml . | nindent 8 }}
{{- end }}
Expand All @@ -70,15 +72,19 @@ spec:
livenessProbe:
httpGet:
path: /healthz
port: 8081
port: {{ .Values.healthProbePort }}
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /readyz
port: 8081
port: {{ .Values.healthProbePort }}
initialDelaySeconds: 5
periodSeconds: 10
{{- if .Values.hostNetwork }}
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions config/helmchart/values.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ tolerations: []
affinity: {}

kube_rbac_proxy:
securePort: 8443
image:
repository: quay.io/redhat-cop/kube-rbac-proxy
pullPolicy: IfNotPresent
Expand All @@ -43,5 +44,8 @@ kube_rbac_proxy:
cpu: 5m
memory: 64Mi

metricsPort: 8080
healthProbePort: 8081
hostNetwork: false
enableMonitoring: true
enableCertManager: false