Skip to content

Commit

Permalink
Set TLS certificate for kube-rbac-proxy container
Browse files Browse the repository at this point in the history
Deprecation warnings by #187 for insecure connection without TLS
  • Loading branch information
razo7 committed May 29, 2023
1 parent d02086d commit f699a62
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ spec:
- --upstream=http://127.0.0.1:8080/
- --logtostderr=true
- --v=0
- --tls-cert-file=/etc/tls/tls.crt
- --tls-private-key-file=/etc/tls/tls.key
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.14.1
name: kube-rbac-proxy
ports:
Expand All @@ -220,6 +222,10 @@ spec:
capabilities:
drop:
- ALL
volumeMounts:
- mountPath: /etc/tls
name: tls-secret
readOnly: true
- args:
- --health-probe-bind-address=:8081
- --metrics-bind-address=127.0.0.1:8080
Expand Down Expand Up @@ -263,6 +269,10 @@ spec:
type: RuntimeDefault
serviceAccountName: fence-agents-remediation-controller-manager
terminationGracePeriodSeconds: 10
volumes:
- name: tls-secret
secret:
secretName: far-rbac-container-secret
permissions:
- rules:
- apiGroups:
Expand Down
10 changes: 10 additions & 0 deletions config/default/manager_auth_proxy_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ metadata:
spec:
template:
spec:
volumes:
- name: tls-secret
secret:
secretName: far-rbac-container-secret
containers:
- name: kube-rbac-proxy
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.14.1
Expand All @@ -16,6 +20,12 @@ spec:
- "--upstream=http://127.0.0.1:8080/"
- "--logtostderr=true"
- "--v=0"
- "--tls-cert-file=/etc/tls/tls.crt"
- "--tls-private-key-file=/etc/tls/tls.key"
volumeMounts:
- name: tls-secret
mountPath: /etc/tls
readOnly: true
ports:
- containerPort: 8443
protocol: TCP
Expand Down

0 comments on commit f699a62

Please sign in to comment.