Skip to content

Commit

Permalink
Merge pull request #429 from supreeth7/mount-kubeconfig-hcp
Browse files Browse the repository at this point in the history
fix: mount HC kubeconfig into metrics-relay-server container
  • Loading branch information
openshift-merge-robot authored Aug 23, 2023
2 parents bdcd234 + 980df13 commit ddc14e2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/package/hcp/addon-operator-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ spec:
- --tls-cert-file=/tmp/k8s-metrics-server/serving-certs/tls.crt
- --tls-private-key-file=/tmp/k8s-metrics-server/serving-certs/tls.key
- --logtostderr=true
- --kubeconfig=/etc/openshift/kubeconfig/kubeconfig
- --ignore-paths=/metrics,/healthz
image: quay.io/openshift/origin-kube-rbac-proxy:4.10.0
livenessProbe:
Expand All @@ -40,6 +41,9 @@ spec:
periodSeconds: 10
tcpSocket:
port: 8443
env:
- name: KUBECONFIG
value: /etc/openshift/kubeconfig/kubeconfig
resources:
limits:
cpu: 100m
Expand All @@ -51,6 +55,9 @@ spec:
- mountPath: /tmp/k8s-metrics-server/serving-certs/
name: tls
readOnly: true
- mountPath: /etc/openshift/kubeconfig
name: kubeconfig
readOnly: true
- args:
- --enable-leader-election
env:
Expand Down

0 comments on commit ddc14e2

Please sign in to comment.