Skip to content

Commit

Permalink
Improved Helm chart for kube-rbac-proxy image configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorbox committed Jun 18, 2021
1 parent a5d89b5 commit 3190cf4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
9 changes: 6 additions & 3 deletions config/helmchart/templates/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,17 @@ spec:
- --tls-cert-file=/etc/certs/tls/tls.crt
- --tls-private-key-file=/etc/certs/tls/tls.key
- --v=10
image: quay.io/coreos/kube-rbac-proxy:v0.5.0
image: "{{ .Values.kube_rbac_proxy.image.repository }}:{{ .Values.kube_rbac_proxy.image.tag | default "v0.5.0" }}"
name: kube-rbac-proxy
ports:
- containerPort: 8443
name: https
volumeMounts:
- mountPath: /etc/certs/tls
name: tls-cert
name: tls-cert
imagePullPolicy: {{ .Values.kube_rbac_proxy.image.pullPolicy }}
resources:
{{- toYaml .Values.kube_rbac_proxy.resources | nindent 10 }}
- command:
- /manager
args:
Expand All @@ -53,7 +56,7 @@ spec:
- name: KEEPALIVEDGROUP_TEMPLATE_FILE_NAME
value: /templates/keepalived-template.yaml
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- toYaml .Values.resources | nindent 10 }}
livenessProbe:
httpGet:
path: /healthz
Expand Down
10 changes: 10 additions & 0 deletions config/helmchart/values.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,13 @@ nodeSelector: {}
tolerations: []

affinity: {}

kube_rbac_proxy:
image:
repository: quay.io/coreos/kube-rbac-proxy
pullPolicy: IfNotPresent
tag: v0.5.0
resources:
requests:
cpu: 100m
memory: 20Mi

0 comments on commit 3190cf4

Please sign in to comment.