HPA with custom metrics

4cb5b950cfd0eabf5d6b828c951d4549?s=47 loftkun
November 27, 2019

HPA with custom metrics

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

4cb5b950cfd0eabf5d6b828c951d4549?s=128

loftkun

November 27, 2019
Tweet

Transcript

  1. 25.

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

    ɾɾɾ Custom metrics Server HFUNFUSJDT DPMMFDUNFUSJDT TDBMFSFQMJDBT
  2. 26.

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

    ɾɾɾ Custom metrics Server How to ? HFUNFUSJDT TDBMFSFQMJDBT DPMMFDUNFUSJDT
  3. 27.

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

    ɾɾɾ Custom metrics Server How to ? How to ? HFUNFUSJDT TDBMFSFQMJDBT DPMMFDUNFUSJDT
  4. 31.

    )1"XJUIDVTUPNNFUSJDT Deployment Pod 1 Pod 2 Pod N ɾɾɾ Prometheus

    Operator kind: Prometheus kind: Service Monitor s e r v i c e
  5. 32.

    )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. 33.

    )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. 34.

    )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. 35.

    )1"XJUIDVTUPNNFUSJDT Deployment Pod 1 Pod 2 Pod N ɾɾɾ Prometheus

    Operator kind: Prometheus kind: Service Monitor s e r v i c e
  9. 36.

    )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. 37.

    )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. 38.

    )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. 39.

    )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. 40.

    )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. 41.

    )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. 42.

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

    ɾɾɾ Custom metrics Server How to ? How to ? HFUNFUSJDT TDBMFSFQMJDBT DPMMFDUNFUSJDT
  16. 43.

    )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. 47.

    $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Λॻ͍ͯ͘ΕΔʂ ӡ༻͕ίʔυͰ࣮૷͞Ε͍ͯΔΜͩʂ
  18. 48.
  19. 53.