cert_metrics_manager_patch.yaml 870 B

123456789101112131415161718192021222324252627282930
  1. # This patch adds the args, volumes, and ports to allow the manager to use the metrics-server certs.
  2. # Add the volumeMount for the metrics-server certs
  3. - op: add
  4. path: /spec/template/spec/containers/0/volumeMounts/-
  5. value:
  6. mountPath: /tmp/k8s-metrics-server/metrics-certs
  7. name: metrics-certs
  8. readOnly: true
  9. # Add the --metrics-cert-path argument for the metrics server
  10. - op: add
  11. path: /spec/template/spec/containers/0/args/-
  12. value: --metrics-cert-path=/tmp/k8s-metrics-server/metrics-certs
  13. # Add the metrics-server certs volume configuration
  14. - op: add
  15. path: /spec/template/spec/volumes/-
  16. value:
  17. name: metrics-certs
  18. secret:
  19. secretName: metrics-server-cert
  20. optional: false
  21. items:
  22. - key: ca.crt
  23. path: ca.crt
  24. - key: tls.crt
  25. path: tls.crt
  26. - key: tls.key
  27. path: tls.key