typha-horizontal-autoscaler-deployment.yaml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: calico-typha-horizontal-autoscaler
  5. namespace: kube-system
  6. labels:
  7. k8s-app: calico-typha-autoscaler
  8. kubernetes.io/cluster-service: "true"
  9. addonmanager.kubernetes.io/mode: Reconcile
  10. spec:
  11. replicas: 1
  12. selector:
  13. matchLabels:
  14. k8s-app: calico-typha-autoscaler
  15. template:
  16. metadata:
  17. labels:
  18. k8s-app: calico-typha-autoscaler
  19. annotations:
  20. scheduler.alpha.kubernetes.io/critical-pod: ''
  21. spec:
  22. priorityClassName: system-cluster-critical
  23. securityContext:
  24. supplementalGroups: [ 65534 ]
  25. fsGroup: 65534
  26. containers:
  27. - image: k8s.gcr.io/cluster-proportional-autoscaler-amd64:1.6.0
  28. name: autoscaler
  29. command:
  30. - /cluster-proportional-autoscaler
  31. - --namespace=kube-system
  32. - --configmap=calico-typha-horizontal-autoscaler
  33. - --target=deployment/calico-typha
  34. - --logtostderr=true
  35. - --v=2
  36. resources:
  37. requests:
  38. cpu: 10m
  39. limits:
  40. cpu: 10m
  41. serviceAccountName: typha-cpha