using new version of custom-metrics-apiserver

adding changes to bring up metrics server

correcting go dependencies

Signed-off-by: Prashant Balachandran <pnair@redhat.com>

addressing code review comments, adding tls for metrics endpoint
This commit is contained in:
Prashant Balachandran 2021-09-13 12:16:28 +05:30
parent bd568beea0
commit 3b551fcdd6
5 changed files with 98 additions and 1 deletions

View file

@ -29,6 +29,9 @@ spec:
- --metrics-relist-interval=1m
- --v=10
- --config=/etc/adapter/config.yaml
- --secure-metrics-port=9090
- --metrics-host=0.0.0.0
- --tls-config=/etc/tls/config.yaml
ports:
- containerPort: 6443
volumeMounts:
@ -40,6 +43,12 @@ spec:
readOnly: true
- mountPath: /tmp
name: tmp-vol
- mountPath: /etc/tls
name: metricstlsconfig
readOnly: false
- mountPath: /etc/certs
name: servingcerts
readOnly: false
volumes:
- name: volume-serving-cert
secret:
@ -49,3 +58,9 @@ spec:
name: adapter-config
- name: tmp-vol
emptyDir: {}
- configMap:
name: metrics-tls-config
name: metricstlsconfig
- secret:
secretName: pa-metrics-serving-certs
name: servingcerts

View file

@ -0,0 +1,11 @@
apiVersion: v1
data:
config.yaml: |-
"tls_server_config" :
"cert_file" : "/etc/certs/serving.crt"
"key_file" : "/etc/certs/serving.key"
"client_auth_type" : "VerifyClientCertIfGiven"
kind: ConfigMap
metadata:
name: metrics-tls-config
namespace: monitoring