Advertisement
SimpleCookie

Untitled

Dec 1st, 2023
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. apiVersion: monitoring.coreos.com/v1
  2. kind: ServiceMonitor
  3. metadata:
  4. name: <service-monitor-name>
  5. namespace: <namespace>
  6. spec:
  7. endpoints:
  8. - port: <target-port>
  9. scheme: https
  10. tlsConfig:
  11. caFile: /var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt
  12. certFile: /path/to/tls/certfile
  13. keyFile: /path/to/tls/keyfile
  14. selector:
  15. matchLabels:
  16. <your-selector-label>: <your-selector-value>
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement