Upgrade to Pro — share decks privately, control downloads, hide ads and more …

HPA with custom metrics

loftkun
November 27, 2019

HPA with custom metrics

2019/11/27 CloudNative Days Kansai 2019 Meetup
https://cloudnativedays.connpass.com/event/152321/

loftkun

November 27, 2019
Tweet

More Decks by loftkun

Other Decks in Technology

Transcript

  1. ཧղ͍ͨ͠ͱ͜Ζ HPA contorller Deployment Pod 1 Pod 2 Pod N

    ɾɾɾ Custom metrics Server HFUNFUSJDT DPMMFDUNFUSJDT TDBMFSFQMJDBT
  2. ཧղ͍ͨ͠ͱ͜Ζ HPA contorller Deployment Pod 1 Pod 2 Pod N

    ɾɾɾ Custom metrics Server How to ? HFUNFUSJDT TDBMFSFQMJDBT DPMMFDUNFUSJDT
  3. ཧղ͍ͨ͠ͱ͜Ζ HPA contorller Deployment Pod 1 Pod 2 Pod N

    ɾɾɾ Custom metrics Server How to ? How to ? HFUNFUSJDT TDBMFSFQMJDBT DPMMFDUNFUSJDT
  4. )1"XJUIDVTUPNNFUSJDT Deployment Pod 1 Pod 2 Pod N ɾɾɾ Prometheus

    Operator kind: Prometheus kind: Service Monitor s e r v i c e
  5. )1"XJUIDVTUPNNFUSJDT Deployment Pod 1 Pod 2 Pod N ɾɾɾ Prometheus

    Operator kind: Service Monitor s e r v i c e monitoring kind: Prometheus
  6. )1"XJUIDVTUPNNFUSJDT Deployment Pod 1 Pod 2 Pod N ɾɾɾ Prometheus

    Operator kind: Prometheus kind: Service Monitor s e r v i c e check
  7. )1"XJUIDVTUPNNFUSJDT Deployment Pod 1 Pod 2 Pod N ɾɾɾ Prometheus

    Operator kind: Prometheus kind: Service Monitor s e r v i c e create config
  8. )1"XJUIDVTUPNNFUSJDT Deployment Pod 1 Pod 2 Pod N ɾɾɾ Prometheus

    Operator kind: Prometheus kind: Service Monitor s e r v i c e
  9. )1"XJUIDVTUPNNFUSJDT Deployment Pod 1 Pod 2 Pod N ɾɾɾ Custom

    metrics Server Prometheus Operator kind: Prometheus kind: Service Monitor s e r v i c e s e r v i c e s e r v i c e get metrics
  10. )1"XJUIDVTUPNNFUSJDT Deployment Pod 1 Pod 2 Pod N ɾɾɾ Custom

    metrics Server Prometheus Operator kind: Prometheus kind: Service Monitor s e r v i c e s e r v i c e s e r v i c e JNBHFDirectXMan12/k8s-prometheus-adapter
  11. )1"XJUIDVTUPNNFUSJDT Deployment Pod 1 Pod 2 Pod N ɾɾɾ Custom

    metrics Server Prometheus Operator kind: Prometheus kind: Service Monitor s e r v i c e s e r v i c e s e r v i c e Kind: APIService
  12. )1"XJUIDVTUPNNFUSJDT Deployment Pod 1 Pod 2 Pod N ɾɾɾ Custom

    metrics Server Prometheus Operator kind: Prometheus kind: Service Monitor s e r v i c e s e r v i c e kube-api server aggregation layer s e r v i c e Kind: APIService
  13. )1"XJUIDVTUPNNFUSJDT Deployment Pod 1 Pod 2 Pod N ɾɾɾ Custom

    metrics Server Prometheus Operator kind: Prometheus kind: Service Monitor s e r v i c e s e r v i c e kube-api server aggregation layer s e r v i c e Kind: APIService
  14. )1"XJUIDVTUPNNFUSJDT Deployment Pod 1 Pod 2 Pod N ɾɾɾ Custom

    metrics Server Prometheus Operator kind: Prometheus kind: Service Monitor s e r v i c e s e r v i c e kube-api server aggregation layer s e r v i c e Kind: APIService HPA contorller
  15. ཧղ͍ͨ͠ͱ͜Ζ HPA contorller Deployment Pod 1 Pod 2 Pod N

    ɾɾɾ Custom metrics Server How to ? How to ? HFUNFUSJDT TDBMFSFQMJDBT DPMMFDUNFUSJDT
  16. )1"XJUIDVTUPNNFUSJDT TDBMFSFQMJDBT Deployment Pod 1 Pod 2 Pod N ɾɾɾ

    Custom metrics Server Prometheus Operator kind: Prometheus kind: Service Monitor s e r v i c e s e r v i c e kube-api server s e r v i c e Kind: APIService HPA contorller DPMMFDUNFUSJDT HFUNFUSJDT aggregation layer
  17. $3%ΦϒδΣΫτΛ ӡ༻ͯ͘͠ΕΔͷ͕0QFSBUPS Prometheus Operator kind: Prometheus kind: Service Monitor s

    e r v i c e Deployment 1SPNFUIFVT 0QFSBUPSͷ৔߹ 4FSWJDF.POJUPSʹ ର৅TFSWJDFͱFOEQPJOUΛઃఆ͓ͯ͘͠ͱ 0QFSBUPS͕ QSPNFUIFVTZBNMΛॻ͍ͯ͘ΕΔʂ ӡ༻͕ίʔυͰ࣮૷͞Ε͍ͯΔΜͩʂ